Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20111110092257

Diff

Diff from 1.3 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/c99/prep004.c

Annotated File View

plunky
1.3
1 /* 6.10.8 Predefined Macro Names */
2
faceless
1.1
3 int main()
plunky
1.3
4 {
5         const char *s;
6         long l;
7
8 // 1. The following macro names shall be defined by the implementation:
9
10         l = __STDC__;
11         if (l != 1)
12                 return 1;
13
14         s = __DATE__;
15         s = __FILE__;
16         s = __TIME__;
17
18         l = __STDC_HOSTED__;
19         if (l != 1 && l != 0)
20                 return 1;
21
22         l = __STDC_VERSION__;
23         if (l != 199901L// C99
24                 return 1;
25
26 // 2. The following macro names are conditionally defined by the implementation:
27
28 #ifdef __STDC_MB_MIGHT_NEQ_WC__
29         l = __STDC_MB_MIGHT_NEQ_WC__;
30         if (l != 1)
31                 return 1;
32 #endif
33
34 #ifdef __STDC_IEC_559__
35         l = __STDC_IEC_559__;
36         if (l != 1)
37                 return 1;
38 #endif
39
40 #ifdef __STDC_IEC_559_COMPLEX__
41         l = __STDC_IEC_559_COMPLEX__;
42         if (l != 1)
43                 return 1;
44 #endif
45
46 #ifdef __STDC_ISO_10646__
47         l = __STDC_ISO_10646__;
48 #endif
49
50         return 0;
faceless
1.1
51 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-20 15:59 +0200