Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.48
 
1.49
 
MAIN:ragge:20070801045250
 
cpp.c
_>729729 void
 730730 savch(c)
 731731 {
<>732 -        *stringbuf++ = c;
 733 -        if (stringbuf-sbf < SBSIZE)
 734 -                return;
 735 -        stringbuf = sbf; /* need space to write error message */
 736 -        error("Too much defining");
  732+        if (stringbuf-sbf < SBSIZE) {
  733+                *stringbuf++ = c;
  734+        } else {
  735+                stringbuf = sbf; /* need space to write error message */
  736+                error("Too much defining");
  737+        }
737738 }
 738739 
 739740 /*
     
 !
11601161 {
 11611162         usch *rv = stringbuf;
 11621163 
<>1163 -        while ((*stringbuf++ = *str++))
 1164 -                if (stringbuf >= &sbf[SBSIZE])
  1164+        do {
  1165+                if (stringbuf >= &sbf[SBSIZE])   {
  1166+                        stringbuf = sbf; /* need space to write error message */
11651167                         error("out of macro space!");
<> 1168+                }
  1169+        } while ((*stringbuf++ = *str++));
<_11661170         stringbuf--;
 11671171         return rv;
 11681172 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-18 15:45 +0200