* cpplib.c (cpp_push_buffer): Give stdin buffers the name <stdin>.

From-SVN: r41166
This commit is contained in:
Neil Booth 2001-04-06 21:43:53 +00:00 committed by Neil Booth
parent 2d9fea5d4b
commit 62fce11f45
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-04-06 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplib.c (cpp_push_buffer): Give stdin buffers the name <stdin>.
2001-04-06 Neil Booth <neil@daikokuya.demon.co.uk>
* configure.in: Add check for lstat.

View File

@ -1812,7 +1812,10 @@ cpp_push_buffer (pfile, buffer, len, type, filename)
pfile->lexer_pos.output_line = 1;
}
new->nominal_fname = filename;
if (*filename == '\0')
new->nominal_fname = _("<stdin>");
else
new->nominal_fname = filename;
new->type = type;
new->prev = pfile->buffer;
new->pfile = pfile;