]> andersk Git - splint.git/commitdiff
Fixes for win32
authorevans1629 <evans1629>
Mon, 21 Apr 2003 01:52:30 +0000 (01:52 +0000)
committerevans1629 <evans1629>
Mon, 21 Apr 2003 01:52:30 +0000 (01:52 +0000)
src/Makefile.am
src/Makefile.in
src/exprChecks.c
src/exprNode.c
src/flags.c
src/genericTable.c
src/sRef.c
src/scanline.c
src/uentry.c
win32/README.1ST
winconfig.h

index 1cc81f32f39628dfed250febbd6d07ad0d677b10..317310dc9b77f906f2b94b70a4bb2591e974b3e1 100644 (file)
@@ -384,6 +384,10 @@ nocheck:
 test:
        ${MAKE} ; cd ../test; ${MAKE} --no-print-directory
 
+.PHONY: libs
+libs:
+       ${MAKE} ; cd ../lib; ${MAKE} --no-print-directory
+
 ### Automake generates wrong tags
 .PHONY: etags
 etags:
index caa0c441601afc41ec8652f45f4089f531ebdd63..a7663b8d65ecf9de0658e9a2caeaea606a85539f 100644 (file)
@@ -1112,6 +1112,10 @@ nocheck:
 test:
        ${MAKE} ; cd ../test; ${MAKE} --no-print-directory
 
+.PHONY: libs
+libs:
+       ${MAKE} ; cd ../lib; ${MAKE} --no-print-directory
+
 ### Automake generates wrong tags
 .PHONY: etags
 etags:
@@ -1120,7 +1124,7 @@ etags:
 lintnew: splintme
 
 splintme: 
-       ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude  $(OVERFLOWCHSRC) $(LINTSRC) $(LCLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw 
+       ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude  $(OVERFLOWCHSRC) $(LINTSRC) $(LCLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -fcnuse -incondefs -exportlocal -constuse -mts file -mts filerw 
 
 splintmesupcounts: 
        ./splint $(DEFAULT_INCLUDES) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) +singleinclude  $(OVERFLOWCHSRC) $(LINTSRC) $(LCLSRC) -dump lclint +forcehints -misplacedsharequal +showsourceloc -unrecogcomments  -fcnuse -incondefs -exportlocal -supcounts -constuse -mts file -mts filerw 
index 9bc78f208a55fe4e23392158798439a75d034974..ae0ed4f0d57334f470dfb257e09e814c9919db18 100644 (file)
@@ -264,7 +264,7 @@ checkRefGlobParam (sRef base, /*@notnull@*/ exprNode e,
          else if (sRef_isAnyParam (base))
            {
              uentryList params = context_getParams ();
-             int paramno = usymId_toInt (sRef_getParam (base));
+             int paramno = sRef_getParam (base);
 
              if (paramno < uentryList_size (params))
                {
@@ -319,7 +319,7 @@ checkRefGlobParam (sRef base, /*@notnull@*/ exprNode e,
          else if (sRef_isAnyParam (base) && !(sRef_isOnly (base)))
            {
              uentryList params = context_getParams ();
-             int paramno = usymId_toInt (sRef_getParam (base));
+             int paramno = sRef_getParam (base);
              
              if (paramno < uentryList_size (params))
                {
index 9df0718fc68b9b5120ce88d85a61414cc7753b2c..578469ad4a7a357753ba32fcb06a6608f82c3b57 100644 (file)
@@ -3133,7 +3133,7 @@ checkGlobMods (/*@notnull@*/ /*@dependent@*/ exprNode f,
 
              if (sRef_isObserver (b))
                {
-                 exprNode e = exprNodeList_nth (args, usymId_toInt (sRef_getParam (rb)));
+                 exprNode e = exprNodeList_nth (args, sRef_getParam (rb));
                  
                  if (optgenerror 
                      (FLG_MODOBSERVER,
index a148f56d3040bd5a9020c3d12ba08c5a9a6b7093..58063c89c580eca73050b727f2d0a9d870d68b5b 100644 (file)
@@ -128,6 +128,11 @@ typedef enum {
   ARG_SPECIAL   /* ? */
 } argcode;
 
+# ifdef WIN32
+/* Make Microsoft VC++ happy */
+# pragma warning (disable:4715)
+# endif
+
 static /*@observer@*/ cstring argcode_unparse (argcode arg)
 {
   switch (arg) 
@@ -143,14 +148,10 @@ static /*@observer@*/ cstring argcode_unparse (argcode arg)
     case ARG_SPECIAL:
       BADBRANCH;
     }
-# ifdef WIN32
-/* Make Microsoft VC++ happy */
-# pragma warning (disable:4715)
-# endif
 }      
 
 # ifdef WIN32
-/* # pragma warning (enable:4715)  */
+# pragma warning (default : 4715)
 # endif
 
 typedef struct { 
index 5e1b2a3de09869a92fd6bc43ab1dccc1bf7c3abb..75067f628ef724a2474bd358fdfa0946abbc72e8 100644 (file)
@@ -140,19 +140,22 @@ static /*@null@*/ /*@exposed@*/ void *ghbucket_lookup (ghbucket p_h, cstring p_k
 static void
 ghbucket_add (/*@notnull@*/ ghbucket h, /*@only@*/ ghentry e)
 {
-    void *exloc = ghbucket_lookup (h, e->key);
-    
-    if (exloc != NULL) {
-      llassert (FALSE);
-    }
-
-    if (h->nspace == 0) {
-       ghbucket_grow (h);
-    }
-    
-    h->entries[h->size] = e;
-    h->size++;
-    h->nspace--;
+  void *exloc = ghbucket_lookup (h, e->key);
+  
+  if (exloc != NULL) {
+    llcontbug (message ("ghbucket_add: adding duplicate entry: %s",
+                       e->key));
+    ghentry_free (e);
+    return;
+  }
+  
+  if (h->nspace == 0) {
+    ghbucket_grow (h);
+  }
+  
+  h->entries[h->size] = e;
+  h->size++;
+  h->nspace--;
 }
 
 static int
index 7eb9d6364986cbf92de359fc8c99edf78bb97a83..b7504360ab463c4a74d77cc54d45f0d178e08804 100644 (file)
@@ -1076,13 +1076,13 @@ sRef_getUentry (sRef s)
     }
 }
 
-usymId
+int
 sRef_getParam (sRef s)
 {
   llassert (sRef_isReasonable (s));
   llassert (s->kind == SK_PARAM);
 
-  return usymId_fromInt (s->info->paramno);
+  return s->info->paramno;
 }
 
 bool
index 1c539b1f33faffae4e15e920abcfa3b733d144dd..5b0baa824375004f4bbc2a30c622b981fc6924bd 100644 (file)
@@ -51,8 +51,9 @@
 /*@notfunction@*/
 # define MOVECHAR()   do { *bufptr++ = c; c = *currentLine++; colNumber++; } while (FALSE) 
 
-/*@constant static int MAXCHAR;@*/
-# define MAXCHAR 512      
+/* evans 2003-04-21: changed name to avoid conflict with MS VC++ */
+/*@constant static int SCANMAXCHAR;@*/ 
+# define SCANMAXCHAR 512      
 
 /*@constant static int TABSIZE;@*/
 # define TABSIZE 8     
@@ -66,7 +67,7 @@ static int startCol;
 static bool reportEOL;         
 static bool reportComments;    
 
-static char tokenBuffer[MAXCHAR];
+static char tokenBuffer[SCANMAXCHAR];
 
 static const charClassData charClassDef[] =
 {
index d951a302a13e10d8083c8fbbefe74b04224dd2c7..711b32b68c4a4f7ea176dd818aea2fe6cbe85823 100644 (file)
@@ -5772,6 +5772,11 @@ uentry_getGlobs (uentry l)
     }
 }
 
+# ifdef WIN32
+/* Make Microsoft VC++ happy */
+# pragma warning (disable : 4715) 
+# endif
+
 /*@observer@*/ sRefSet
 uentry_getMods (uentry l)
 {
@@ -5799,10 +5804,6 @@ uentry_getMods (uentry l)
     {
       BADBRANCH;
     }
-# ifdef WIN32
-/* Make Microsoft VC++ happy */
-# pragma warning (disable : 4715) 
-# endif
 }
 
 ekind
index 60fe462fa9c5539a6c92707cf1d79fe920fbdb7c..bf0cd2618a2fd05d63fe53c05b022f776c974add 100755 (executable)
@@ -1,5 +1,5 @@
-                         Spint Version 3.0.1\r
-                            11 March 2002\r
+                         Spint Version 3.1.0\r
+                            21 April 2003\r
                                    \r
                             www.splint.org\r
 \r
@@ -9,12 +9,15 @@ pre-compiled Win32 binary (available from http://www.splint.org) instead
 of building a Win32 binary from the source code, and using a Unix\r
 platform if you want to modify the Splint sources.\r
 \r
-This project file has been used to compile Splint using Microsoft Visual\r
-C++ 6.0.\r
+This project file has been used to compile Splint using Microsoft\r
+Visual.Net Framework 1.0, Visual C++ .NET version 7.0.9466.  We are not\r
+Windows development experts --- this file hard codes include paths and\r
+other system specific information, so it will not work for you without\r
+some effort.\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
+which does not exist in Win32 (at least VC++ 7.0).  That line must be\r
+removed to build on Windows.\r
index 3ca7fb23412b5aa4865fc795c1bc240f2a5701ba..d424d5c6ddd6d181bcc5ee8960e3fca73ebfe560 100644 (file)
@@ -4,10 +4,10 @@
 /*@-constmacros@*/
 
 /* The directory where Splint's library files live */
-#define DEFAULT_LARCHPATH ".;C:/splint-3.0.1.6/lib"
+#define DEFAULT_LARCHPATH ".;C:/splint/lib"
 
 /* Splint's imports directory */
-#define DEFAULT_LCLIMPORTDIR ".;C:/splint-3.0.1.6/imports"
+#define DEFAULT_LCLIMPORTDIR ".;C:/splint/imports"
 
 /* system include directory */
 #define GCC_INCLUDE_DIR "C:/include"
 #define GCC_INCLUDE_DIR2 "C:/local/include"
 
 #define TARGET_CPU "x86"
-#define UNAME "WIN32"\r
+#define UNAME "WIN32"
 
 /* String describing who compiled this binary and how */
-#define LCL_COMPILE "Compiled using Microsoft Visual C++ 6.0"
+#define LCL_COMPILE "Compiled using Microsoft Visual C++ 7.0"
 
 /* Splint's version number */
-#define LCL_PARSE_VERSION "Splint 3.0.1.7"
+#define LCL_PARSE_VERSION "Splint 3.1.0"
 
 /* Define to disable support LCL files */
 /* #undef NOLCL */
 
 /* Splint's version number and configure/build date */
-#define SPLINT_VERSION "Splint 3.0.1.7 --- 11 Mar 2002"
+#define SPLINT_VERSION "Splint 3.1.0 --- 20 Apr 2003"
 
 /* The system's main include directory */
 #define SYSTEM_LIBDIR "C:/include"
This page took 0.08246 seconds and 5 git commands to generate.