]> andersk Git - splint.git/commitdiff
Win32 problems
authorevans1629 <evans1629>
Tue, 12 Mar 2002 14:44:33 +0000 (14:44 +0000)
committerevans1629 <evans1629>
Tue, 12 Mar 2002 14:44:33 +0000 (14:44 +0000)
src/Makefile.in
src/constraintList.c
src/flagMarker.c
src/llerror.c
win32/README.1ST
winconfig.h

index 2cadafc188e5d37077ce71279f7975831081ecfb..6e5cc19defa1b6c34198659c4a5dbad51a5786e3 100644 (file)
@@ -1056,7 +1056,8 @@ splintme:
 splintsome: 
        ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude lcllib.c  -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -supcounts -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw +partial
 
-/* $(LINTSRC) $(LCLSRC)*/
+# drl changed to use # for comment
+#/* $(LINTSRC) $(LCLSRC)*/
 
 splinttest: 
        ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude cpplib.c +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw +keep +supcounts +partial -null
index e23047ce2501fa8602fca0a5197def048c6a4681..2ae629e5c326a991bbe5b8ecc5d3aa92408177d9 100644 (file)
@@ -286,10 +286,15 @@ constraintList_print (/*@temp@*/ constraintList s) /*@*/
       if (constraint_isDefined(current) )
        {
          cstring temp1;
-           if ( context_getFlag (FLG_ORCONSTRAINT) )
+
+         if (context_getFlag (FLG_ORCONSTRAINT))
+           {
              temp1 = constraint_printOr(current);
-           else
-             temp1 = constraint_print(current);
+           }
+         else
+           {
+             temp1 = constraint_print (current);
+           }
          type = message ("%q %q\n", type, temp1 );
        }
 
index 7580bb7c997c107d457fecb7495be6d9f1ab1872..c1327bd143e60be6f42cfd1779b64a4723e393eb 100644 (file)
@@ -133,7 +133,7 @@ bool flagMarker_equal (flagMarker f1, flagMarker f2)
       return (flagcode_equal (f1->code, f2->code));
     }
 
-  BADBRANCH;
+  BADBRANCHRET (FALSE);
 }
 
 cstring flagMarker_unparse (flagMarker c)
index 8f8b959cb711f04c3049440aeb74511fcc17a583..322184112627f0372db397c9a772c3df305533d4 100644 (file)
@@ -381,7 +381,7 @@ mstring_split (/*@returned@*/ char **sp,
   **
   **    if there is a newline in first maxline characters, split there
   **    if line len is <= maxline, return no split
-  **    if there is a ':' or ';' followed by ' ' in first maxline characters,
+  **    if there is a ':' or ';' or ',' followed by ' ' in first maxline characters,
   **       split there unless the ' ' is followed by a '}', then
   **       split after '}'
   **       of the ';' is inside quotation marks
@@ -421,8 +421,9 @@ mstring_split (/*@returned@*/ char **sp,
     {
       int i = 0;
       char savechar;
-      char *lcolon, *lsemi, *splitat;
-
+      char *lcolon, *lsemi, *lcomma;
+      char *splitat;
+      
       splitat = NULL;
 
       t = s + maxline - 1;
@@ -431,6 +432,8 @@ mstring_split (/*@returned@*/ char **sp,
       *t = '\0';
       lcolon = strrchr (s, ':');
       lsemi = strrchr (s, ';');
+      lcomma = strrchr (s, ',');
+
       *t = savechar;
 
       splitat = maxcp (lcolon, lsemi);
@@ -438,7 +441,9 @@ mstring_split (/*@returned@*/ char **sp,
       if (splitat != NULL && ((int)(splitat - s) > MINLINE)
          && *(splitat) != '\0'
          && *(splitat + 1) == ' ' 
-         && (*(splitat + 2) != '}' && (*(splitat + 2) != '\0'))) 
+         && (*(splitat + 2) != '}'
+             && *(splitat + 2) != ',' 
+             && (*(splitat + 2) != '\0'))) 
        {
          *(splitat + 1) = '\0';
          t = splitat + 2;
@@ -447,6 +452,24 @@ mstring_split (/*@returned@*/ char **sp,
          return;
        }
 
+      if (lcomma != NULL && ((lcomma - s) > maxline - 5))
+       {
+         splitat = lcomma;
+         
+         if (splitat != NULL && ((int)(splitat - s) > MINLINE)
+             && *(splitat) != '\0'
+             && *(splitat + 1) == ' ' 
+             && (*(splitat + 2) != '}'
+                 && (*(splitat + 2) != '\0'))) 
+           {
+             *(splitat + 1) = '\0';
+             t = splitat + 2;
+             *tp = t;
+             llassertprotect (*tp == NULL || (*tp > osp));
+             return;
+           }
+       }
+      
       while (*t != ' ' && *t != '\t' && i < MAXSEARCH)
        {
          t--;
index b39daae7a4ca0e7795740a542c0cbde7d584cf98..60fe462fa9c5539a6c92707cf1d79fe920fbdb7c 100755 (executable)
@@ -1,5 +1,5 @@
                          Spint Version 3.0.1\r
-                            7 January 2002\r
+                            11 March 2002\r
                                    \r
                             www.splint.org\r
 \r
@@ -12,4 +12,9 @@ platform if you want to modify the Splint sources.
 This project file has been used to compile Splint using Microsoft Visual\r
 C++ 6.0.\r
 \r
+The file cscanner.c generated by flex uses\r
 \r
+#include <unistd.h>\r
+\r
+which does not exist in Win32 (at least VC++ 6.0) and is not required by\r
+ISO C99.  Line 98 of cscanner.c must be removed to build on Windows.\r
index cd9e68d6e279e218194ba78c45ceb8e0c2f21c2b..3ca7fb23412b5aa4865fc795c1bc240f2a5701ba 100644 (file)
 #define LCL_COMPILE "Compiled using Microsoft Visual C++ 6.0"
 
 /* Splint's version number */
-#define LCL_PARSE_VERSION "Splint 3.0.1.6"
+#define LCL_PARSE_VERSION "Splint 3.0.1.7"
 
 /* Define to disable support LCL files */
 /* #undef NOLCL */
 
 /* Splint's version number and configure/build date */
-#define SPLINT_VERSION "Splint 3.0.1.6 --- 11 Feb 2002"
+#define SPLINT_VERSION "Splint 3.0.1.7 --- 11 Mar 2002"
 
 /* The system's main include directory */
 #define SYSTEM_LIBDIR "C:/include"
This page took 0.051129 seconds and 5 git commands to generate.