/*
** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
*/
# include "splintMacros.nf"
-# include "llbasic.h"
+# include "basic.h"
# include "gram.h"
# include "lclscan.h"
# include "lclsyntable.h"
llassert (lineptr != NULL);
lineptr = strchr (lineptr + 1, ' '); /* go past namestr */
llassert (lineptr != NULL);
- col = 5 + lineptr - line; /* 5 for initial "%LCL "*/
+ col = 5 + ((int) (lineptr - line)); /* 5 for initial "%LCL "*/
lclbug (message ("%q: Imported files contains unknown base sort",
fileloc_unparseRawCol (importfile, inputStream_thisLineNumber (srce), col)));
if (!usymtab_existsGlobEither (cnamestr))
{
(void) usymtab_addEntry
- (uentry_makeDatatype (cnamestr, ctype_unknown,
- ti->abstract ? ynm_fromBool (ti->modifiable) : MAYBE,
- ti->abstract ? YES : NO,
- fileloc_copy (imploc)));
+ (uentry_makeDatatype
+ (cnamestr, ctype_unknown,
+ ti->abstract ? ynm_fromBool (ti->modifiable) : MAYBE,
+ ti->abstract ? qual_createAbstract () : qual_createConcrete (),
+ fileloc_copy (imploc)));
}
}
llassert (lineptr != NULL);
lineptr = strchr (lineptr + 1, ' '); /* go past namestr */
llassert (lineptr != NULL);
- col = 5 + lineptr - line; /* 5 for initial "%LCL "*/
+ col = 5 + ((int) (lineptr - line)); /* 5 for initial "%LCL "*/
if (sort_isNoSort (bsort))
{
lineptr = strchr (lineptr + 1, ' '); /* go past namestr */
llassert (lineptr != NULL);
- col = 5 + lineptr - line; /* 5 for initial "%LCL "*/
+ col = 5 + ((int) (lineptr - line)); /* 5 for initial "%LCL "*/
if (sort_isNoSort (bsort))
{
lineptr = strchr (lineptr + 1, ' '); /* go past namestr */
llassert (lineptr != NULL);
- col = 5 + lineptr - line; /* 5 for initial "%LCL "*/
+ col = 5 + ((int) (lineptr - line)); /* 5 for initial "%LCL "*/
if (sort_isNoSort (bsort))
{
lclplainerror (message ("%q: unknown base sort\n",
/*@only@*/ lslOpSet
symtable_opsWithLegalDomain (symtable tab, /*@temp@*/ /*@null@*/ nameNode n,
- sortSetList argSorts, sort qual)
+ sortSetList argSorts, sort q)
{
/* handles nil qual */
lslOpSet ops = lslOpSet_new ();
{
rangeSort = sigNode_rangeSort (sig);
- if ((qual == 0) || (sort_equal (rangeSort, qual)))
+ if ((q == NULL) || (sort_equal (rangeSort, q)))
{
if (domainMatches (sig->domain, argSorts))
{