From 5fd9a363ce94db60416e8cefad462c0b1d0f2bb7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 6 Nov 2014 21:55:16 -0800 Subject: [PATCH] Make type-03 cases more uniform. --- dump.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dump.c b/dump.c index 5534255cd5..b6fbaf8d4c 100644 --- a/dump.c +++ b/dump.c @@ -224,8 +224,8 @@ dump_value(int level) printf("strings \"%s\", \"%s\" and \"%s\"", s1, s2, s3); else printf("string \"%s\" and \"%s\"", s1, s2); - match_byte (0); - match_byte (1); + if (!match_byte (0)) + match_byte_assert(1); match_byte (1); } else if (match_byte (5)) @@ -344,8 +344,8 @@ dump_dim_value(int level) dump_value_31(); get_string(); printf("string \"%s\"", get_string()); - match_byte (0); - match_byte (1); + if (!match_byte (0)) + match_byte_assert(1); } else if (match_byte (5)) { @@ -467,7 +467,8 @@ dump_data_value(void) dump_value_31(); get_string(); printf("string \"%s\"", get_string()); - match_byte (0); + if (!match_byte (0)) + match_byte_assert(1); } else if (match_byte (2)) { @@ -601,6 +602,8 @@ dump_title_value(int level) for (int k = 0; k <= level + 1; k++) printf (" "); printf ("\"%s\", \"%s\", \"%s\"", a, b, c); + if (!match_byte(0)) + match_byte_assert(1); } else dump_title_value (level+1); -- 2.30.2