]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | /* |
28bf4b0b | 2 | ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001. |
885824d3 | 3 | ** See ../LICENSE for license information. |
4 | */ | |
5 | ||
6 | # ifndef TYPENAMENODELIST_H | |
7 | # define TYPENAMENODELIST_H | |
8 | ||
9 | typedef /*@only@*/ typeNameNode o_typeNameNode; | |
10 | ||
28bf4b0b | 11 | abst_typedef struct |
885824d3 | 12 | { |
13 | int nelements; | |
14 | int nspace; | |
15 | /*@reldef@*/ /*@relnull@*/ o_typeNameNode *elements; | |
16 | } *typeNameNodeList ; | |
17 | ||
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++); | |
23 | ||
24 | # define end_typeNameNodeList_elements }} | |
25 | ||
26 | extern int typeNameNodeList_size (typeNameNodeList); | |
27 | # define typeNameNodeList_size(s) ((s)->nelements) | |
28 | ||
29 | extern bool typeNameNodeList_empty (typeNameNodeList); | |
30 | # define typeNameNodeList_empty(s) (typeNameNodeList_size(s) == 0) | |
31 | ||
32 | extern /*@only@*/ typeNameNodeList typeNameNodeList_new(void); | |
33 | ||
34 | extern typeNameNodeList | |
35 | typeNameNodeList_add (/*@returned@*/ typeNameNodeList p_s, /*@only@*/ typeNameNode p_el) ; | |
36 | ||
37 | extern /*@only@*/ cstring typeNameNodeList_unparse (typeNameNodeList p_s) ; | |
38 | extern void typeNameNodeList_free (/*@only@*/ typeNameNodeList p_s) ; | |
39 | ||
40 | /*@constant int typeNameNodeListBASESIZE;@*/ | |
41 | # define typeNameNodeListBASESIZE SMALLBASESIZE | |
42 | ||
43 | # else | |
44 | # error "Multiple include" | |
45 | # endif | |
46 | ||
47 | ||
48 | ||
49 |