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:
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:
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
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))
{
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))
{
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,
ARG_SPECIAL /* ? */
} argcode;
+# ifdef WIN32
+/* Make Microsoft VC++ happy */
+# pragma warning (disable:4715)
+# endif
+
static /*@observer@*/ cstring argcode_unparse (argcode arg)
{
switch (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 {
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
}
}
-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
/*@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
static bool reportEOL;
static bool reportComments;
-static char tokenBuffer[MAXCHAR];
+static char tokenBuffer[SCANMAXCHAR];
static const charClassData charClassDef[] =
{
}
}
+# ifdef WIN32
+/* Make Microsoft VC++ happy */
+# pragma warning (disable : 4715)
+# endif
+
/*@observer@*/ sRefSet
uentry_getMods (uentry l)
{
{
BADBRANCH;
}
-# ifdef WIN32
-/* Make Microsoft VC++ happy */
-# pragma warning (disable : 4715)
-# endif
}
ekind
- 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
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
/*@-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"