The input routine used to skip space. This "feature" has been removed
because it is also used to read strings, in which space is significant.
This commit is contained in:
parent
a089216ae7
commit
f0445587cf
@ -232,14 +232,6 @@ input() {
|
|||||||
nostartline = 0;
|
nostartline = 0;
|
||||||
nonline = 1;
|
nonline = 1;
|
||||||
}
|
}
|
||||||
if (c == ' ' || c == '\t') { /*
|
|
||||||
* Deliver space, but only once
|
|
||||||
*/
|
|
||||||
do c = getc(f);
|
|
||||||
while (c == ' ' || c == '\t');
|
|
||||||
ungetc(c,f);
|
|
||||||
return ' ';
|
|
||||||
}
|
|
||||||
if (c == '\n') nonline = 0;
|
if (c == '\n') nonline = 0;
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user