diff options
-rwxr-xr-x | ChangeLog | 5 | ||||
-rw-r--r-- | debug.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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'. @@ -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; |