From 4894248d0d28403f04b474f47eca308a96b66ce7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 6 Nov 2014 21:11:08 -0800 Subject: [PATCH] Make dump_title_value() still a little closer to dump_value(). --- dump.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dump.c b/dump.c index 57bc9b4489..d9b92a4bb7 100644 --- a/dump.c +++ b/dump.c @@ -319,6 +319,7 @@ dump_value(int level) printf("variable %d has %d values:\n", i, y); for (int j = 0; j < y; j++) { + match_byte(0); if (match_byte(3)) { char *a = get_string(); @@ -328,14 +329,14 @@ dump_value(int level) for (int k = 0; k <= level + 1; k++) printf (" "); printf ("\"%s\", \"%s\", \"%s\"", a, b, c); - match_byte(0); - match_byte(0); - match_byte(0); - match_byte(0); - match_byte(0); } else dump_value (level+1); + + match_byte(0); + match_byte(0); + match_byte(0); + match_byte(0); putchar('\n'); } } -- 2.30.2