home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / libc / langinfo.h < prev    next >
Text File  |  1999-03-15  |  6KB  |  134 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     _H_LANGINFO
  10.    #define _H_LANGINFO
  11.  
  12.    #include <nl_types.h>
  13.  
  14.    #ifdef __cplusplus
  15.       extern "C" {
  16.    #endif
  17.  
  18.    #ifndef  _LNK_CONV
  19.       #if __IBMC__ || __IBMCPP__ || defined(_OPTLINK_SUPPORTED)
  20.          #define _LNK_CONV   _Optlink
  21.       #else
  22.          #define _LNK_CONV
  23.       #endif
  24.    #endif
  25.  
  26.    #ifndef _IMPORT
  27.       #ifdef __IMPORTLIB__
  28.          #define _IMPORT _Import
  29.       #else
  30.          #define _IMPORT
  31.       #endif
  32.    #endif
  33.  
  34.    /********************************************************************/
  35.    /*  <langinfo.h> header file                                        */
  36.    /*                                                                  */
  37.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  38.    /*  - Licensed Material - Program-Property of IBM                   */
  39.    /*  - All rights reserved                                           */
  40.    /*                                                                  */
  41.    /********************************************************************/
  42.  
  43.    extern char * _IMPORT _LNK_CONV nl_langinfo(nl_item item);
  44.  
  45.    #ifndef _ULS_LANGINFO  
  46.       /* These definitions are duplicated in ulsitem.h. */
  47.    
  48.       #define D_T_FMT    1  /* string for formatting date and time */
  49.       #define D_FMT      2  /* string for formatting date */
  50.       #define T_FMT      3  /* string for formatting time */
  51.       #define AM_STR     4  /* string for a.m. */
  52.       #define PM_STR     5  /* string for p.m. */
  53.       
  54.       #define ABDAY_1    6  /* abbreviated first day of the week (Sun) */
  55.       #define ABDAY_2    7  /* abbreviated second day of the week (Mon) */
  56.       #define ABDAY_3    8  /* abbreviated third day of the week (Tue) */
  57.       #define ABDAY_4    9  /* abbreviated fourth day of the week (Wed) */
  58.       #define ABDAY_5   10  /* abbreviated fifth day of the week (Thu) */
  59.       #define ABDAY_6   11  /* abbreviated sixth day of the week (Fri) */
  60.       #define ABDAY_7   12  /* abbreviated seventh day of the week (Sat) */
  61.       
  62.       #define DAY_1     13  /* name of the first day of the week (Sunday) */
  63.       #define DAY_2     14  /* name of the second day of the week (Monday) */
  64.       #define DAY_3     15  /* name of the third day of the week (Tuesday) */
  65.       #define DAY_4     16  /* name of the fourth day of the week (Wednesday) */
  66.       #define DAY_5     17  /* name of the fifth day of the week (Thursday) */
  67.       #define DAY_6     18  /* name of the sixth day of the week (Friday) */
  68.       #define DAY_7     19  /* name of the seventh day of the week (Saturday) */
  69.       
  70.       #define ABMON_1   20  /* abbreviated first month (Jan) */
  71.       #define ABMON_2   21  /* abbreviated second month (Feb) */
  72.       #define ABMON_3   22  /* abbreviated third month (Mar) */
  73.       #define ABMON_4   23  /* abbreviated fourth month (Apr) */
  74.       #define ABMON_5   24  /* abbreviated fifth month (May) */
  75.       #define ABMON_6   25  /* abbreviated sixth month (Jun) */
  76.       #define ABMON_7   26  /* abbreviated seventh month (Jul) */
  77.       #define ABMON_8   27  /* abbreviated eighth month (Aug) */
  78.       #define ABMON_9   28  /* abbreviated ninth month (Sep) */
  79.       #define ABMON_10  29  /* abbreviated tenth month (Oct) */
  80.       #define ABMON_11  30  /* abbreviated eleventh month (Nov) */
  81.       #define ABMON_12  31  /* abbreviated twelveth month (Dec) */
  82.       
  83.       #define MON_1     32  /* name of the first month (January) */
  84.       #define MON_2     33  /* name of the second month (February) */
  85.       #define MON_3     34  /* name of the third month (March) */
  86.       #define MON_4     35  /* name of the fourth month (April) */
  87.       #define MON_5     36  /* name of the fifth month (May) */
  88.       #define MON_6     37  /* name of the sixth month (June) */
  89.       #define MON_7     38  /* name of the seventh month (July) */
  90.       #define MON_8     39  /* name of the eighth month (August) */
  91.       #define MON_9     40  /* name of the ninth month (September) */
  92.       #define MON_10    41  /* name of the tenth month (October) */
  93.       #define MON_11    42  /* name of the eleventh month (November) */
  94.       #define MON_12    43  /* name of the twelveth month (December) */
  95.       
  96.       #define RADIXCHAR 44  /* radix character */
  97.       #define THOUSEP   45  /* separator for thousands */
  98.       #define YESSTR    46  /* affiramitive response for yes/no queries */
  99.       #define NOSTR     47  /* negative response for yes/no queries */
  100.       #define CRNCYSTR  48  /* currency symbol; - leading, + trailing */
  101.       #define CODESET   49  /* codeset name */
  102.       
  103.       #define T_FMT_AMPM    55  /* am/pm time formating string */
  104.       #define ERA           56  /* era description segments */
  105.       #define ERA_D_FMT     57  /* era date format string */
  106.       #define ERA_D_T_FMT   58  /* era date and time format string */
  107.       #define ERA_T_FMT     59  /* era time format string */
  108.       #define ALT_DIGITS    60  /* alternative symbols for digits */
  109.       #define YESEXPR       61  /* affirmative response expression */
  110.       #define NOEXPR        62  /* negative response expression */
  111.       
  112.       #define DATESEP       63
  113.       #define TIMESEP       64
  114.       #define LISTSEP       65
  115.       
  116.       #define _NL_NUM_ITEMS 66
  117.  
  118.    #endif
  119.  
  120.    #ifdef __cplusplus
  121.       }
  122.    #endif
  123.  
  124. #endif   /* _H_LANGINFO */
  125.  
  126. #if __IBMC__ || __IBMCPP__
  127. #pragma info( none )
  128. #ifndef __CHKHDR__
  129.    #pragma info( restore )
  130. #endif
  131. #pragma info( restore )
  132. #endif
  133.  
  134.