]> andersk Git - splint.git/blobdiff - src/Headers/constraintList.h
*** empty log message ***
[splint.git] / src / Headers / constraintList.h
index 18ea92904162a0acec7cb14c627bce6b018e50e4..de3c145f4bd71a18e52d7b185746d40bdbe4a79d 100644 (file)
@@ -31,11 +31,11 @@ extern constraintList constraintList_preserveCallInfo (/*@returned@*/ constraint
 
 /*@iter constraintList_elements (sef constraintList x, yield exposed constraint el); @*/
 # define constraintList_elements(x, m_el) \
-   { int m_ind; constraint *m_elements = &((x)->elements[0]); \
+   { if (constraintList_isDefined (x)) { int m_ind; constraint *m_elements = &((x)->elements[0]); \
      for (m_ind = 0 ; m_ind < (x)->nelements; m_ind++) \
        { constraint m_el = *(m_elements++); 
 
-# define end_constraintList_elements }}
+# define end_constraintList_elements }}}
 
 extern /*@only@*/ constraintList constraintList_makeNew(void) /*@*/;
 extern constraintList constraintList_add (/*@returned@*/ constraintList p_s, /*@only@*/ constraint p_el) /*@modifies p_s@*/ ;
This page took 0.034028 seconds and 4 git commands to generate.