X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/28bf4b0bfd405a2057d865910f8589c54a40f17b..a9ec328054b628447830161535f4915f715f49cd:/src/Headers/cstringSList.h diff --git a/src/Headers/cstringSList.h b/src/Headers/cstringSList.h index dbf4e0b..c8f75a2 100644 --- a/src/Headers/cstringSList.h +++ b/src/Headers/cstringSList.h @@ -1,5 +1,5 @@ /* -** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001. +** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003. ** See ../LICENSE for license information. ** */ @@ -8,23 +8,23 @@ typedef /*@observer@*/ cstring ob_cstring; -abst_typedef /*@null@*/ struct s_cstringSList +struct s_cstringSList { int nelements; int nspace; /*@reldef@*/ /*@relnull@*/ ob_cstring *elements; -} *cstringSList ; +} ; /*@constant null cstringSList cstringSList_undefined;@*/ # define cstringSList_undefined ((cstringSList) NULL) -extern /*@falsenull@*/ bool cstringSList_isDefined (cstringSList p_s) /*@*/ ; +extern /*@falsewhennull@*/ bool cstringSList_isDefined (cstringSList p_s) /*@*/ ; # define cstringSList_isDefined(s) ((s) != cstringSList_undefined) extern int cstringSList_size (/*@sef@*/ cstringSList) /*@*/ ; # define cstringSList_size(s) (cstringSList_isDefined (s) ? (s)->nelements : 0) -extern /*@falsenull@*/ bool cstringSList_empty (/*@sef@*/ cstringSList) /*@*/ ; +extern /*@falsewhennull@*/ bool cstringSList_empty (/*@sef@*/ cstringSList) /*@*/ ; # define cstringSList_empty(s) (cstringSList_size(s) == 0) extern /*@unused@*/ cstring cstringSList_unparseSep (cstringSList p_s, cstring p_sep) /*@*/ ; @@ -42,10 +42,10 @@ extern void cstringSList_alphabetize (cstringSList p_s); extern /*@observer@*/ cstring cstringSList_get (cstringSList p_s, int p_index) /*@*/ ; extern /*@only@*/ cstring cstringSList_unparseAbbrev (cstringSList p_s) /*@*/ ; -extern /*@unused@*/ /*@only@*/ cstring cstringSList_unparse (cstringSList p_s) ; +extern /*@unused@*/ /*@only@*/ cstring cstringSList_unparse (cstringSList p_s) /*@*/ ; extern void cstringSList_free (/*@only@*/ cstringSList p_s) ; -extern void cstringSList_printSpaced (cstringSList p_s, int p_indent, int p_gap, int p_linelen); +extern void cstringSList_printSpaced (cstringSList p_s, size_t p_indent, size_t p_gap, int p_linelen); /*@constant int cstringSListBASESIZE;@*/ # define cstringSListBASESIZE MIDBASESIZE