aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-08-15 02:48:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-08-15 02:48:40 +0300
commite149eb882355f427d43928324145c971a0562c5e (patch)
tree7be3df2eccac972fda1d0f48232efe107e2b8d7c /awkgram.c
parent1457aab67141409f57d25c06f86e227d92808da3 (diff)
downloadegawk-e149eb882355f427d43928324145c971a0562c5e.tar.gz
egawk-e149eb882355f427d43928324145c971a0562c5e.tar.bz2
egawk-e149eb882355f427d43928324145c971a0562c5e.zip
Additional work.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c3
1 files changed, 3 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);
}