for (int i = 0; i <= level; i++)
printf (" ");
+ match_byte (0);
if (match_byte (3))
{
get_string();
match_byte (0);
match_byte (1);
}
- else
+ else if (match_byte (0x31))
{
int subn;
int total_subs = 1;
- match_byte (0);
- match_byte_assert (0x31);
match_u32_assert (0);
match_u32_assert (0);
subn = get_u32 ();
total_subs *= n_subst;
}
+ for (int i = 0; i < total_subs; i++)
+ {
+ putc ('\n', stdout);
+ dump_value (level + 1);
+ }
+ }
+ else
+ {
+ int total_subs = 1;
+
+ match_byte_assert (0x58);
+ printf ("\"%s\" with substitutions:", get_string());
+ for (;;)
+ {
+ int n_subst = get_u32();
+ if (!n_subst)
+ break;
+ printf (" %d", n_subst);
+ total_subs *= n_subst;
+ }
+
for (int i = 0; i < total_subs; i++)
{
putc ('\n', stdout);