aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-08-02 17:42:03 -0400
committerArnold D. Robbins <arnold@skeeve.com>2013-08-14 00:00:19 +0300
commit1457aab67141409f57d25c06f86e227d92808da3 (patch)
treee7f2fac5c50829e9593a95847679b301c856c24e
parentafc5c481f97b85b803b9b973d52684deceb715d0 (diff)
downloadegawk-1457aab67141409f57d25c06f86e227d92808da3.tar.gz
egawk-1457aab67141409f57d25c06f86e227d92808da3.tar.bz2
egawk-1457aab67141409f57d25c06f86e227d92808da3.zip
Further attempt on comments. Not so good.
-rw-r--r--ChangeLog5
-rw-r--r--awkgram.c6
-rw-r--r--awkgram.y6
3 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e53b21c5..d949d612 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-02 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y (append_rule): Add attempt to insert any comment
+ before a rule. Commented out at the moment.
+
2013-07-30 Arnold D. Robbins <arnold@skeeve.com>
* awk.h (enum opcodeval): Add Op_comment.
diff --git a/awkgram.c b/awkgram.c
index d087b140..1ca90845 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -7601,9 +7601,13 @@ append_rule(INSTRUCTION *pattern, INSTRUCTION *action)
action),
tp);
}
-
}
+// if (comment != NULL) {
+// ip = list_prepend(ip, comment);
+// comment = NULL;
+// }
+
list_append(rule_list, rp + 1);
if (rule_block[rule] == NULL)
diff --git a/awkgram.y b/awkgram.y
index 68a328ea..f6013779 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -5053,9 +5053,13 @@ append_rule(INSTRUCTION *pattern, INSTRUCTION *action)
action),
tp);
}
-
}
+// if (comment != NULL) {
+// ip = list_prepend(ip, comment);
+// comment = NULL;
+// }
+
list_append(rule_list, rp + 1);
if (rule_block[rule] == NULL)