home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / libc / nl_types.h < prev    next >
Text File  |  1999-03-15  |  2KB  |  83 lines

  1. #if __IBMC__ || __IBMCPP__
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __nl_types_h
  10.    #define __nl_types_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.       #if __IBMC__ || __IBMCPP__ || defined(_OPTLINK_SUPPORTED)
  18.          #define _LNK_CONV   _Optlink
  19.       #else
  20.          #define _LNK_CONV
  21.       #endif
  22.    #endif
  23.  
  24.    #ifndef _IMPORT
  25.       #ifdef __IMPORTLIB__
  26.          #define _IMPORT _Import
  27.       #else
  28.          #define _IMPORT
  29.       #endif
  30.    #endif
  31.  
  32.    /********************************************************************/
  33.    /*  <nl_types.h> header file                                        */
  34.    /*                                                                  */
  35.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  36.    /*  - Licensed Material - Program-Property of IBM                   */
  37.    /*  - All rights reserved                                           */
  38.    /*                                                                  */
  39.    /********************************************************************/
  40.  
  41.    struct _catalog_descriptor {
  42.            char            *_mem;
  43.            char            *_name;
  44.            struct __file   *_fd;
  45.            struct _header  *_hd;
  46.            struct _catset  *_set;
  47.            int             _setmax;
  48.            int             _count;
  49.            int             _pid;
  50.            int             _oflag;
  51.    };
  52.  
  53.    typedef int nl_item;
  54.  
  55.    typedef struct _catalog_descriptor *nl_catd;
  56.  
  57.    #define NL_SETD         1
  58.    #define NL_CAT_LOCALE   1
  59.  
  60.    #define CAT_MAGIC       505
  61.    #define CATD_ERR        ((nl_catd) -1)
  62.    #define NL_MAXOPEN      10
  63.  
  64.    int _IMPORT _LNK_CONV catclose(nl_catd catd);
  65.    char * _IMPORT _LNK_CONV catgets(nl_catd catd, int set_id, 
  66.                             int msg_id, const char *s);
  67.    nl_catd _IMPORT _LNK_CONV catopen(const char *name, int oflag);
  68.  
  69.    #ifdef __cplusplus
  70.       }
  71.    #endif
  72.  
  73. #endif
  74.  
  75. #if __IBMC__ || __IBMCPP__
  76. #pragma info( none )
  77. #ifndef __CHKHDR__
  78.    #pragma info( restore )
  79. #endif
  80. #pragma info( restore )
  81. #endif
  82.  
  83.