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
/
fmtmsg.c
blob
46a24862d2f21cddc71f48b576880e44a4cf55ce
1
#ifdef X_FMTMSG
2
#include <fmtmsg.h>
3
#define C(n) switch(n){case n:;}
4
static void
f
()
5
{
6
C
(
MM_HARD
)
7
C
(
MM_SOFT
)
8
C
(
MM_FIRM
)
9
C
(
MM_APPL
)
10
C
(
MM_UTIL
)
11
C
(
MM_OPSYS
)
12
C
(
MM_RECOVER
)
13
C
(
MM_NRECOV
)
14
C
(
MM_HALT
)
15
C
(
MM_ERROR
)
16
C
(
MM_WARNING
)
17
C
(
MM_INFO
)
18
C
(
MM_NOSEV
)
19
C
(
MM_PRINT
)
20
C
(
MM_CONSOLE
)
21
C
(
MM_OK
)
22
C
(
MM_NOTOK
)
23
C
(
MM_NOMSG
)
24
C
(
MM_NOCON
)
25
{
int
(*
p
)(
long
,
const char
*,
int
,
const char
*,
const char
*,
const char
*) =
fmtmsg
;}
26
}
27
#else
28
static void
f
(){}
29
#endif