diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-05 21:52:37 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-17 22:02:21 +0200 |
commit | fe455fb8d3372fb0ced65b10216c3c30971acb81 (patch) | |
tree | 74c2654763110264abcb8e951b540bb47b785795 /profile.c | |
parent | 4b33ad392a8ddf1cc480d29498af80f7da1db269 (diff) | |
download | egawk-fe455fb8d3372fb0ced65b10216c3c30971acb81.tar.gz egawk-fe455fb8d3372fb0ced65b10216c3c30971acb81.tar.bz2 egawk-fe455fb8d3372fb0ced65b10216c3c30971acb81.zip |
Improve end of line comments in if/else.
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -911,7 +911,7 @@ cleanup: ip1 = pc->branch_if; if (ip1->exec_count > 0) fprintf(prof_fp, " # %ld", ip1->exec_count); - end_line(pc); + ip1 = end_line(ip1); indent_in(); pprint(ip1->nexti, pc->branch_else, NO_PPRINT_FLAGS); indent_out(); @@ -947,7 +947,9 @@ cleanup: && pc->branch_end == pc->nexti->nexti->branch_else->lasti) { pprint(pc->nexti, pc->branch_end, IN_ELSE_IF); } else { - fprintf(prof_fp, "{\n"); + fprintf(prof_fp, "{"); + end_line(pc); + skip_comment = true; indent_in(); pprint(pc->nexti, pc->branch_end, NO_PPRINT_FLAGS); indent_out(); |