Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / src / Headers / varDeclarationNodeList.h
blob905c6c0c98e8c1050b525ab9e9cde8d9ffd4269d
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 */
6 # ifndef VARDECLARATIONNODELIST_H
7 # define VARDECLARATIONNODELIST_H
9 typedef /*@only@*/ varDeclarationNode o_varDeclarationNode;
11 abst_typedef struct
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_varDeclarationNode *elements;
16 } *varDeclarationNodeList ;
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++);
24 # define end_varDeclarationNodeList_elements }}
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@*/ ;
32 extern void varDeclarationNodeList_free (/*@only@*/ varDeclarationNodeList p_s) ;
34 # else
35 # error "Multiple include"
36 # endif