* cpplib.c (cpp_push_buffer): Give stdin buffers the name <stdin>.
From-SVN: r41166
This commit is contained in:
parent
2d9fea5d4b
commit
62fce11f45
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user