Commit 62fce11f by Neil Booth Committed by Neil Booth

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

From-SVN: r41166
parent 2d9fea5d
2001-04-06 Neil Booth <neil@daikokuya.demon.co.uk> 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. * configure.in: Add check for lstat.
* configure, config.in: Regenerate. * configure, config.in: Regenerate.
* cppinit.c (append_include_chain): Make empty path ".". * cppinit.c (append_include_chain): Make empty path ".".
......
...@@ -1812,7 +1812,10 @@ cpp_push_buffer (pfile, buffer, len, type, filename) ...@@ -1812,7 +1812,10 @@ cpp_push_buffer (pfile, buffer, len, type, filename)
pfile->lexer_pos.output_line = 1; 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->type = type;
new->prev = pfile->buffer; new->prev = pfile->buffer;
new->pfile = pfile; new->pfile = pfile;
......
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