|
|
1.1 root 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: *
10: ****/
11:
12: #ifndef _INC_LOCALE
13:
14: #ifdef __cplusplus
15: extern "C" {
16: #endif
17:
18:
1.1.1.2 ! root 19: #ifndef MIPS
1.1 root 20: #if (_MSC_VER <= 600)
21: #define __cdecl _cdecl
22: #endif
1.1.1.2 ! root 23: #endif
1.1 root 24:
25: /* define NULL pointer value */
26:
27: #ifndef NULL
28: #ifdef __cplusplus
29: #define NULL 0
30: #else
31: #define NULL ((void *)0)
32: #endif
33: #endif
34:
35:
36: /* Locale categories */
37:
38: #define LC_ALL 0
39: #define LC_COLLATE 1
40: #define LC_CTYPE 2
41: #define LC_MONETARY 3
42: #define LC_NUMERIC 4
43: #define LC_TIME 5
44:
45: #define LC_MIN LC_ALL
46: #define LC_MAX LC_TIME
47:
48:
49: /* Locale convention structure */
50:
51: #ifndef _LCONV_DEFINED
52: struct lconv {
53: char *decimal_point;
54: char *thousands_sep;
55: char *grouping;
56: char *int_curr_symbol;
57: char *currency_symbol;
58: char *mon_decimal_point;
59: char *mon_thousands_sep;
60: char *mon_grouping;
61: char *positive_sign;
62: char *negative_sign;
63: char int_frac_digits;
64: char frac_digits;
65: char p_cs_precedes;
66: char p_sep_by_space;
67: char n_cs_precedes;
68: char n_sep_by_space;
69: char p_sign_posn;
70: char n_sign_posn;
71: };
72: #define _LCONV_DEFINED
73: #endif
74:
75: /* function prototypes */
76:
77: char * setlocale(int, const char *);
78: struct lconv * localeconv(void);
79:
80: #ifdef __cplusplus
81: }
82: #endif
83:
84: #define _INC_LOCALE
85: #endif /* _INC_LOCALE */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.