Commit 3cab4133 by Neil Booth Committed by Neil Booth

* cppmain.c: Update print.lineno with -P.

From-SVN: r38359
parent 9b4ea1a8
2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk> 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmain.c: Update print.lineno with -P.
2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
* c-lex.c: s/change_file/file_change. * c-lex.c: s/change_file/file_change.
* cpplib.h: Similarly. * cpplib.h: Similarly.
* cppmain.c: Similarly. * cppmain.c: Similarly.
......
...@@ -284,7 +284,10 @@ maybe_print_line (line) ...@@ -284,7 +284,10 @@ maybe_print_line (line)
} }
if (print.no_line_dirs) if (print.no_line_dirs)
{
print.lineno = line;
return; return;
}
/* print.lineno is zero if this is the first token of the file. We /* print.lineno is zero if this is the first token of the file. We
handle this specially, so that a first line of "# 1 "foo.c" in handle this specially, so that a first line of "# 1 "foo.c" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment