Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.79
 
1.80
 
MAIN:plunky:20121011101742
 
token.c
     
 !
_> 1134+/* save line into stringbuf */
     
 !
<>1135 -svinp(void)
  1136+savln(void)
     
 !
<>1140 -        while ((c = inch()) && c != '\n')
  1141+        while ((c = inch()) != 0) {
  1142+                if (c == '\n') {
  1143+                        unch(c);
  1144+                        break;
  1145+                }
     
 !
<>1142 -        savch('\n');
  1147+        }
     
 !
<> 1149+
     
 !
<>1157 -                error("bad error");
 1158 -        cp = svinp();
 1159 -        if (flslvl)
 1160 -                stringbuf = cp;
 1161 -        else
 1162 -                error("%s", cp);
  1163+                error("bad #error");
  1164+        cp = savln();
  1165+        error("#error %s", cp);
     
 !
<_1175 -                error("bad warning");
 1176 -
 1177 -        /* svinp() add an unwanted \n */
 1178 -        cp = stringbuf;
 1179 -        while ((c = inch()) && c != '\n')
 1180 -                savch(c);
 1181 -        savch(0);
 1182 -
 1183 -        if (flslvl)
 1184 -                stringbuf = cp;
 1185 -        else
 1186 -                warning("#warning %s", cp);
 1187 -
 1188 -        unch('\n');
  1178+                error("bad #warning");
  1179+        cp = savln();
  1180+        warning("#warning %s", cp);
  1181+        stringbuf = cp;
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-28 06:13 +0100