|
|
1.1 root 1: /***
2: *locale.h - definitions/declarations for localization routines
3: *
1.1.1.3 ! root 4: * Copyright (c) 1988-1992, Microsoft Corporation. All rights reserved.
1.1 root 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.3 ! root 19: /*
! 20: * Conditional macro definition for function calling type and variable type
! 21: * qualifiers.
! 22: */
! 23: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
! 24:
! 25: /*
! 26: * Definitions for MS C8-32 (386/486) compiler
! 27: */
! 28: #define _CRTAPI1 __cdecl
! 29: #define _CRTAPI2 __cdecl
! 30:
! 31: #elif ( _MSC_VER == 600 )
! 32:
! 33: /*
! 34: * Definitions for old MS C6-386 compiler
! 35: */
! 36: #define _CRTAPI1 _cdecl
! 37: #define _CRTAPI2 _cdecl
! 38: #define _M_IX86 300
! 39:
! 40: #else
! 41:
! 42: /*
! 43: * Other compilers (e.g., MIPS)
! 44: */
! 45: #define _CRTAPI1
! 46: #define _CRTAPI2
! 47:
1.1.1.2 root 48: #endif
1.1 root 49:
1.1.1.3 ! root 50:
1.1 root 51: /* define NULL pointer value */
52:
53: #ifndef NULL
54: #ifdef __cplusplus
55: #define NULL 0
56: #else
57: #define NULL ((void *)0)
58: #endif
59: #endif
60:
61:
62: /* Locale categories */
63:
64: #define LC_ALL 0
65: #define LC_COLLATE 1
66: #define LC_CTYPE 2
67: #define LC_MONETARY 3
68: #define LC_NUMERIC 4
69: #define LC_TIME 5
70:
71: #define LC_MIN LC_ALL
72: #define LC_MAX LC_TIME
73:
74:
75: /* Locale convention structure */
76:
77: #ifndef _LCONV_DEFINED
78: struct lconv {
79: char *decimal_point;
80: char *thousands_sep;
81: char *grouping;
82: char *int_curr_symbol;
83: char *currency_symbol;
84: char *mon_decimal_point;
85: char *mon_thousands_sep;
86: char *mon_grouping;
87: char *positive_sign;
88: char *negative_sign;
89: char int_frac_digits;
90: char frac_digits;
91: char p_cs_precedes;
92: char p_sep_by_space;
93: char n_cs_precedes;
94: char n_sep_by_space;
95: char p_sign_posn;
96: char n_sign_posn;
97: };
98: #define _LCONV_DEFINED
99: #endif
100:
101: /* function prototypes */
102:
1.1.1.3 ! root 103: char * _CRTAPI1 setlocale(int, const char *);
! 104: struct lconv * _CRTAPI1 localeconv(void);
1.1 root 105:
106: #ifdef __cplusplus
107: }
108: #endif
109:
110: #define _INC_LOCALE
111: #endif /* _INC_LOCALE */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.