]> andersk Git - splint.git/blame - src/Headers/idDeclList.h
Updated copyrights
[splint.git] / src / Headers / idDeclList.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 idDeclLIST_H
7# define idDeclLIST_H
8
9typedef /*@only@*/ idDecl o_idDecl;
10
28bf4b0b 11abst_typedef struct
885824d3 12{
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_idDecl *elements;
16} *idDeclList ;
17
18/*@iter idDeclList_elements (sef idDeclList x, yield exposed idDecl el); @*/
19# define idDeclList_elements(x, m_el) \
20 { int m_ind; idDecl *m_elements = &((x)->elements[0]); \
21 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22 { idDecl m_el = *(m_elements++);
23
24# define end_idDeclList_elements }}
25
26extern /*@only@*/ idDeclList idDeclList_singleton (/*@only@*/ idDecl p_e) ;
27extern idDeclList idDeclList_add (/*@returned@*/ idDeclList p_s, /*@only@*/ idDecl p_el) ;
28
29extern /*@unused@*/ /*@only@*/ cstring idDeclList_unparse (idDeclList p_s) ;
30extern void idDeclList_free (/*@only@*/ idDeclList p_s) ;
31
32/*@constant int idDeclListBASESIZE;@*/
33# define idDeclListBASESIZE SMALLBASESIZE
34
35# else
36# error "Multiple include"
37# endif
38
39
40
41
This page took 0.235753 seconds and 5 git commands to generate.