aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog5
-rw-r--r--debug.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5edad055..6d3ae784 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2018-10-10 Arnold D. Robbins <arnold@skeeve.com>
+ * debug.c (print_instruction): For Op_comment, use print_func
+ instead of fprintf to print the comment type.
+
+2018-10-10 Arnold D. Robbins <arnold@skeeve.com>
+
* awkgram.y (Grammar): For statement -> { statements }, fix comment
handling. For `if' statement add comment support.
* profile.c (pp_print): Print comments associated with `if' and `else'.
diff --git a/debug.c b/debug.c
index 1ca93cc4..b24a8db6 100644
--- a/debug.c
+++ b/debug.c
@@ -4032,7 +4032,7 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump)
case Op_comment:
print_memory(pc->memory, func, print_func, fp);
- fprintf(fp, " [comment_type = %s]\n",
+ print_func(fp, " [comment_type = %s]\n",
pc->memory->comment_type == EOL_COMMENT ?
"EOL" : "FULL");
break;