]> andersk Git - splint.git/commitdiff
cpplib.c: added OS2 conditional after emtpy default: label (see
authorherbert <herbert>
Thu, 27 Sep 2001 09:48:03 +0000 (09:48 +0000)
committerherbert <herbert>
Thu, 27 Sep 2001 09:48:03 +0000 (09:48 +0000)
inline doc), cscanner.l: fixed include for IBMC compiler

src/cpplib.c
src/cscanner.l

index cddfec9d5be139142cd4501164bdd13ca09af226..28ac8ef9070007b392cc6391ff420366267b03ed 100644 (file)
@@ -4931,6 +4931,11 @@ beg_of_line:
                  /*@switchbreak@*/ break;
                default: ;
                  /*@-branchstate@*/ 
+#if defined (OS2) && defined (__IBMC__)
+      /* Dummy code to eleminate optimization problems with icc */
+      c = 0;
+# endif
+
                }
              /*@=branchstate@*/
              break;
index 272181e40fc4ab3de8e5d6e1ae95fb790087a0d3..d87930ecb494a35107d98029161a777d1f2890ea 100644 (file)
@@ -60,7 +60,13 @@ ULSuffix                ({U}{L}|{L}{U})
 */
 
 # include "lclintMacros.nf"
+# if defined(OS2) && defined(__IBMC__)
+   /* needed for isatty()... */
+# include <io.h>
+# else
 # include <unistd.h>
+# endif
+
 # include "basic.h"
 
 # include "cgrammar.h"
@@ -69,11 +75,6 @@ ULSuffix                ({U}{L}|{L}{U})
 # include "fileIdList.h"
 # include "portab.h"
 
-# if defined(OS2) && defined(__IBMC__)
-   /* needed for isatty()... */
-# include <io.h>
-# endif
-
 static bool lastWasString = FALSE;
 static char savechar = '\0';
 
This page took 0.09188 seconds and 5 git commands to generate.