bug fix for #line directives
authoreck <none@none>
Thu, 29 Mar 1990 10:45:15 +0000 (10:45 +0000)
committereck <none@none>
Thu, 29 Mar 1990 10:45:15 +0000 (10:45 +0000)
lang/cem/cpp.ansi/domacro.c

index 9cd92f8..89c054e 100644 (file)
@@ -752,7 +752,7 @@ do_line(l)
        struct token tk;
        int t = GetToken(&tk);
 
-       SkipToNewLine();
+       if (t != EOF) SkipToNewLine();
        LineNumber = l;         /* the number of the next input line */
        if (t == STRING)        /* is there a filespecifier? */
                FileName = tk.tk_str;