home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 14.ddi / GENINC.PAK / LOCALE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  2.6 KB  |  128 lines

  1. /*  locale.h
  2.  
  3. */
  4.  
  5. /*
  6.  *      C/C++ Run Time Library - Version 6.0
  7.  *
  8.  *      Copyright (c) 1987, 1993 by Borland International
  9.  *      All Rights Reserved.
  10.  *
  11.  */
  12.  
  13. #ifndef __LOCALE_H
  14. #define __LOCALE_H
  15.  
  16. #if !defined(___DEFS_H)
  17. #include <_defs.h>
  18. #endif
  19.  
  20. #ifndef NULL
  21. #include <_null.h>
  22. #endif
  23.  
  24.  
  25. #ifndef __OS2__
  26. #ifndef _SIZE_T
  27. #    define _SIZE_T
  28. typedef unsigned size_t;
  29. #endif
  30. #endif
  31.  
  32. #define LC_ALL      0
  33. #define LC_COLLATE  1
  34. #define LC_CTYPE    2
  35. #define LC_MONETARY 3
  36. #define LC_NUMERIC  4
  37. #define LC_TIME     5
  38. #ifndef __OS2__
  39. #define LC_MESSAGES 6
  40. #define LC_userdef  7
  41. #define LC_LAST   LC_userdef
  42. #endif
  43.  
  44. #if !defined(__FLAT__)
  45.  
  46. struct lconv {
  47.  
  48.    char _FAR *decimal_point;
  49.    char _FAR *thousands_sep;
  50.    char _FAR *grouping;
  51.    char _FAR *int_curr_symbol;
  52.    char _FAR *currency_symbol;
  53.    char _FAR *mon_decimal_point;
  54.    char _FAR *mon_thousands_sep;
  55.    char _FAR *mon_grouping;
  56.    char _FAR *positive_sign;
  57.    char _FAR *negative_sign;
  58.    char int_frac_digits;
  59.    char frac_digits;
  60.    char p_cs_precedes;
  61.    char p_sep_by_space;
  62.    char n_cs_precedes;
  63.    char n_sep_by_space;
  64.    char p_sign_posn;
  65.    char n_sign_posn;
  66. };
  67.  
  68. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71. char _FAR * _CType _FARFUNC setlocale( int __category, const char _FAR *__locale );
  72. char _FAR * _CType _FARFUNC _lsetlocale( int __category, const char _FAR *__locale );
  73. struct lconv _FAR * _CType localeconv( void );
  74. struct lconv _FAR * _CType _FARFUNC _llocaleconv( void );
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78.  
  79. #else  /* defined __FLAT__ */
  80.  
  81. #pragma option -a-
  82.  
  83. struct lconv {
  84.  
  85.    char *decimal_point;
  86.    char *thousands_sep;
  87.    char *grouping;
  88.    char *int_curr_symbol;
  89.    char *currency_symbol;
  90.    char *mon_decimal_point;
  91.    char *mon_thousands_sep;
  92.    char *mon_grouping;
  93.    char *positive_sign;
  94.    char *negative_sign;
  95.    char int_frac_digits;
  96.    char frac_digits;
  97.    char p_cs_precedes;
  98.    char p_sep_by_space;
  99.    char n_cs_precedes;
  100.    char n_sep_by_space;
  101.    char p_sign_posn;
  102.    char n_sign_posn;
  103. };
  104.  
  105. #ifdef __cplusplus
  106. extern "C" {
  107. #endif
  108. char *         _RTLENTRY _EXPFUNC setlocale( int __category, const char _FAR *__locale );
  109. char *         _RTLENTRY _EXPFUNC _lsetlocale( int __category, const char _FAR *__locale );
  110. struct lconv * _RTLENTRY _EXPFUNC localeconv( void );
  111. struct lconv * _RTLENTRY _EXPFUNC _llocaleconv( void );
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115.  
  116. #pragma option -a. /* restore default packing */
  117.  
  118.  
  119. #endif  /* __FLAT__ */
  120.  
  121. #if defined( __USELOCALES__ )
  122. #define setlocale  _lsetlocale
  123. #define localeconv _llocaleconv
  124. #endif
  125.  
  126. #endif  /* __LOCALE_H */
  127.  
  128.