]> andersk Git - splint.git/blame - src/Headers/typeNameNodeList.h
noexpand always false.
[splint.git] / src / Headers / typeNameNodeList.h
CommitLineData
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 TYPENAMENODELIST_H
7# define TYPENAMENODELIST_H
8
9typedef /*@only@*/ typeNameNode o_typeNameNode;
10
28bf4b0b 11abst_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
26extern int typeNameNodeList_size (typeNameNodeList);
27# define typeNameNodeList_size(s) ((s)->nelements)
28
29extern bool typeNameNodeList_empty (typeNameNodeList);
30# define typeNameNodeList_empty(s) (typeNameNodeList_size(s) == 0)
31
32extern /*@only@*/ typeNameNodeList typeNameNodeList_new(void);
33
34extern typeNameNodeList
35 typeNameNodeList_add (/*@returned@*/ typeNameNodeList p_s, /*@only@*/ typeNameNode p_el) ;
36
37extern /*@only@*/ cstring typeNameNodeList_unparse (typeNameNodeList p_s) ;
38extern 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.076389 seconds and 5 git commands to generate.