summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index 3af602a..153e4b8 100644
--- a/misc.c
+++ b/misc.c
@@ -476,11 +476,11 @@ void line_directive_out (output_file, do_infile)
if (!gen_line_dirs)
return;
- if ((do_infile && !infilename) || (!do_infile && !outfilename))
- /* don't know the filename to use, skip */
- return;
+ s1 = do_infile ? infilename : "M4_YY_OUTFILE_NAME";
- s1 = do_infile ? infilename : outfilename;
+ if (do_infile && !s1)
+ s1 = "<stdin>";
+
s2 = filename;
s3 = &filename[sizeof (filename) - 2];