]> andersk Git - splint.git/blame - src/Headers/sRefSetList.h
Renamed truenull nullwhentrue and falsenull falsewhennull
[splint.git] / src / Headers / sRefSetList.h
CommitLineData
885824d3 1/*
28bf4b0b 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
885824d3 3** See ../LICENSE for license information.
4**
5*/
6# ifndef sRefSetLIST_H
7# define sRefSetLIST_H
8
9typedef /*@dependent@*/ sRefSet d_sRefSet;
10
28bf4b0b 11abst_typedef /*@null@*/ struct
885824d3 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
0e41eb0e 30extern /*@falsewhennull@*/ bool sRefSetList_isDefined (sRefSetList p_s);
885824d3 31# define sRefSetList_isDefined(s) ((s) != sRefSetList_undefined)
32
0e41eb0e 33extern /*@unused@*/ /*@nullwhentrue@*/ bool sRefSetList_isUndefined (sRefSetList p_s);
885824d3 34# define sRefSetList_isUndefined(s) ((s) == sRefSetList_undefined)
35
36extern sRefSetList
37 sRefSetList_add (/*@returned@*/ sRefSetList p_s, /*@exposed@*/ sRefSet p_el)
38 /*@modifies p_s@*/ ;
39
40extern void sRefSetList_free (/*@only@*/ sRefSetList p_s);
41extern 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.16877 seconds and 5 git commands to generate.