home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / LOCALE.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  2KB  |  78 lines

  1. /*
  2.  *  locale.h
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef _LOCALE_H_INCLUDED
  7. #define _LOCALE_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #if defined(_M_IX86)
  17.   #pragma pack(__push,1);
  18. #else
  19.   #pragma pack(__push,8);
  20. #endif
  21.  
  22. #ifndef _WCHAR_T_DEFINED
  23. #define _WCHAR_T_DEFINED
  24. #define _WCHAR_T_DEFINED_
  25. #ifdef __cplusplus
  26. typedef long char wchar_t;
  27. #else
  28. typedef unsigned short wchar_t;
  29. #endif
  30. #endif
  31.  
  32. #define LC_CTYPE    0
  33. #define LC_NUMERIC    1
  34. #define LC_TIME     2
  35. #define LC_COLLATE    3
  36. #define LC_MONETARY    4
  37. #define LC_MESSAGES    5
  38. #define LC_ALL        6
  39.  
  40. struct lconv {
  41.     char *decimal_point;
  42.     char *thousands_sep;
  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 *grouping;
  49.     char *positive_sign;
  50.     char *negative_sign;
  51.     char int_frac_digits;
  52.     char frac_digits;
  53.     char p_cs_precedes;
  54.     char p_sep_by_space;
  55.     char n_cs_precedes;
  56.     char n_sep_by_space;
  57.     char p_sign_posn;
  58.     char n_sign_posn;
  59. };
  60.  
  61. #ifndef NULL
  62.  #if defined(__SMALL__) || defined(__MEDIUM__) || defined(__386__) || defined(__AXP__) || defined(__PPC__)
  63.   #define NULL   0
  64.  #else
  65.   #define NULL   0L
  66.  #endif
  67. #endif
  68.  
  69. _WCRTLINK extern char *setlocale(int __category,const char *__locale);
  70. _WCRTLINK extern struct lconv *localeconv(void);
  71.  
  72. _WCRTLINK extern wchar_t *_wsetlocale(int __category,const wchar_t *__locale);
  73. #pragma pack(__pop);
  74. #ifdef __cplusplus
  75. };
  76. #endif
  77. #endif
  78.