aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awkgram.c3
-rw-r--r--awkgram.y3
2 files changed, 6 insertions, 0 deletions
diff --git a/awkgram.c b/awkgram.c
index 1ca90845..bee20730 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5456,6 +5456,8 @@ allow_newline(void)
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
+
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}
// } else {
@@ -5684,6 +5686,7 @@ retry:
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}
diff --git a/awkgram.y b/awkgram.y
index f6013779..a1bbc775 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2908,6 +2908,8 @@ allow_newline(void)
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
+
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}
// } else {
@@ -3136,6 +3138,7 @@ retry:
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}