The input routine used to skip space. This "feature" has been removed
authorceriel <none@none>
Wed, 31 Oct 1984 15:26:09 +0000 (15:26 +0000)
committerceriel <none@none>
Wed, 31 Oct 1984 15:26:09 +0000 (15:26 +0000)
because it is also used to read strings, in which space is significant.

util/LLgen/src/tokens.g

index 3a91a4c..4f2f856 100644 (file)
@@ -232,14 +232,6 @@ input() {
                nostartline = 0;
                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;
        return c;
 }