]> git.sur5r.net Git - cc65/blob - include/locale.h
add a comment describing why this file is really included despite an obvious referenc...
[cc65] / include / locale.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 locale.h                                  */
4 /*                                                                           */
5 /*                          Localization <locale.h>                          */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 1998-2005 Ullrich von Bassewitz                                       */
10 /*               Römerstrasse 52                                             */
11 /*               D-70794 Filderstadt                                         */
12 /* EMail:        uz@cc65.org                                                 */
13 /*                                                                           */
14 /*                                                                           */
15 /* This software is provided 'as-is', without any expressed or implied       */
16 /* warranty.  In no event will the authors be held liable for any damages    */
17 /* arising from the use of this software.                                    */
18 /*                                                                           */
19 /* Permission is granted to anyone to use this software for any purpose,     */
20 /* including commercial applications, and to alter it and redistribute it    */
21 /* freely, subject to the following restrictions:                            */
22 /*                                                                           */
23 /* 1. The origin of this software must not be misrepresented; you must not   */
24 /*    claim that you wrote the original software. If you use this software   */
25 /*    in a product, an acknowledgment in the product documentation would be  */
26 /*    appreciated but is not required.                                       */
27 /* 2. Altered source versions must be plainly marked as such, and must not   */
28 /*    be misrepresented as being the original software.                      */
29 /* 3. This notice may not be removed or altered from any source              */
30 /*    distribution.                                                          */
31 /*                                                                           */
32 /*****************************************************************************/
33
34
35
36 #ifndef _LOCALE_H
37 #define _LOCALE_H
38
39
40
41 /* NULL pointer */
42 #ifndef _HAVE_NULL
43 #define NULL    0
44 #define _HAVE_NULL
45 #endif
46
47 /* Locale information constants */
48 #define LC_ALL          0
49 #define LC_COLLATE      1
50 #define LC_CTYPE        2
51 #define LC_MONETARY     3
52 #define LC_NUMERIC      4
53 #define LC_TIME         5
54
55 /* Struct containing locale settings */
56 struct lconv {
57     char*       currency_symbol;
58     char*       decimal_point;
59     char*       grouping;
60     char*       int_curr_symbol;
61     char*       mon_decimal_point;
62     char*       mon_grouping;
63     char*       mon_thousands_sep;
64     char*       negative_sign;
65     char*       positive_sign;
66     char*       thousands_sep;
67     char        frac_digits;
68     char        int_frac_digits;
69     char        n_cs_precedes;
70     char        n_sep_by_space;
71     char        n_sign_posn;
72     char        p_cs_precedes;
73     char        p_sep_by_space;
74     char        p_sign_posn;
75 };
76
77 /* Function prototypes */
78 struct lconv* localeconv (void);
79 char* __fastcall__ setlocale (int category, const char* locale);
80
81
82
83 /* End of locale.h */
84 #endif
85
86
87