home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / ODNLTYPS.H < prev    next >
Text File  |  1997-02-28  |  2KB  |  66 lines

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