diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-10 20:20:29 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-10-10 20:20:29 +0300 |
commit | b58ed880ff03d08d8f5e214344addbbcf39749c2 (patch) | |
tree | bb736b03b61198fceeb58a470e5787ce773e2afe | |
parent | 764fda37790896df62e79a24df19b9cdf5ecc27a (diff) | |
download | egawk-b58ed880ff03d08d8f5e214344addbbcf39749c2.tar.gz egawk-b58ed880ff03d08d8f5e214344addbbcf39749c2.tar.bz2 egawk-b58ed880ff03d08d8f5e214344addbbcf39749c2.zip |
Fix Op_comment in debug.c:print_instruction.
-rwxr-xr-x | ChangeLog | 5 | ||||
-rw-r--r-- | debug.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +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-01 Nelson H.F. Beebe <beebe@math.utah.edu> * custom.h (__builtin_expect): Define for non-GNU compilers. @@ -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; |