Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / src / Headers / idDeclList.h
blob4d52c967b5ad089502e56a496328eb8fb42f8984
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 **
5 */
6 # ifndef idDeclLIST_H
7 # define idDeclLIST_H
9 typedef /*@only@*/ idDecl o_idDecl;
11 abst_typedef struct
13 int nelements;
14 int nspace;
15 /*@reldef@*/ /*@relnull@*/ o_idDecl *elements;
16 } *idDeclList ;
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++);
24 # define end_idDeclList_elements }}
26 extern /*@only@*/ idDeclList idDeclList_singleton (/*@only@*/ idDecl p_e) ;
27 extern idDeclList idDeclList_add (/*@returned@*/ idDeclList p_s, /*@only@*/ idDecl p_el) ;
29 extern void idDeclList_free (/*@only@*/ idDeclList p_s) ;
31 # else
32 # error "Multiple include"
33 # endif