Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / src / Headers / typeNameNodeList.h
blob958d728268d942b04717ce7b8ef6efca1593640e
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 */
6 # ifndef TYPENAMENODELIST_H
7 # define TYPENAMENODELIST_H
9 typedef /*@only@*/ typeNameNode o_typeNameNode;
11 abst_typedef struct
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_typeNameNode *elements;
16 } *typeNameNodeList ;
18 /*@iter typeNameNodeList_elements (sef typeNameNodeList x, yield exposed typeNameNode el); @*/
19 # define typeNameNodeList_elements(x, m_el) \
20 { int m_ind; typeNameNode *m_elements = &((x)->elements[0]); \
21 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22 { typeNameNode m_el = *(m_elements++);
24 # define end_typeNameNodeList_elements }}
26 extern int typeNameNodeList_size (typeNameNodeList);
27 # define typeNameNodeList_size(s) ((s)->nelements)
29 extern bool typeNameNodeList_empty (typeNameNodeList);
30 # define typeNameNodeList_empty(s) (typeNameNodeList_size(s) == 0)
32 extern /*@only@*/ typeNameNodeList typeNameNodeList_new(void);
34 extern typeNameNodeList
35 typeNameNodeList_add (/*@returned@*/ typeNameNodeList p_s, /*@only@*/ typeNameNode p_el) ;
37 extern void typeNameNodeList_free (/*@only@*/ typeNameNodeList p_s) ;
39 # else
40 # error "Multiple include"
41 # endif