From 19ecd045e33ad66f27d859034141ccf09c8032b9 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 14 Oct 2018 21:08:37 +0300 Subject: Improvements for comments in do...while and debug dump. --- profile.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 4cda2637..e4380280 100644 --- a/profile.c +++ b/profile.c @@ -843,9 +843,13 @@ cleanup: indent(SPACEOVER); t1 = pp_pop(); fprintf(prof_fp, "} %s (%s)", op2str(Op_K_while), t1->pp_str); + if (pc->comment) + fprintf(prof_fp, "\t%s", pc->comment->memory->stptr); + else { + end_line(pc->target_break); + skip_comment = true; + } pp_free(t1); - end_line(pc->target_break); - skip_comment = true; pc = pc->target_break; break; -- cgit v1.2.3