diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 22:25:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-27 22:25:57 +0300 |
commit | 66479f2ca1fbbf3b96cd2e1b15c0119b209df54a (patch) | |
tree | 3aa634f2e3db22bf988532e7b640cadb066a1de6 | |
parent | 6f66d82e5794022ec2873d1f3ccba8e1267ca9a3 (diff) | |
download | egawk-66479f2ca1fbbf3b96cd2e1b15c0119b209df54a.tar.gz egawk-66479f2ca1fbbf3b96cd2e1b15c0119b209df54a.tar.bz2 egawk-66479f2ca1fbbf3b96cd2e1b15c0119b209df54a.zip |
Minor improvement in profiling output.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | profile.c | 2 | ||||
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/profile2.ok | 2 | ||||
-rw-r--r-- | test/profile3.ok | 2 | ||||
-rw-r--r-- | test/profile4.ok | 2 | ||||
-rw-r--r-- | test/profile5.ok | 4 |
7 files changed, 16 insertions, 6 deletions
@@ -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 @@ -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() |