Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.6 KiB

  1. /***
  2. *locale.h - definitions/declarations for localization routines
  3. *
  4. * Copyright (c) 1988-1992, 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. #ifndef _INC_LOCALE
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if (_MSC_VER <= 600)
  17. #define __cdecl _cdecl
  18. #define __far _far
  19. #endif
  20. /* define NULL pointer value */
  21. #ifndef NULL
  22. #ifdef __cplusplus
  23. #define NULL 0
  24. #else
  25. #define NULL ((void *)0)
  26. #endif
  27. #endif
  28. /* Locale categories */
  29. #define LC_ALL 0
  30. #define LC_COLLATE 1
  31. #define LC_CTYPE 2
  32. #define LC_MONETARY 3
  33. #define LC_NUMERIC 4
  34. #define LC_TIME 5
  35. #define LC_MIN LC_ALL
  36. #define LC_MAX LC_TIME
  37. /* Locale convention structure */
  38. #ifndef _LCONV_DEFINED
  39. struct lconv {
  40. char *decimal_point;
  41. char *thousands_sep;
  42. char *grouping;
  43. char *int_curr_symbol;
  44. char *currency_symbol;
  45. char *mon_decimal_point;
  46. char *mon_thousands_sep;
  47. char *mon_grouping;
  48. char *positive_sign;
  49. char *negative_sign;
  50. char int_frac_digits;
  51. char frac_digits;
  52. char p_cs_precedes;
  53. char p_sep_by_space;
  54. char n_cs_precedes;
  55. char n_sep_by_space;
  56. char p_sign_posn;
  57. char n_sign_posn;
  58. };
  59. #define _LCONV_DEFINED
  60. #endif
  61. /* function prototypes */
  62. char * __cdecl setlocale(int, const char *);
  63. struct lconv * __cdecl localeconv(void);
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #define _INC_LOCALE
  68. #endif