home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / iter2.h < prev    next >
Text File  |  1997-09-03  |  463b  |  16 lines

  1. /*@iter intFor (int i, int j, int k, yield int val); @*/
  2. # define intFor(i, j, k, ___x) \
  3.   { int ___x = (i);  while ((___x) <= (j)) { (___x) += (k); 
  4.  
  5. # define end_intFor }}
  6.  
  7. /*@iter arrayElements (int i, int j, int *a, yield int el); @*/
  8. # define arrayElements(i,j,a,___x)\
  9.  { int ___c; int *(___b) = a; for (___c = (i); ___c <= (j); ___c++) { int ___x = *(___b); 
  10.    /* 9. j used more than once (in loop test) */
  11.  
  12. # define end_arrayElements \
  13.   (___b)++; }}
  14.  
  15.  
  16.