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

From-SVN: r38359
This commit is contained in:
Neil Booth 2000-12-18 19:31:54 +00:00 committed by Neil Booth
parent 9b4ea1a8a3
commit 3cab41338d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -284,7 +284,10 @@ maybe_print_line (line)
}
if (print.no_line_dirs)
return;
{
print.lineno = line;
return;
}
/* 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