Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.79
 
1.80
 
MAIN:plunky:20121011101742
 
token.c
_>11311131                 error("If-less elif");
 11321132 }
 11331133 
<> 1134+/* save line into stringbuf */
11341135 static usch *
<>1135 -svinp(void)
  1136+savln(void)
11361137 {
 11371138         int c;
 11381139         usch *cp = stringbuf;
 11391140 
<>1140 -        while ((c = inch()) && c != '\n')
  1141+        while ((c = inch()) != 0) {
  1142+                if (c == '\n') {
  1143+                        unch(c);
  1144+                        break;
  1145+                }
11411146                 savch(c);
<>1142 -        savch('\n');
  1147+        }
11431148         savch(0);
<> 1149+
11441150         return cp;
 11451151 }
 11461152 
     
 !
11541160                 return;
 11551161         c = sloscan();
 11561162         if (c != WSPACE && c != '\n')
<>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);
11631166 }
 11641167 
 11651168 static void
     
 !
11721175                 return;
 11731176         c = sloscan();
 11741177         if (c != WSPACE && c != '\n')
<>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;
<_11891182 }
 11901183 
 11911184 static void
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-10-30 13:59 +0100