for (int i = 0; i <= level; i++)
printf (" ");
- if (data[pos] == 3 || data[pos] == 5)
- dump_value__(level, true);
- else
- dump_value(level, true);
+ match_byte(0);
+ match_byte(0);
+ match_byte(0);
+ match_byte(0);
+ dump_value__(level, true);
}
static void
match_u32_assert(2);
if (!match_byte(0))
match_byte_assert(1);
- match_byte(0);
- match_byte(0);
- match_byte(0);
- match_byte(0);
get_u32();
match_byte(0);
match_byte(0);
- match_byte(0);
- match_byte(0);
n_categories = get_u32();
printf("%d nested categories\n", n_categories);
for (int i = 0; i < n_categories; i++)
match_byte(0);
match_byte(0);
match_byte(0);
- if (data[pos] == 1 || data[pos] == 2 || data[pos] == 3 || data[pos] == 4)
+ if (data[pos] <= 5)
dump_value__(0, false);
- else if (data[pos] == 5)
- dump_value (0, true);
else
dump_substs (dump_data_value, level + 1);
}
match_byte (0);
match_byte (0);
match_byte (0);
- if (data[pos] == 1 || data[pos] == 2 || data[pos] == 3 || data[pos] == 4)
- dump_value(level, true);
- else if (data[pos] == 5)
+ if (data[pos] <= 5)
dump_value__(level, true);
else
dump_substs(dump_title_value, level + 1);
match_byte (0);
match_byte (0);
match_byte (0);
- if (data[pos] == 2 || data[pos] == 4)
- dump_value(level, true);
- else if (data[pos] == 1 || data[pos] == 3 || data[pos] == 5)
+ if (data[pos] <= 5)
dump_value__(level, false);
else
dump_substs(dump_footnote_value, level + 1);
dump_dims ();
printf("\n\ndata:\n");
dump_data ();
- if (pos == n - 1)
- match_byte_assert (1);
+ match_byte (1);
if (pos != n)
{
fprintf (stderr, "%x / %x\n", pos, n);