]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | /* |
c0de361f | 2 | ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003. |
885824d3 | 3 | ** See ../LICENSE for license information. |
4 | ** | |
5 | */ | |
6 | # ifndef replaceNodeLIST_H | |
7 | # define replaceNodeLIST_H | |
8 | ||
9 | typedef /*@only@*/ replaceNode o_replaceNode; | |
10 | ||
28bf4b0b | 11 | abst_typedef struct |
885824d3 | 12 | { |
13 | int nelements; | |
14 | int nspace; | |
15 | /*@reldef@*/ /*@relnull@*/ o_replaceNode *elements; | |
16 | } *replaceNodeList ; | |
17 | ||
18 | /*@iter replaceNodeList_elements (sef replaceNodeList x, yield exposed replaceNode el); @*/ | |
19 | # define replaceNodeList_elements(x, m_el) \ | |
20 | { int m_ind; replaceNode *m_elements = &((x)->elements[0]); \ | |
21 | for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \ | |
22 | { replaceNode m_el = *(m_elements++); | |
23 | ||
24 | # define end_replaceNodeList_elements }} | |
25 | ||
26 | extern int replaceNodeList_size (replaceNodeList); | |
27 | ||
28 | # define replaceNodeList_size(s) ((s)->nelements) | |
29 | ||
30 | extern bool replaceNodeList_isDefined (replaceNodeList); | |
31 | # define replaceNodeList_isDefined(s) ((s) != (replaceNodeList)0) | |
32 | ||
33 | extern /*@only@*/ replaceNodeList replaceNodeList_new(void); | |
34 | ||
35 | extern replaceNodeList | |
36 | replaceNodeList_add (/*@returned@*/ replaceNodeList p_s, /*@only@*/ replaceNode p_el) ; | |
37 | ||
38 | extern /*@only@*/ cstring replaceNodeList_unparse (replaceNodeList p_s) ; | |
39 | extern void replaceNodeList_free (/*@only@*/ replaceNodeList p_s) ; | |
40 | ||
41 | /*@constant int replaceNodeListBASESIZE;@*/ | |
42 | # define replaceNodeListBASESIZE SMALLBASESIZE | |
43 | ||
44 | # else | |
45 | # error "Multiple include" | |
46 | # endif | |
47 | ||
48 | ||
49 | ||
50 |