diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-21 05:36:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-03-21 05:36:33 +0200 |
commit | 3e92d06bebd53eba773749351641e3eaed7c117f (patch) | |
tree | 73a25fc10c399656589daa3ab7f0f81c483139b7 /profile.c | |
parent | dd0cfe0cb3138755733c6578366cebc239e7017d (diff) | |
download | egawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.gz egawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.bz2 egawk-3e92d06bebd53eba773749351641e3eaed7c117f.zip |
Improve pretty-printing comment after if statement.
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -932,7 +932,8 @@ cleanup: if (pc->nexti->opcode == Op_no_op) { /* no following else */ indent(SPACEOVER); fprintf(prof_fp, "}"); - if (pc->nexti->nexti->opcode != Op_comment) + if (pc->nexti->nexti->opcode != Op_comment + || pc->nexti->nexti->memory->comment_type == FULL_COMMENT) fprintf(prof_fp, "\n"); /* else It will be printed at the top. */ |