]> andersk Git - splint.git/blame - src/Headers/declaratorNodeList.h
Making fixes for Microsoft Visual C++ compiler.
[splint.git] / src / Headers / declaratorNodeList.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 DECLARATORNODELIST_H
7# define DECLARATORNODELIST_H
8
9typedef /*@only@*/ declaratorNode o_declaratorNode;
10
28bf4b0b 11abst_typedef struct
885824d3 12{
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_declaratorNode *elements;
16} *declaratorNodeList ;
17
18/*@iter declaratorNodeList_elements (sef declaratorNodeList x, yield exposed declaratorNode el); @*/
19# define declaratorNodeList_elements(x, m_el) \
20 { int m_ind; declaratorNode *m_elements = &((x)->elements[0]); \
21 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22 { declaratorNode m_el = *(m_elements++);
23
24# define end_declaratorNodeList_elements }}
25
26
27extern /*@only@*/ declaratorNodeList declaratorNodeList_new(void);
28extern declaratorNodeList
29 declaratorNodeList_add (/*@returned@*/ declaratorNodeList p_s,
30 /*@only@*/ declaratorNode p_el);
31
32extern /*@only@*/ cstring declaratorNodeList_unparse (declaratorNodeList p_s) ;
33extern void declaratorNodeList_free (/*@only@*/ declaratorNodeList p_s) ;
34extern declaratorNodeList declaratorNodeList_copy (declaratorNodeList p_s) ;
35
36/*@constant int declaratorNodeListBASESIZE;@*/
37# define declaratorNodeListBASESIZE SMALLBASESIZE
38
39# else
40# error "Multiple include"
41# endif
42
43
44
45
This page took 0.553316 seconds and 5 git commands to generate.