home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / LOCALE.H$ / LOCALE.bin
Encoding:
Text File  |  1992-01-01  |  1.7 KB  |  96 lines

  1. /***
  2. *locale.h - definitions/declarations for localization routines
  3. *
  4. *    Copyright (c) 1988-1991, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file defines the structures, values, macros, and functions
  8. *    used by the localization routines.
  9. *    [ANSI]
  10. *
  11. ****/
  12.  
  13. #ifndef _INC_LOCALE
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. #if defined(_DLL) && !defined(_MT)
  20. #error Cannot define _DLL without _MT
  21. #endif
  22.  
  23. #ifdef _MT
  24. #define _FAR_ __far
  25. #else
  26. #define _FAR_
  27. #endif
  28.  
  29. #if (_MSC_VER <= 600)
  30. #define __cdecl     _cdecl
  31. #define __far       _far
  32. #define __loadds    _loadds
  33. #endif
  34.  
  35. /* define NULL pointer value */
  36.  
  37. #ifndef NULL
  38. #ifdef __cplusplus
  39. #define NULL    0
  40. #else
  41. #define NULL    ((void *)0)
  42. #endif
  43. #endif
  44.  
  45.  
  46. /* Locale categories */
  47.  
  48. #define LC_ALL        0
  49. #define LC_COLLATE    1
  50. #define LC_CTYPE    2
  51. #define LC_MONETARY    3
  52. #define LC_NUMERIC    4
  53. #define LC_TIME     5
  54.  
  55. #define LC_MIN        LC_ALL
  56. #define LC_MAX        LC_TIME
  57.  
  58.  
  59. /* Locale convention structure */
  60.  
  61. #ifndef _LCONV_DEFINED
  62. struct lconv {
  63.     char *decimal_point;
  64.     char *thousands_sep;
  65.     char *grouping;
  66.     char *int_curr_symbol;
  67.     char *currency_symbol;
  68.     char *mon_decimal_point;
  69.     char *mon_thousands_sep;
  70.     char *mon_grouping;
  71.     char *positive_sign;
  72.     char *negative_sign;
  73.     char int_frac_digits;
  74.     char frac_digits;
  75.     char p_cs_precedes;
  76.     char p_sep_by_space;
  77.     char n_cs_precedes;
  78.     char n_sep_by_space;
  79.     char p_sign_posn;
  80.     char n_sign_posn;
  81.     };
  82. #define _LCONV_DEFINED
  83. #endif
  84.  
  85. /* function prototypes */
  86.  
  87. char _FAR_ * _FAR_ __cdecl setlocale(int, const char _FAR_ *);
  88. struct lconv _FAR_ * _FAR_ __cdecl localeconv(void);
  89.  
  90. #ifdef __cplusplus
  91. }
  92. #endif
  93.  
  94. #define _INC_LOCALE
  95. #endif    /* _INC_LOCALE */
  96.