#ifndef __NL_TYPES_LOADED #define __NL_TYPES_LOADED 1 #pragma __nostandard #include #if __CRTL_VER >= 60200000 /* Support added in OpenVMS V6.2 */ /**************************************************************************** ** ** - data types ** ***************************************************************************** ** Header introduced by the X/Open CAE Specification, Issue 4 ***************************************************************************** ** ** Copyright 2003 Hewlett-Packard Development Company, L.P. ** ** Confidential computer software. Valid license from HP and/or ** its subsidiaries required for possession, use, or copying. ** ** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, ** Computer Software Documentation, and Technical Data for Commercial ** Items are licensed to the U.S. Government under vendor's standard ** commercial license. ** ** Neither HP nor any of its subsidiaries shall be liable for technical ** or editorial errors or omissions contained herein. The information ** in this document is provided "as is" without warranty of any kind and ** is subject to change without notice. The warranties for HP products ** are set forth in the express limited warranty statements accompanying ** such products. Nothing herein should be construed as constituting an ** additional warranty. ** ***************************************************************************** */ #ifdef __cplusplus extern "C" { #endif #if __INITIAL_POINTER_SIZE # pragma __pointer_size __save # pragma __pointer_size 32 #endif /* ** Define structures and typedefs */ typedef struct _nl_catdstruct *nl_catd; typedef int nl_item; /* ** Define constants */ #define NL_CAT_LOCALE 1 #define NL_SETD 1 /* ** When compiling with /POINTER_SIZE, change to long pointers so that ** prototypes reflect the implementation for widened pointers. When not ** using /POINTER_SIZE, the prototypes do not allow for long pointers. */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size 64 #endif /* ** Function prototypes */ nl_catd catopen (const char *__name, int __oflag); int catclose (nl_catd __catd); /* ** The following functions default the parameters and return values to the ** pointer_size used in the command line. Two additional functions are ** provided if the application needs to specically use the 32 bit or 64 bit ** interfaces. */ #if __INITIAL_POINTER_SIZE == 32 #pragma __pointer_size 32 #endif char *catgets(nl_catd __catd, int __set_id, int __msg_id, const char* __s); #if __INITIAL_POINTER_SIZE == 32 #pragma __pointer_size 64 #endif #if __INITIAL_POINTER_SIZE && __CRTL_VER >= 70000000 # pragma __pointer_size 32 char * _catgets32 (nl_catd, int, int, const char *); # pragma __pointer_size 64 char * _catgets64 (nl_catd, int, int, const char *); #endif /* ** Restore the users pointer context */ #if __INITIAL_POINTER_SIZE # pragma __pointer_size __restore #endif #ifdef __cplusplus } #endif #endif #pragma __standard #endif /* __NL_TYPES_LOADED */