split out act_header

This commit is contained in:
Sven M. Hallberg 2013-01-15 01:24:47 +01:00
parent 2db9cd23c8
commit 21df49cc15
3 changed files with 57 additions and 40 deletions

View file

@ -69,7 +69,11 @@ void h_pprint(FILE* stream, const HParsedToken* tok, int indent, int delta) {
fprintf(stream, "%*sUSER\n", indent, "");
break;
default:
assert_message(0, "Should not reach here.");
if(tok->token_type > TT_USER) {
fprintf(stream, "%*sUSER %d\n", indent, "", tok->token_type-TT_USER);
} else {
assert_message(0, "Should not reach here.");
}
}
}