X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/12f2ffe97c533d1f0c79204b67cd82d3530af162..061ece7d6fedbde47030222fea74b575c12707dc:/src/mtAnnotationList.c diff --git a/src/mtAnnotationList.c b/src/mtAnnotationList.c index 5207953..977d7b2 100644 --- a/src/mtAnnotationList.c +++ b/src/mtAnnotationList.c @@ -1,6 +1,6 @@ /* -** LCLint - annotation-assisted static program checker -** Copyright (C) 1994-2001 University of Virginia, +** Splint - annotation-assisted static program checker +** Copyright (C) 1994-2003 University of Virginia, ** Massachusetts Institute of Technology ** ** This program is free software; you can redistribute it and/or modify it @@ -17,9 +17,9 @@ ** 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 more information: http://lclint.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 */ /* ** mtAnnotationList.c @@ -29,7 +29,7 @@ ** where T has T_equal (or change this) and T_unparse */ -# include "lclintMacros.nf" +# include "splintMacros.nf" # include "basic.h" mtAnnotationList @@ -74,14 +74,14 @@ mtAnnotationList_grow (/*@notnull@*/ mtAnnotationList s) s->elements = newelements; } -mtAnnotationList mtAnnotationList_single (/*@keep@*/ mtAnnotationDecl el) +mtAnnotationList mtAnnotationList_single (/*@only@*/ mtAnnotationDecl el) { mtAnnotationList s = mtAnnotationList_new (); s = mtAnnotationList_add (s, el); return s; } -mtAnnotationList mtAnnotationList_add (mtAnnotationList s, /*@keep@*/ mtAnnotationDecl el) +mtAnnotationList mtAnnotationList_add (mtAnnotationList s, mtAnnotationDecl el) { if (!mtAnnotationList_isDefined (s)) { @@ -94,19 +94,19 @@ mtAnnotationList mtAnnotationList_add (mtAnnotationList s, /*@keep@*/ mtAnnotati } s->nspace--; - /*@i32@*/ s->elements[s->nelements] = el; + s->elements[s->nelements] = el; s->nelements++; - /*@i32@*/ return s; + return s; } -mtAnnotationList mtAnnotationList_prepend (mtAnnotationList s, /*@keep@*/ mtAnnotationDecl el) +mtAnnotationList mtAnnotationList_prepend (mtAnnotationList s, mtAnnotationDecl el) { int i; if (!mtAnnotationList_isDefined (s)) { - /*@i32@*/ return mtAnnotationList_single (el); + return mtAnnotationList_single (el); } if (s->nspace <= 0) @@ -121,10 +121,10 @@ mtAnnotationList mtAnnotationList_prepend (mtAnnotationList s, /*@keep@*/ mtAnno s->elements[i] = s->elements [i - 1]; } - /*@i32@*/ s->elements[0] = el; + s->elements[0] = el; s->nelements++; - /*@i32@*/ return s; + return s; } cstring