Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
WCTYPE_T.cpp
Go to the documentation of this file.
1
// checking for wctype_t in <wchar.h> and <wctype.h>
2
3
25
#include "config.h"
26
27
28
#if defined (__EDG__) \
29
&& !defined (__DECCXX) \
30
&& !defined (__HP_aCC) \
31
&& !defined (__INTEL_COMPILER) \
32
&& !defined (_SGI_COMPILER_VERSION)
33
// disable error #450-D: the type "long long" is nonstandard
34
// when using the vanilla EDG eccp in strict mode (i.e., w/o
35
// long long support)
36
# pragma diag_suppress 450
37
#endif
// EDG eccp on Linux
38
39
40
#ifndef _RWSTD_NO_WCHAR_H
41
# include <
wchar.h
>
42
#endif
// _RWSTD_NO_WCHAR_H
43
44
#ifndef _RWSTD_NO_WCTYPE_H
45
# include <
wctype.h
>
46
#endif
47
48
#include <
stdio.h
>
49
50
51
const
char
*
foo
(
char
) {
return
"char"
; }
52
const
char
*
foo
(
short
) {
return
"short"
; }
53
const
char
*
foo
(
unsigned
short
) {
return
"unsigned short"
; }
54
const
char
*
foo
(
int
) {
return
"int"
; }
55
const
char
*
foo
(
unsigned
int
) {
return
"unsigned int"
; }
56
const
char
*
foo
(
long
) {
return
"long"
; }
57
const
char
*
foo
(
unsigned
long
) {
return
"unsigned long"
; }
58
59
#ifndef _RWSTD_NO_LONG_LONG
60
61
const
char
*
foo
(
long
long
) {
return
"long long"
; }
62
const
char
*
foo
(
unsigned
long
long
) {
return
"unsigned long long"
; }
63
64
#endif
// _RWSTD_NO_LONG_LONG
65
66
int
main
()
67
{
68
wctype_t wc = 0;
69
70
printf
(
"#define _RWSTD_WCTYPE_T %s\n"
,
foo
(wc));
71
}
printf
IMPORT_C SInt32 printf(const Char *,...)
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
main
int main()
Definition
WCTYPE_T.cpp:66
foo
Definition
VARIADIC_TEMPLATES.cpp:25
stdio.h
wchar.h
wctype.h
Generated by
1.9.8