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 / iter.h < prev    next >
Text File  |  1997-09-03  |  409b  |  14 lines

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