2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2000.
3 ** See ../LICENSE for license information.
5 # ifndef constraintLIST_H
6 # define constraintLIST_H
8 typedef /*@only@*/ constraint o_constraint;
10 abst_typedef struct _constraintList
14 /*@reldef@*/ /*@relnull@*/ o_constraint *elements;
17 /*@iter constraintList_elements (sef constraintList x, yield exposed constraint el); @*/
18 # define constraintList_elements(x, m_el) \
19 { int m_ind; constraint *m_elements = &((x)->elements[0]); \
20 for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
21 { constraint m_el = *(m_elements++);
23 # define end_constraintList_elements }}
25 extern /*@only@*/ constraintList constraintList_new(void);
26 extern constraintList constraintList_add (/*@returned@*/ constraintList p_s, /*@only@*/ constraint p_el) ;
28 extern constraintList constraintList_copy (constraintList p_s);
30 //extern /*@only@*/ cstring constraintList_unparse (constraintList p_s) ;
31 extern void constraintList_free (/*@only@*/ constraintList p_s) ;
33 /*@constant int constraintListBASESIZE;@*/
34 # define constraintListBASESIZE SMALLBASESIZE
37 # error "Multiple include"