]> andersk Git - splint.git/blame - src/Headers/mtLoseReferenceList.h
Fixes after removing -unrecogcomments flag for make splintme.
[splint.git] / src / Headers / mtLoseReferenceList.h
CommitLineData
28bf4b0b 1/*
c0de361f 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
28bf4b0b 3** See ../LICENSE for license information.
4**
5*/
6
7# ifndef MTLoseReferenceLIST_H
8# define MTLoseReferenceLIST_H
9
517a2db3 10/*:private:*/ typedef /*@only@*/ mtLoseReference o_mtLoseReference;
28bf4b0b 11
12struct s_mtLoseReferenceList
13{
14 int nelements;
15 int nspace;
16 /*@reldef@*/ /*@relnull@*/ o_mtLoseReference *elements;
17} ;
18
19/*@constant null mtLoseReferenceList mtLoseReferenceList_undefined;@*/
20# define mtLoseReferenceList_undefined ((mtLoseReferenceList) NULL)
21
0e41eb0e 22extern /*@falsewhennull@*/ bool mtLoseReferenceList_isDefined (mtLoseReferenceList p_s) /*@*/ ;
28bf4b0b 23# define mtLoseReferenceList_isDefined(s) ((s) != mtLoseReferenceList_undefined)
24
25extern int mtLoseReferenceList_size (/*@sef@*/ mtLoseReferenceList) /*@*/ ;
26# define mtLoseReferenceList_size(s) (mtLoseReferenceList_isDefined (s) ? (s)->nelements : 0)
27
0e41eb0e 28extern /*@unused@*/ /*@falsewhennull@*/ bool mtLoseReferenceList_empty (/*@sef@*/ mtLoseReferenceList) /*@*/ ;
28bf4b0b 29# define mtLoseReferenceList_empty(s) (mtLoseReferenceList_size(s) == 0)
30
31extern cstring mtLoseReferenceList_unparseSep (mtLoseReferenceList p_s, cstring p_sep) /*@*/ ;
32
33extern /*@unused@*/ /*@only@*/ mtLoseReferenceList mtLoseReferenceList_new (void) /*@*/ ;
34
b73d1009 35extern /*@only@*/ mtLoseReferenceList mtLoseReferenceList_single (/*@only@*/ mtLoseReference p_el) /*@*/ ;
28bf4b0b 36
37extern mtLoseReferenceList
b73d1009 38 mtLoseReferenceList_add (/*@only@*/ mtLoseReferenceList p_s, /*@only@*/ mtLoseReference p_el)
28bf4b0b 39 /*@modifies p_s@*/ ;
40
41extern mtLoseReferenceList
b73d1009 42 mtLoseReferenceList_prepend (/*@only@*/ mtLoseReferenceList p_s, /*@only@*/ mtLoseReference p_el)
28bf4b0b 43 /*@modifies p_s@*/ ;
44
45extern /*@unused@*/ /*@only@*/ cstring mtLoseReferenceList_unparse (mtLoseReferenceList p_s) ;
46extern void mtLoseReferenceList_free (/*@only@*/ mtLoseReferenceList p_s) ;
47
48/*@constant int mtLoseReferenceListBASESIZE;@*/
49# define mtLoseReferenceListBASESIZE MIDBASESIZE
50
51/*@iter mtLoseReferenceList_elements (sef mtLoseReferenceList x, yield exposed mtLoseReference el); @*/
52# define mtLoseReferenceList_elements(x, m_el) \
53 { if (mtLoseReferenceList_isDefined (x)) { \
54 int m_ind; mtLoseReference *m_elements = &((x)->elements[0]); \
55 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
56 { mtLoseReference m_el = *(m_elements++);
57
58# define end_mtLoseReferenceList_elements }}}
59
60# else
61# error "Multiple include"
62# endif
63
64
65
66
This page took 0.084906 seconds and 5 git commands to generate.