characters were treated as unsigneds, lines with quotes in them
where not treated correctly
This commit is contained in:
parent
026a3b5011
commit
a03073fc67
@ -207,12 +207,11 @@ go_on:
|
|||||||
if (c == '\\') {
|
if (c == '\\') {
|
||||||
LoadChar(c);
|
LoadChar(c);
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
LoadChar(c);
|
|
||||||
LineNumber++;
|
LineNumber++;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
c = quoted(c);
|
c = quoted(c);
|
||||||
}
|
}
|
||||||
|
if (c >= 128) c -= 256;
|
||||||
val = val*256 + c;
|
val = val*256 + c;
|
||||||
size++;
|
size++;
|
||||||
LoadChar(c);
|
LoadChar(c);
|
||||||
|
|||||||
@ -100,6 +100,7 @@ preprocess(fn)
|
|||||||
++LineNumber;
|
++LineNumber;
|
||||||
++lineno;
|
++lineno;
|
||||||
echo(c);
|
echo(c);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else if (c == EOI) {
|
else if (c == EOI) {
|
||||||
flush(op - _obuf);
|
flush(op - _obuf);
|
||||||
@ -143,8 +144,6 @@ preprocess(fn)
|
|||||||
echo(c);
|
echo(c);
|
||||||
LoadChar(c);
|
LoadChar(c);
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
++LineNumber;
|
|
||||||
lineno++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (c == EOI) {
|
else if (c == EOI) {
|
||||||
@ -162,6 +161,8 @@ preprocess(fn)
|
|||||||
}
|
}
|
||||||
while (c != stopc);
|
while (c != stopc);
|
||||||
echo(c);
|
echo(c);
|
||||||
|
if (c == '\n')
|
||||||
|
break; /* Don't eat # */
|
||||||
LoadChar(c);
|
LoadChar(c);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user