home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / LOCALE.H < prev    next >
Text File  |  1993-09-17  |  3KB  |  105 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __locale_h
  8.    #define __locale_h
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <locale.h> header file                                          */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #ifndef NULL
  30.       #if (defined(__EXTENDED__)  || defined( __cplusplus ))
  31.          #define NULL 0
  32.       #else
  33.          #define NULL ((void *)0)
  34.       #endif
  35.    #endif
  36.  
  37.    /* Categories */
  38.  
  39.    #define LC_ALL       (-1)
  40.    #define LC_COLLATE    0
  41.    #define LC_CTYPE      1
  42.    #define LC_NUMERIC    2
  43.    #define LC_MONETARY   3
  44.    #define LC_TIME       4
  45.    #define LC_TOD        5
  46.  
  47.    /* Locales */
  48.  
  49.    #define LC_C          "C"
  50.    #define LC_C_GERMANY  "GERM"
  51.    #define LC_C_FRANCE   "FRAN"
  52.    #define LC_C_UK       "UK"
  53.    #define LC_C_ITALY    "ITAL"
  54.    #define LC_C_SPAIN    "SPAI"
  55.    #define LC_C_USA      "USA"
  56.  
  57.    /******************************************************************/
  58.    /* These 3 defines are only used for Giverny Version J1.0 only.   */
  59.    /******************************************************************/
  60.  
  61.    #define LC_C_JAPAN    "JAPN"
  62.    #define LC_C_JAPAN2   "JAP2"
  63.    #define LC_C_JAPAN3   "JAP3"
  64.  
  65.    #pragma pack( 1 )
  66.    struct lconv
  67.       {
  68.       char * decimal_point;
  69.       char * thousands_sep;
  70.       char * grouping;
  71.       char * int_curr_symbol;
  72.       char * currency_symbol;
  73.       char * mon_decimal_point;
  74.       char * mon_thousands_sep;
  75.       char * mon_grouping;
  76.       char * positive_sign;
  77.       char * negative_sign;
  78.       char   int_frac_digits;
  79.       char   frac_digits;
  80.       char   p_cs_precedes;
  81.       char   p_sep_by_space;
  82.       char   n_cs_precedes;
  83.       char   n_sep_by_space;
  84.       char   p_sign_posn;
  85.       char   n_sign_posn;
  86.       };
  87.    #pragma pack( )
  88.  
  89.    /* Prototype definitions */
  90.  
  91.    char         * _Optlink setlocale( int, const char * );
  92.    struct lconv * _Optlink localeconv( void );
  93.  
  94.    #ifdef __cplusplus
  95.       }
  96.    #endif
  97.  
  98. #endif
  99.  
  100. #pragma info( none )
  101. #ifndef __CHKHDR__
  102.    #pragma info( restore )
  103. #endif
  104. #pragma info( restore )
  105.