]> andersk Git - splint.git/blob - src/Headers/varDeclarationNodeList.h
Updated copyrights
[splint.git] / src / Headers / varDeclarationNodeList.h
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 */
5
6 # ifndef VARDECLARATIONNODELIST_H
7 # define VARDECLARATIONNODELIST_H
8
9 typedef /*@only@*/ varDeclarationNode o_varDeclarationNode;
10
11 abst_typedef struct
12 {
13   int nelements;
14   int nspace;
15   /*@reldef@*/ /*@relnull@*/ o_varDeclarationNode  *elements;
16 } *varDeclarationNodeList ;
17
18 /*@iter varDeclarationNodeList_elements (sef varDeclarationNodeList x, yield exposed varDeclarationNode el); @*/
19 # define varDeclarationNodeList_elements(x, m_el) \
20    { int m_ind; varDeclarationNode *m_elements = &((x)->elements[0]); \
21      for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22        { varDeclarationNode m_el = *(m_elements++); 
23
24 # define end_varDeclarationNodeList_elements }}
25
26 extern /*@only@*/ varDeclarationNodeList varDeclarationNodeList_new (void) /*@*/ ;
27 extern void 
28   varDeclarationNodeList_addh (varDeclarationNodeList p_s, 
29                                /*@keep@*/ varDeclarationNode p_el) 
30   /*@modifies p_s@*/ ;
31
32 extern /*@only@*/ cstring varDeclarationNodeList_unparse (varDeclarationNodeList p_s)  /*@*/ ;
33 extern void varDeclarationNodeList_free (/*@only@*/ varDeclarationNodeList p_s) ;
34
35 /*@constant int varDeclarationNodeListBASESIZE;@*/
36 # define varDeclarationNodeListBASESIZE SMALLBASESIZE
37
38 # else
39 # error "Multiple include"
40 # endif
41
42
43
44
This page took 0.036597 seconds and 5 git commands to generate.