uninstall-info-recursive all-recursive install-data-recursive \
install-exec-recursive installdirs-recursive install-recursive \
uninstall-recursive check-recursive installcheck-recursive
-DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
- acinclude.m4 aclocal.m4 config.hin config/config.guess \
- config/config.sub config/depcomp config/install-sh \
- config/missing config/mkinstalldirs configure configure.ac
+DIST_COMMON = README ./stamp-h.in Makefile.am Makefile.in acinclude.m4 \
+ aclocal.m4 config.hin config/config.guess config/config.sub \
+ config/depcomp config/install-sh config/missing \
+ config/mkinstalldirs configure configure.ac
DIST_SUBDIRS = $(SUBDIRS)
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by Autoconf 2.52 for Splint 3.0.1.6.
+# Generated by Autoconf 2.52 for Splint 3.0.1.7.
#
# Report bugs to <splint-bug@splint.org>.
#
# Identity of this package.
PACKAGE_NAME='Splint'
PACKAGE_TARNAME='splint'
-PACKAGE_VERSION='3.0.1.6'
-PACKAGE_STRING='Splint 3.0.1.6'
+PACKAGE_VERSION='3.0.1.7'
+PACKAGE_STRING='Splint 3.0.1.7'
PACKAGE_BUGREPORT='splint-bug@splint.org'
ac_prev=
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<EOF
-\`configure' configures Splint 3.0.1.6 to adapt to many kinds of systems.
+\`configure' configures Splint 3.0.1.7 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of Splint 3.0.1.6:";;
+ short | recursive ) echo "Configuration of Splint 3.0.1.7:";;
esac
cat <<\EOF
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\EOF
-Splint configure 3.0.1.6
+Splint configure 3.0.1.7
generated by GNU Autoconf 2.52
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by Splint $as_me 3.0.1.6, which was
+It was created by Splint $as_me 3.0.1.7, which was
generated by GNU Autoconf 2.52. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE=splint
-VERSION=3.0.1.6
+VERSION=3.0.1.7
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
EOF
# These used to be in herald.h
-LCL_PARSE_VERSION="Splint 3.0.1.6"
+LCL_PARSE_VERSION="Splint 3.0.1.7"
cat >>confdefs.h <<EOF
#define SPLINT_VERSION "$LCL_PARSE_VERSION --- `date +"%d %b %Y"`"
cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
-Splint config.status 3.0.1.6
+Splint config.status 3.0.1.7
configured by $0, generated by GNU Autoconf 2.52,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
## Running config.status. ##
## ----------------------- ##
-This file was extended by $as_me (Splint 3.0.1.6) 2.52, executed with
+This file was extended by $as_me (Splint 3.0.1.7) 2.52, executed with
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
dnl Process with autoconf to create a configure script -*- Autoconf -*-
AC_PREREQ(2.50)
-AC_INIT([Splint], [3.0.1.6], [splint-bug@splint.org], [splint])
+AC_INIT([Splint], [3.0.1.7], [splint-bug@splint.org], [splint])
dnl This MUST precede any other macro
AC_CONFIG_AUX_DIR([config])
(void)printf arg; printf("\n"); /*@=formatconst@*/ /*@=mustfree@*/ /*@=null@*/ (void) fflush (stdout); \
} while (FALSE)
+/*
+** DPRINTF does nothing, just a marker to save TPRINTF's
+*/
-# if DEBUGPRINT
-/*@notfunction@*/
-# define DPRINTF(s) /*@access cstring@*/ TPRINTF(s) /*@noaccess cstring@*/
-# else
/*@notfunction@*/
# define DPRINTF(s)
-# endif
/*@notfunction@*/
# define INTCOMPARERETURN(x,y) \
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
CFLAGS = @CFLAGS@
DIST_SOURCES = $(lcl_SOURCES) $(splint_SOURCES)
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = ChangeLog Makefile.am Makefile.in
SOURCES = $(lcl_SOURCES) $(splint_SOURCES)
all: $(BUILT_SOURCES)
void context_enterSwitch (exprNode e)
{
-
+ DPRINTF (("Enter switch: %s", exprNode_unparse (e)));
usymtab_switchBranch (e);
context_enterCondClauseAux (SWITCHCLAUSE);
}
void context_exitSwitch (exprNode e, bool allpaths)
{
- usymtab_exitSwitch (e, allpaths);
+ usymtab_exitSwitch (e, allpaths);
while (clause_isCase (clauseStack_top (gc.clauses)))
{
**
*/
+/*
+ * Herbert 02/17/2002:
+ * - fixed the recognition of Posix headers for OS/2
+ */
+
# include "splintMacros.nf"
# include "llbasic.h"
# include "osd.h"
/*@access cstring@*/
llassert (cstring_isDefined (xname));
+# if defined (OS2)
+ {
+ /* Posixlibs use forward slashes, so we use them here, too */
+ cstring_replaceAll (xname, '\\', '/');
+ libname = strrchr (xname, '/');
+ DPRINTF (("libname: %s", libname));
+ }
+# else
libname = strrchr (xname, CONNECTCHAR);
+# endif
matchname = libname;
if (libname == NULL)
for (i = 0; i < NUMPOSIXLIBS; i++)
{
- if (strchr (posixlibs[i], CONNECTCHAR) != NULL)
+ if (strchr (posixlibs[i], CONNECTCHAR) != NULL
+# if defined (OS2)
+ || strchr (posixlibs[i], ALTCONNECTCHAR) != NULL
+# endif
+ )
{
char *ptr;
+ DPRINTF (("xname: %s, posix: %s", xname, posixlibs[i]));
if ((ptr = strstr (xname, posixlibs[i])) != NULL)
{
if (ptr[strlen (posixlibs[i])] == '\0')
{
if (msgentry_equal (msg, s->elements[ind + 1]))
{
- DPRINTF (("Messages equivalent: %s / %s",
- msgentry_unparse (msg),
- msgentry_unparse (s->elements[ind+1])));
msgentry_free (msg);
return FALSE;
}
} end_mtLoseReferenceList_elements ;
}
- /*@-usedef@*/
- DPRINTF (("metastate: %s", metaStateInfo_unparse (msinfo)));
- /*@=usedef@*/
-
tmerge = stateCombinationTable_create (nvalues);
/* Default merge is to make all incompatible mergers errors. */
* Herbert 06/12/2000:
* - added OS/2 specific includes before osd_getPid()
* - handle files like in WIN32 for OS/2 in osd_fileExists()
+ * Herbert 02/17/2002:
+ * - added OS/2 support to absolute file names
*/
/*@-allmacros*/
# include <sys/stat.h>
/* Fix suggested by Lars Rasmussen */
# include <errno.h>
-# ifdef WIN32
-# include <direct.h>
-# define getcwd _getcwd
-# endif
/* POSIX platforms should defined getpid in unistd.h */
# if defined (WIN32) || (defined(OS2) && defined(__IBMC__))
# include <process.h>
+# include <direct.h>
+# define getcwd _getcwd
# else
# include <unistd.h>
# endif
DPRINTF (("Absolute for: %s", str));
-# ifdef WIN32
+# if defined (WIN32) || defined (OS2) || defined (MSDOS)
if (strlen (str) > 1 && str[1] == ':')
{
/*
static void osd_setWorkingDirectory (void)
{
-# ifdef UNIX
+# if defined (UNIX) || defined (OS2)
char *buf = dmalloc (sizeof (*buf) * MAXPATHLEN);
char *cwd = getcwd (buf, MAXPATHLEN);
cstring osd_absolutePath (cstring cwd, cstring filename)
{
-# ifdef UNIX
+# if defined (UNIX) || defined (OS2)
/* Setup the current working directory as needed. */
cstring cwd2 = cstring_isDefined (cwd) ? cwd : osd_cwd;
char *abs_buffer;
{
const char *src_p;
- if (filename[0] != '/')
+ if (!osd_isConnectChar (filename[0])
+# ifdef OS2
+ && !(isalpha (filename[0]) && filename[1] == ':')
+# endif
+ )
{
src_p = cwd2;
continue;
}
- *(endp-1) = '/'; /* overwrite null */
+ *(endp-1) = CONNECTCHAR; /* overwrite null */
}
src_p = filename;
{
break;
}
- else if (inp[0] == '/' && outp[-1] == '/')
+ else if (osd_isConnectChar (inp[0]) && osd_isConnectChar (outp[-1]))
{
inp++;
continue;
}
- else if (inp[0] == '.' && outp[-1] == '/')
+ else if (inp[0] == '.' && osd_isConnectChar (outp[-1]))
{
if (inp[1] == '\0')
{
break;
}
- else if (inp[1] == '/')
+ else if (osd_isConnectChar (inp[1]))
{
inp += 2;
continue;
}
else if ((inp[1] == '.')
- && (inp[2] == '\0' || inp[2] == '/'))
+ && (inp[2] == '\0' || osd_isConnectChar (inp[2])))
{
- inp += (inp[2] == '/') ? 3 : 2;
+ inp += (osd_isConnectChar (inp[2])) ? 3 : 2;
outp -= 2;
- while (outp >= abs_buffer && *outp != '/')
+ while (outp >= abs_buffer && !osd_isConnectChar (*outp))
{
outp--;
}
the last character of the returned string is *not* a slash. */
*outp = '\0';
- if (outp[-1] == '/')
+ if (osd_isConnectChar (outp[-1]))
*--outp = '\0';
/*@noaccess cstring@*/
cstring osd_outputPath (cstring filename)
{
-# ifdef UNIX
+# if defined (UNIX) || defined (OS2)
char *rel_buffer;
char *rel_buf_p;
cstring cwd_p = osd_cwd;
path_p++;
}
- if ((*cwd_p == '\0') && (*path_p == '\0' || *path_p == '/')) /* whole pwd matched */
+ if ((*cwd_p == '\0') && (*path_p == '\0' || osd_isConnectChar (*path_p))) /* whole pwd matched */
{
if (*path_p == '\0') /* input *is* the current path! */
return cstring_makeLiteral (".");
{
--cwd_p;
--path_p;
- while (*cwd_p != '/') /* backup to last slash */
+ while (!osd_isConnectChar (*cwd_p)) /* backup to last slash */
{
--cwd_p;
--path_p;
/* Find out how many directory levels in cwd were *not* matched. */
while (*cwd_p != '\0')
{
- if (*cwd_p++ == '/')
+ if (osd_isConnectChar (*cwd_p++))
unmatched_slash_count++;
}
*rel_buf_p++ = '.';
*rel_buf_p++ = '.';
- *rel_buf_p++ = '/';
+ *rel_buf_p++ = CONNECTCHAR;
}
/* Then tack on the unmatched part of the desired file's name. */
/*@=usereleased@*/ /*@i523! shouldn't need these */
--rel_buf_p;
- if (*(rel_buf_p-1) == '/')
+ if (osd_isConnectChar (*(rel_buf_p-1)))
*--rel_buf_p = '\0';
return rel_buffer;
}
}
- DPRINTF (("Using symtab: %s", usymtab_unparseLocalAux (st)));
-
eindex = usymtab_getIndex (st, ename);
if (eindex != NOT_FOUND)
bool mustReturn = usymtab_mustEscape (utab);
usymtab stab = utab;
+ DPRINTF (("New case!"));
+
/*
** Find last case (or outer switch)
*/
stab = stab->env;
llassert (stab != GLOBAL_ENV);
}
-
- /* ??? */
-
+
while (stab->kind == US_CBRANCH)
{
stab = stab->env;