2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
6 # ifndef TYPENAMENODELIST_H
7 # define TYPENAMENODELIST_H
9 typedef /*@only@*/ typeNameNode o_typeNameNode
;
15 /*@reldef@*/ /*@relnull@*/ o_typeNameNode
*elements
;
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
) ;
40 # error "Multiple include"