Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.2
 
1.3
 
MAIN:plunky:20111110092257
 
prep004.c
_>1 -/*correct - this must be defined */
 2 -#include <stdio.h>
  1+/* 6.10.8 Predefined Macro Names */
  2+
33 int main()
<>4 -{       
 5 -        printf("%s",__DATE__);
 6 -        printf("%s",__FILE__);
 7 -        printf("%s",__LINE__);
 8 -        printf("%d",__STDC__);
 9 -        if (__STDC__ != 1)
  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)
1012                 return 1;
 1113 
<>12 -        printf("%d",__STDC_HOSTED__);
 13 -        printf("%d",__STDC_MB_MIGHT_NEQ_WC__);
 14 -        printf("%d",__STDC_VERSION__);  
 15 -        if (__STDC_VERSION__ != 199901L) // C99
 16 -                return 1;
 17 -        
 18 -        printf("%s",__TIME__);
 19 -        printf("%d",__STDC_IEC_559__);
 20 -        printf("%d",__STDC_IEC_559_COMPLEX__);
 21 -        printf("%d",__STDC_ISO_10646__);
 22 -        
 23 -        return 0;
  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;
<_2451 }
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-17 15:36 +0200