Added regedit unit test, a couple minor changes to regedit.
[wine] / include / msvcrt / locale.h
1 /*
2  * Locale definitions
3  *
4  * Copyright 2000 Francois Gouget.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 #ifndef __WINE_LOCALE_H
21 #define __WINE_LOCALE_H
22 #define __WINE_USE_MSVCRT
23
24 #include "winnt.h"
25
26 #ifdef USE_MSVCRT_PREFIX
27 #define MSVCRT(x)    MSVCRT_##x
28 #else
29 #define MSVCRT(x)    x
30 #endif
31
32 #ifdef USE_MSVCRT_PREFIX
33 #define MSVCRT_LC_ALL          0
34 #define MSVCRT_LC_COLLATE      1
35 #define MSVCRT_LC_CTYPE        2
36 #define MSVCRT_LC_MONETARY     3
37 #define MSVCRT_LC_NUMERIC      4
38 #define MSVCRT_LC_TIME         5
39 #define MSVCRT_LC_MIN          MSVCRT_LC_ALL
40 #define MSVCRT_LC_MAX          MSVCRT_LC_TIME
41 #else
42 #define LC_ALL                 0
43 #define LC_COLLATE             1
44 #define LC_CTYPE               2
45 #define LC_MONETARY            3
46 #define LC_NUMERIC             4
47 #define LC_TIME                5
48 #define LC_MIN                 LC_ALL
49 #define LC_MAX                 LC_TIME
50 #endif /* USE_MSVCRT_PREFIX */
51
52 struct MSVCRT(lconv)
53 {
54     char* decimal_point;
55     char* thousands_sep;
56     char* grouping;
57     char* int_curr_symbol;
58     char* currency_symbol;
59     char* mon_decimal_point;
60     char* mon_thousands_sep;
61     char* mon_grouping;
62     char* positive_sign;
63     char* negative_sign;
64     char int_frac_digits;
65     char frac_digits;
66     char p_cs_precedes;
67     char p_sep_by_space;
68     char n_cs_precedes;
69     char n_sep_by_space;
70     char p_sign_posn;
71     char n_sign_posn;
72 };
73
74
75 #ifdef __cplusplus
76 extern "C" {
77 #endif
78
79 char*       MSVCRT(setlocale)(int,const char*);
80 struct MSVCRT(lconv)* MSVCRT(localeconv)(void);
81
82 WCHAR*      _wsetlocale(int,const WCHAR*);
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif /* __WINE_LOCALE_H */