]> andersk Git - splint.git/blob - src/Headers/pairNodeList.h
Renamed truenull nullwhentrue and falsenull falsewhennull
[splint.git] / src / Headers / pairNodeList.h
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
3 ** See ../LICENSE for license information.
4 **
5 */
6 # ifndef PAIRNODELIST_H
7 # define PAIRNODELIST_H
8
9 typedef /*@only@*/ pairNode o_pairNode;
10
11 abst_typedef /*@null@*/ struct
12 {
13   int nelements;
14   int nspace;
15   /*@reldef@*/ /*@relnull@*/ o_pairNode *elements;
16 } *pairNodeList ;
17
18 /*@iter pairNodeList_elements (sef pairNodeList x, yield exposed pairNode el); @*/
19 # define pairNodeList_elements(x, m_el) \
20    if (pairNodeList_isDefined (x)) \
21      { int m_ind; pairNode *m_elements = &((x)->elements[0]); \
22        for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
23          { pairNode m_el = *(m_elements++); 
24
25 # define end_pairNodeList_elements }}
26
27 extern /*@falsewhennull@*/ bool pairNodeList_isDefined (pairNodeList p_p) /*@*/ ;
28
29 /*@constant null pairNodeList pairNodeList_undefined; @*/
30 # define pairNodeList_undefined    ((pairNodeList)0)
31 # define pairNodeList_isDefined(p) ((p) != pairNodeList_undefined)
32
33 extern /*@only@*/ pairNodeList pairNodeList_new(void) /*@*/ ;
34 extern void pairNodeList_addh (pairNodeList p_s, /*@keep@*/ pairNode p_el) 
35    /*@modifies p_s@*/ ;
36
37 extern /*@only@*/ cstring pairNodeList_unparse (pairNodeList p_s)  /*@*/ ;
38 extern void pairNodeList_free (/*@only@*/ pairNodeList p_s) ;
39
40 /*@constant int pairNodeListBASESIZE;@*/
41 # define pairNodeListBASESIZE SMALLBASESIZE
42
43 # else
44 # error "Multiple include"
45 # endif
46
47
48
49
This page took 0.040051 seconds and 5 git commands to generate.