/*
** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2001 University of Virginia,
+** Copyright (C) 1994-2002 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
** MA 02111-1307, USA.
**
-** For information on lclint: lclint-request@cs.virginia.edu
-** To report a bug: lclint-bug@cs.virginia.edu
+** For information on splint: info@splint.org
+** To report a bug: splint-bug@splint.org
** For more information: http://www.splint.org
*/
/*
**
*/
-# include "lclintMacros.nf"
+# include "splintMacros.nf"
# include "llbasic.h"
# include "gram.h"
# include "lclscan.h"
result = qtype_addQualList (result, n->quals);
- if (n->pointers > 0)
+ if (pointers_isDefined (n->pointers))
{
qtype_adjustPointers (n->pointers, result);
}
if /*@-usedef@*/ (first == '\"') /*@=usedef@*/
{
- int len = cstring_length (text) - 2;
+ size_t len = cstring_length (text) - 2;
char *val = mstring_create (len);
llassert (cstring_lastChar (text) == '\"');
- strncpy (val, cstring_toCharsSafe (text) + 1, size_fromInt (len));
+ strncpy (val, cstring_toCharsSafe (text) + 1, len);
return (multiVal_makeString (cstring_fromCharsO (val)));
}
if (i->value != (termNode)0 &&
i->value->kind == TRM_LITERAL)
{
- ue = uentry_makeConstantAux (s, ct, loc, priv,
- literalValue (ct, i->value->literal));
+ ue = uentry_makeConstantValue (s, ct, loc, priv, literalValue (ct, i->value->literal));
}
else
{
- ue = uentry_makeConstantAux (s, ct, loc, priv, multiVal_unknown ());
+ ue = uentry_makeConstantValue (s, ct, loc, priv, multiVal_unknown ());
}
-
- uentry_reflectQualifiers (ue, qtype_getQuals (qt));
-
+
+ uentry_reflectQualifiers (ue, qtype_getQuals (qt));
if (context_inLCLLib () && !priv)
{