|
Last change
on this file since 490 was 18, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | /* locale.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _LOCALE_H
|
|---|
| 4 | #define _LOCALE_H
|
|---|
| 5 |
|
|---|
| 6 | #if defined (__cplusplus)
|
|---|
| 7 | extern "C" {
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| 10 | #if !defined (NULL)
|
|---|
| 11 | #if defined (__cplusplus)
|
|---|
| 12 | #define NULL 0
|
|---|
| 13 | #else
|
|---|
| 14 | #define NULL ((void *)0)
|
|---|
| 15 | #endif
|
|---|
| 16 | #endif
|
|---|
| 17 |
|
|---|
| 18 | #define LC_ALL 0
|
|---|
| 19 | #define LC_COLLATE 1
|
|---|
| 20 | #define LC_CTYPE 2
|
|---|
| 21 | #define LC_MONETARY 3
|
|---|
| 22 | #define LC_NUMERIC 4
|
|---|
| 23 | #define LC_TIME 5
|
|---|
| 24 |
|
|---|
| 25 | #define LC_C "C"
|
|---|
| 26 | #define LC_C_FRANCE "FRAN"
|
|---|
| 27 | #define LC_C_GERMANY "GERM"
|
|---|
| 28 | #define LC_C_ITALY "ITAL"
|
|---|
| 29 | #define LC_C_SPAIN "SPAI"
|
|---|
| 30 | #define LC_C_UK "UK"
|
|---|
| 31 | #define LC_C_USA "USA"
|
|---|
| 32 |
|
|---|
| 33 | struct lconv
|
|---|
| 34 | {
|
|---|
| 35 | char *decimal_point;
|
|---|
| 36 | char *thousands_sep;
|
|---|
| 37 | char *grouping;
|
|---|
| 38 | char *int_curr_symbol;
|
|---|
| 39 | char *currency_symbol;
|
|---|
| 40 | char *mon_decimal_point;
|
|---|
| 41 | char *mon_thousands_sep;
|
|---|
| 42 | char *mon_grouping;
|
|---|
| 43 | char *positive_sign;
|
|---|
| 44 | char *negative_sign;
|
|---|
| 45 | char int_frac_digits;
|
|---|
| 46 | char frac_digits;
|
|---|
| 47 | char p_cs_precedes;
|
|---|
| 48 | char p_sep_by_space;
|
|---|
| 49 | char n_cs_precedes;
|
|---|
| 50 | char n_sep_by_space;
|
|---|
| 51 | char p_sign_posn;
|
|---|
| 52 | char n_sign_posn;
|
|---|
| 53 | };
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | char *setlocale (int, __const__ char *);
|
|---|
| 57 |
|
|---|
| 58 | struct lconv *_localeconv (int);
|
|---|
| 59 | struct lconv *localeconv (void);
|
|---|
| 60 |
|
|---|
| 61 | #if defined (__CHAR_UNSIGNED__)
|
|---|
| 62 | #define localeconv() _localeconv (255)
|
|---|
| 63 | #else
|
|---|
| 64 | #define localeconv() _localeconv (127)
|
|---|
| 65 | #endif
|
|---|
| 66 |
|
|---|
| 67 | #if defined (__cplusplus)
|
|---|
| 68 | }
|
|---|
| 69 | #endif
|
|---|
| 70 |
|
|---|
| 71 | #endif /* not _LOCALE_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.