]> andersk Git - splint.git/blame - src/Headers/pairNodeList.h
noexpand always false.
[splint.git] / src / Headers / pairNodeList.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 PAIRNODELIST_H
7# define PAIRNODELIST_H
8
9typedef /*@only@*/ pairNode o_pairNode;
10
28bf4b0b 11abst_typedef /*@null@*/ struct
885824d3 12{
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_pairNode *elements;
16} *pairNodeList ;
17
18/*@iter pairNodeList_elements (sef pairNodeList x, yield exposed pairNode el); @*/
19# define pairNodeList_elements(x, m_el) \
20 if (pairNodeList_isDefined (x)) \
21 { int m_ind; pairNode *m_elements = &((x)->elements[0]); \
22 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
23 { pairNode m_el = *(m_elements++);
24
25# define end_pairNodeList_elements }}
26
0e41eb0e 27extern /*@falsewhennull@*/ bool pairNodeList_isDefined (pairNodeList p_p) /*@*/ ;
885824d3 28
29/*@constant null pairNodeList pairNodeList_undefined; @*/
30# define pairNodeList_undefined ((pairNodeList)0)
31# define pairNodeList_isDefined(p) ((p) != pairNodeList_undefined)
32
33extern /*@only@*/ pairNodeList pairNodeList_new(void) /*@*/ ;
34extern void pairNodeList_addh (pairNodeList p_s, /*@keep@*/ pairNode p_el)
35 /*@modifies p_s@*/ ;
36
37extern /*@only@*/ cstring pairNodeList_unparse (pairNodeList p_s) /*@*/ ;
38extern void pairNodeList_free (/*@only@*/ pairNodeList p_s) ;
39
40/*@constant int pairNodeListBASESIZE;@*/
41# define pairNodeListBASESIZE SMALLBASESIZE
42
43# else
44# error "Multiple include"
45# endif
46
47
48
49
This page took 0.07347 seconds and 5 git commands to generate.