]> andersk Git - splint.git/blob - src/Headers/typeNameNodeList.h
Updated copyrights
[splint.git] / src / Headers / typeNameNodeList.h
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 */
5
6 # ifndef TYPENAMENODELIST_H
7 # define TYPENAMENODELIST_H
8
9 typedef /*@only@*/ typeNameNode o_typeNameNode;
10
11 abst_typedef struct
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
This page took 0.039392 seconds and 5 git commands to generate.