diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-10-24 09:08:26 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-10-24 09:08:26 +0000 |
| commit | ccb035ab284dcce968d948a5f04eef96c9cc541d (patch) | |
| tree | da95a7e83c75ea5f9e28d5c2e66532ef9b4390f3 /error.c | |
| parent | 0a4281ca5b029a961fbef0856e27dee2a23c8cdb (diff) | |
| download | halibut-ccb035ab284dcce968d948a5f04eef96c9cc541d.zip halibut-ccb035ab284dcce968d948a5f04eef96c9cc541d.tar.gz halibut-ccb035ab284dcce968d948a5f04eef96c9cc541d.tar.bz2 halibut-ccb035ab284dcce968d948a5f04eef96c9cc541d.tar.xz | |
Enable Halibut to read a .but file from standard input, by supplying
the special filename '-'.
[originally from svn r8728]
Diffstat (limited to 'error.c')
| -rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -393,7 +393,7 @@ static void do_error(int code, va_list ap) { if (flags & PREFIX) fputs("halibut: ", stderr); if (flags & FILEPOS) { - fprintf(stderr, "%s:", fpos.filename); + fprintf(stderr, "%s:", fpos.filename ? fpos.filename : "<standard input>"); if (fpos.line > 0) fprintf(stderr, "%d:", fpos.line); if (fpos.col > 0) |