diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-15 02:48:40 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-15 02:48:40 +0300 |
commit | e149eb882355f427d43928324145c971a0562c5e (patch) | |
tree | 7be3df2eccac972fda1d0f48232efe107e2b8d7c | |
parent | 1457aab67141409f57d25c06f86e227d92808da3 (diff) | |
download | egawk-e149eb882355f427d43928324145c971a0562c5e.tar.gz egawk-e149eb882355f427d43928324145c971a0562c5e.tar.bz2 egawk-e149eb882355f427d43928324145c971a0562c5e.zip |
Additional work.
-rw-r--r-- | awkgram.c | 3 | ||||
-rw-r--r-- | awkgram.y | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -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); } @@ -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); } |