2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
6 # ifndef DECLARATORNODELIST_H
7 # define DECLARATORNODELIST_H
9 typedef /*@only@*/ declaratorNode o_declaratorNode
;
15 /*@reldef@*/ /*@relnull@*/ o_declaratorNode
*elements
;
16 } *declaratorNodeList
;
18 /*@iter declaratorNodeList_elements (sef declaratorNodeList x, yield exposed declaratorNode el); @*/
19 # define declaratorNodeList_elements(x, m_el) \
20 { int m_ind; declaratorNode *m_elements = &((x)->elements[0]); \
21 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22 { declaratorNode m_el = *(m_elements++);
24 # define end_declaratorNodeList_elements }}
27 extern /*@only@*/ declaratorNodeList
declaratorNodeList_new(void);
28 extern declaratorNodeList
29 declaratorNodeList_add (/*@returned@*/ declaratorNodeList p_s
,
30 /*@only@*/ declaratorNode p_el
);
32 extern /*@only@*/ cstring
declaratorNodeList_unparse (declaratorNodeList p_s
) ;
33 extern void declaratorNodeList_free (/*@only@*/ declaratorNodeList p_s
) ;
34 extern declaratorNodeList
declaratorNodeList_copy (declaratorNodeList p_s
) ;
36 /*@constant int declaratorNodeListBASESIZE;@*/
37 # define declaratorNodeListBASESIZE SMALLBASESIZE
40 # error "Multiple include"