OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [include/] [langinfo.h] - Blame information for rev 258

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/*-
2
 * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
7
 * are met:
8
 * 1. Redistributions of source code must retain the above copyright
9
 *    notice, this list of conditions and the following disclaimer.
10
 * 2. Redistributions in binary form must reproduce the above copyright
11
 *    notice, this list of conditions and the following disclaimer in the
12
 *    documentation and/or other materials provided with the distribution.
13
 *
14
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24
 * SUCH DAMAGE.
25
 *
26
 * $FreeBSD: src/include/langinfo.h,v 1.5 2002/03/23 17:24:53 imp Exp $
27
 */
28
 
29
#ifndef _LANGINFO_H_
30
#define _LANGINFO_H_
31
 
32
#include <sys/cdefs.h>
33
 
34
typedef int nl_item;
35
 
36
/* Extract the category and item index from a constructed `nl_item' value.  */
37
#define _NL_ITEM_CATEGORY(item)         ((int) (item) >> 16)
38
#define _NL_ITEM_INDEX(item)            ((int) (item) & 0xffff)
39
 
40
#define CODESET         0        /* codeset name */
41
#define D_T_FMT         1       /* string for formatting date and time */
42
#define D_FMT           2       /* date format string */
43
#define T_FMT           3       /* time format string */
44
#define T_FMT_AMPM      4       /* a.m. or p.m. time formatting string */
45
#define AM_STR          5       /* Ante Meridian affix */
46
#define PM_STR          6       /* Post Meridian affix */
47
 
48
/* week day names */
49
#define DAY_1           7
50
#define DAY_2           8
51
#define DAY_3           9
52
#define DAY_4           10
53
#define DAY_5           11
54
#define DAY_6           12
55
#define DAY_7           13
56
 
57
/* abbreviated week day names */
58
#define ABDAY_1         14
59
#define ABDAY_2         15
60
#define ABDAY_3         16
61
#define ABDAY_4         17
62
#define ABDAY_5         18
63
#define ABDAY_6         19
64
#define ABDAY_7         20
65
 
66
/* month names */
67
#define MON_1           21
68
#define MON_2           22
69
#define MON_3           23
70
#define MON_4           24
71
#define MON_5           25
72
#define MON_6           26
73
#define MON_7           27
74
#define MON_8           28
75
#define MON_9           29
76
#define MON_10          30
77
#define MON_11          31
78
#define MON_12          32
79
 
80
/* abbreviated month names */
81
#define ABMON_1         33
82
#define ABMON_2         34
83
#define ABMON_3         35
84
#define ABMON_4         36
85
#define ABMON_5         37
86
#define ABMON_6         38
87
#define ABMON_7         39
88
#define ABMON_8         40
89
#define ABMON_9         41
90
#define ABMON_10        42
91
#define ABMON_11        43
92
#define ABMON_12        44
93
 
94
#define ERA             45      /* era description segments */
95
#define ERA_D_FMT       46      /* era date format string */
96
#define ERA_D_T_FMT     47      /* era date and time format string */
97
#define ERA_T_FMT       48      /* era time format string */
98
#define ALT_DIGITS      49      /* alternative symbols for digits */
99
 
100
#define RADIXCHAR       50      /* radix char */
101
#define THOUSEP         51      /* separator for thousands */
102
 
103
#define YESEXPR         52      /* affirmative response expression */
104
#define NOEXPR          53      /* negative response expression */
105
#define YESSTR          54      /* affirmative response for yes/no queries */
106
#define NOSTR           55      /* negative response for yes/no queries */
107
 
108
#define CRNCYSTR        56      /* currency symbol */
109
 
110
#define D_MD_ORDER      57      /* month/day order (local extension) */
111
 
112
#define _NL_CTYPE_TRANSLIT_TAB_SIZE 58
113
#define _NL_CTYPE_TRANSLIT_FROM_IDX 59
114
#define _NL_CTYPE_TRANSLIT_FROM_TBL 60
115
#define _NL_CTYPE_TRANSLIT_TO_IDX 61
116
#define _NL_CTYPE_TRANSLIT_TO_TBL 62
117
#define _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN 63
118
#define _NL_CTYPE_TRANSLIT_DEFAULT_MISSING 64
119
#define _NL_CTYPE_TRANSLIT_IGNORE_LEN 65
120
#define _NL_CTYPE_TRANSLIT_IGNORE 66
121
#define _NL_CTYPE_EXTRA_MAP_1 70
122
#define _NL_CTYPE_EXTRA_MAP_2 71
123
#define _NL_CTYPE_EXTRA_MAP_3 72
124
#define _NL_CTYPE_EXTRA_MAP_4 73
125
#define _NL_CTYPE_EXTRA_MAP_5 74
126
#define _NL_CTYPE_EXTRA_MAP_6 75
127
#define _NL_CTYPE_EXTRA_MAP_7 76
128
#define _NL_CTYPE_EXTRA_MAP_8 77
129
#define _NL_CTYPE_EXTRA_MAP_9 78
130
#define _NL_CTYPE_EXTRA_MAP_10 79
131
#define _NL_CTYPE_EXTRA_MAP_11 80
132
#define _NL_CTYPE_EXTRA_MAP_12 81
133
#define _NL_CTYPE_EXTRA_MAP_13 82
134
#define _NL_CTYPE_EXTRA_MAP_14 83
135
 
136
__BEGIN_DECLS
137
char    *nl_langinfo(nl_item);
138
__END_DECLS
139
 
140
#endif /* !_LANGINFO_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.