summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--profile.c2
-rw-r--r--test/ChangeLog5
-rw-r--r--test/profile2.ok2
-rw-r--r--test/profile3.ok2
-rw-r--r--test/profile4.ok2
-rw-r--r--test/profile5.ok4
7 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 71ef7105..66e36060 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,11 @@
Undocumented and subject to being rescinded at any time in the future.
* NEWS: Mention to look at configure --help.
+ Unrelated:
+
+ * profile.c (pprint): Use "rule(s)" instead of "block(s)" in the
+ header.
+
2014-09-23 Arnold D. Robbins <arnold@skeeve.com>
* awkgram.y (yylex): Don't check for junk characters inside
diff --git a/profile.c b/profile.c
index d07bea4a..b0fbbedb 100644
--- a/profile.c
+++ b/profile.c
@@ -190,7 +190,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, bool in_for_header)
if (rule != Rule) {
if (! rule_count[rule]++)
- fprintf(prof_fp, _("\t# %s block(s)\n\n"), ruletab[rule]);
+ fprintf(prof_fp, _("\t# %s rules(s)\n\n"), ruletab[rule]);
fprintf(prof_fp, "\t%s {\n", ruletab[rule]);
ip = (pc + 1)->firsti;
} else {
diff --git a/test/ChangeLog b/test/ChangeLog
index 6f073d72..80b69580 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * profile2.ok, profile3.ok, profile4.ok, profile5.ok:
+ Adjusted after minor code change.
+
2014-09-18 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.awk: Change to build directory instead of "..".
diff --git a/test/profile2.ok b/test/profile2.ok
index 50c7e190..66b01402 100644
--- a/test/profile2.ok
+++ b/test/profile2.ok
@@ -1,4 +1,4 @@
- # BEGIN block(s)
+ # BEGIN rules(s)
BEGIN {
1 if (sortcmd == "") {
diff --git a/test/profile3.ok b/test/profile3.ok
index 50172c48..5a9eeea9 100644
--- a/test/profile3.ok
+++ b/test/profile3.ok
@@ -1,4 +1,4 @@
- # BEGIN block(s)
+ # BEGIN rules(s)
BEGIN {
1 the_func = "p"
diff --git a/test/profile4.ok b/test/profile4.ok
index 8ff4470f..df52aa1a 100644
--- a/test/profile4.ok
+++ b/test/profile4.ok
@@ -1,4 +1,4 @@
- # BEGIN block(s)
+ # BEGIN rules(s)
BEGIN {
a = "foo" (c = "bar")
diff --git a/test/profile5.ok b/test/profile5.ok
index cc83dc06..c688fbb8 100644
--- a/test/profile5.ok
+++ b/test/profile5.ok
@@ -1,4 +1,4 @@
- # BEGIN block(s)
+ # BEGIN rules(s)
BEGIN {
_addlib("_BASE")
@@ -263,7 +263,7 @@
_END()
}
- # END block(s)
+ # END rules(s)
END {
_EXIT()