]> andersk Git - splint.git/blame - src/Headers/filelocStack.h
Fixed some splintme errors from the previous code change.
[splint.git] / src / Headers / filelocStack.h
CommitLineData
885824d3 1/*
2** filelocStack.h (from slist_templace.h)
3*/
4
5# ifndef FILELOCSTACK_H
6# define FILELOCSTACK_H
7
28bf4b0b 8abst_typedef /*@null@*/ struct
885824d3 9{
10 int nelements;
11 int free;
12 /*@reldef@*/ /*@relnull@*/ o_fileloc *elements;
13} *filelocStack ;
14
15/*@constant null filelocStack filelocStack_undefined; @*/
16# define filelocStack_undefined (NULL)
17
0e41eb0e 18extern /*@falsewhennull@*/ bool filelocStack_isDefined (filelocStack p_f) /*@*/ ;
885824d3 19# define filelocStack_isDefined(f) ((f) != filelocStack_undefined)
20
21extern int filelocStack_size (/*@sef@*/ filelocStack p_s) /*@*/ ;
22# define filelocStack_size(s) (filelocStack_isDefined (s) ? (s)->nelements : 0)
23
24extern int filelocStack_includeDepth (filelocStack p_s);
80489f0a 25extern void filelocStack_printIncludes (filelocStack p_s) /*@modifies g_warningstream@*/ ;
885824d3 26
27extern void filelocStack_clear (filelocStack p_s) /*@modifies p_s@*/ ;
28
29extern /*@only@*/ filelocStack filelocStack_new (void) /*@*/ ;
30extern /*@observer@*/ fileloc filelocStack_nextTop (filelocStack p_s) /*@*/ ;
31
32extern bool
33 filelocStack_popPushFile (filelocStack p_s, /*@only@*/ fileloc p_el)
34 /*@modifies p_s@*/ ;
35
36extern /*@unused@*/ /*@only@*/ cstring filelocStack_unparse (filelocStack p_s) /*@*/ ;
37extern void filelocStack_free (/*@only@*/ filelocStack p_s) ;
38
39/*@constant int filelocStackBASESIZE;@*/
40# define filelocStackBASESIZE MIDBASESIZE
41
42# endif
43
44
45
46
This page took 0.104473 seconds and 5 git commands to generate.