From: eck Date: Thu, 29 Mar 1990 10:45:15 +0000 (+0000) Subject: bug fix for #line directives X-Git-Tag: release-5-5~1762 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=99e74b23413537e3f6f4f5efb127475c6e69365e;p=ack.git bug fix for #line directives --- diff --git a/lang/cem/cpp.ansi/domacro.c b/lang/cem/cpp.ansi/domacro.c index 9cd92f8ca..89c054e4c 100644 --- a/lang/cem/cpp.ansi/domacro.c +++ b/lang/cem/cpp.ansi/domacro.c @@ -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;