]> andersk Git - splint.git/blob - src/Headers/sRefSetList.h
Renamed truenull nullwhentrue and falsenull falsewhennull
[splint.git] / src / Headers / sRefSetList.h
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
3 ** See ../LICENSE for license information.
4 **
5 */
6 # ifndef sRefSetLIST_H
7 # define sRefSetLIST_H
8
9 typedef /*@dependent@*/ sRefSet d_sRefSet;
10
11 abst_typedef /*@null@*/ struct
12 {
13   int      nelements;
14   int      nspace;
15   /*@reldef@*/ /*@relnull@*/ d_sRefSet *elements;
16 } *sRefSetList ;
17
18 /*@iter sRefSetList_elements (sef sRefSetList x, yield exposed sRefSet el); @*/
19 # define sRefSetList_elements(x, m_el) \
20    { if (sRefSetList_isDefined (x)) { \
21      int m_ind; sRefSet *m_elements = &((x)->elements[0]); \
22      for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
23        { sRefSet m_el = *(m_elements++); 
24
25 # define end_sRefSetList_elements }}}
26
27 /*@constant null sRefSetList sRefSetList_undefined; @*/
28 # define sRefSetList_undefined  ((sRefSetList) NULL)
29
30 extern /*@falsewhennull@*/ bool sRefSetList_isDefined (sRefSetList p_s);
31 # define sRefSetList_isDefined(s) ((s) != sRefSetList_undefined)
32
33 extern /*@unused@*/ /*@nullwhentrue@*/ bool sRefSetList_isUndefined (sRefSetList p_s);
34 # define sRefSetList_isUndefined(s) ((s) == sRefSetList_undefined)
35
36 extern sRefSetList 
37   sRefSetList_add (/*@returned@*/ sRefSetList p_s, /*@exposed@*/ sRefSet p_el)
38   /*@modifies p_s@*/ ;
39
40 extern void sRefSetList_free (/*@only@*/ sRefSetList p_s);
41 extern void sRefSetList_clear (sRefSetList p_s);
42
43 /*@constant int sRefSetListBASESIZE;@*/
44 # define sRefSetListBASESIZE MIDBASESIZE
45
46 # else
47 # error "Multiple include"
48 # endif
49
50
51
52
This page took 0.067923 seconds and 5 git commands to generate.