Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / src / Headers / sortSetList.h
blob28542b91511290c1e4ac5344d2d65154ac03c43f
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 */
5 # ifndef sortSetLIST_H
6 # define sortSetLIST_H
8 typedef /*@dependent@*/ sortSet o_sortSet;
10 abst_typedef struct
12 int nelements;
13 int free;
14 int current;
15 /*@reldef@*/ /*@only@*/ /*@relnull@*/ o_sortSet *elements;
16 } *sortSetList ;
18 /*@iter sortSetList_elements (sef sortSetList x, yield exposed sortSet el); @*/
19 # define sortSetList_elements(x, m_el) \
20 { int m_ind; sortSet *m_elements = &((x)->elements[0]); \
21 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
22 { sortSet m_el = *(m_elements++);
24 # define end_sortSetList_elements }}
26 extern int sortSetList_size (sortSetList);
28 # define sortSetList_size(s) ((s)->nelements)
30 extern /*@only@*/ sortSetList sortSetList_new(void);
31 extern void sortSetList_addh (sortSetList p_s, /*@dependent@*/ /*@exposed@*/ sortSet p_el) ;
33 extern void sortSetList_reset (sortSetList p_s) ;
34 extern void sortSetList_advance (sortSetList p_s) ; /* was "list_pointToNext" */
36 extern void sortSetList_free (/*@only@*/ sortSetList p_s) ;
38 extern /*@observer@*/ sortSet sortSetList_head (sortSetList p_s) ;
39 extern /*@observer@*/ sortSet sortSetList_current (sortSetList p_s) ;
41 # else
42 # error "Multiple include"
43 # endif