repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
functional: add mntent test
[libc-test.git]
/
src
/
api
/
langinfo.c
blob
83b721f933631eabe7058aa7dc40a224756daa7b
1
#include <langinfo.h>
2
#define T(t) (t*)0;
3
#define C(n) switch(n){case n:;}
4
static void
f
()
5
{
6
T
(
locale_t
)
7
T
(
nl_item
)
8
C
(
CODESET
)
9
C
(
D_T_FMT
)
10
C
(
D_FMT
)
11
C
(
T_FMT
)
12
C
(
T_FMT_AMPM
)
13
C
(
AM_STR
)
14
C
(
PM_STR
)
15
C
(
DAY_1
)
16
C
(
DAY_2
)
17
C
(
DAY_3
)
18
C
(
DAY_4
)
19
C
(
DAY_5
)
20
C
(
DAY_6
)
21
C
(
DAY_7
)
22
C
(
ABDAY_1
)
23
C
(
ABDAY_2
)
24
C
(
ABDAY_3
)
25
C
(
ABDAY_4
)
26
C
(
ABDAY_5
)
27
C
(
ABDAY_6
)
28
C
(
ABDAY_7
)
29
C
(
MON_1
)
30
C
(
MON_2
)
31
C
(
MON_3
)
32
C
(
MON_4
)
33
C
(
MON_5
)
34
C
(
MON_6
)
35
C
(
MON_7
)
36
C
(
MON_8
)
37
C
(
MON_9
)
38
C
(
MON_10
)
39
C
(
MON_11
)
40
C
(
MON_12
)
41
C
(
ABMON_1
)
42
C
(
ABMON_2
)
43
C
(
ABMON_3
)
44
C
(
ABMON_4
)
45
C
(
ABMON_5
)
46
C
(
ABMON_6
)
47
C
(
ABMON_7
)
48
C
(
ABMON_8
)
49
C
(
ABMON_9
)
50
C
(
ABMON_10
)
51
C
(
ABMON_11
)
52
C
(
ABMON_12
)
53
C
(
ERA
)
54
C
(
ERA_D_FMT
)
55
C
(
ERA_D_T_FMT
)
56
C
(
ERA_T_FMT
)
57
C
(
ALT_DIGITS
)
58
C
(
RADIXCHAR
)
59
C
(
THOUSEP
)
60
C
(
YESEXPR
)
61
C
(
NOEXPR
)
62
C
(
CRNCYSTR
)
63
{
char
*(*
p
)(
nl_item
) =
nl_langinfo
;}
64
{
char
*(*
p
)(
nl_item
,
locale_t
) =
nl_langinfo_l
;}
65
}