From cd6b37514fd3eea9cc26a76514d487328a11a8ba Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 17 Mar 2016 22:01:26 +0200 Subject: Improve instruction dump of comments. --- ChangeLog | 5 +++++ debug.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05b3bfad..52965d59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-17 Arnold D. Robbins + + * debug.c (print_instruction): For Op_comment, improve notation as + to whether it's a full comment or an end of line comment. + 2016-03-14 Arnold D. Robbins * io.c (socketopen): For SOCK_DGRAM, set read_len to sizeof diff --git a/debug.c b/debug.c index 388b62bc..f5eaa779 100644 --- a/debug.c +++ b/debug.c @@ -4035,9 +4035,9 @@ 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, " {%s}\n", + fprintf(fp, " [comment_type = %s]\n", pc->memory->comment_type == EOL_COMMENT ? - "eol" : "full"); + "EOL" : "FULL"); break; case Op_push_i: -- cgit v1.2.3