Add debug flag to command line interpretation.

This commit is contained in:
Olaf Seibert
2015-05-10 17:39:38 +02:00
parent a6ee20cdc1
commit 2bc55f39f3
3 changed files with 11 additions and 4 deletions

View File

@@ -18,13 +18,18 @@
to go away. Hopefully the compiler will realize when it's dead, and
eliminate it. */
static void print_tree(
void print_tree(
FILE *printfile,
EX_TREE *tp,
int depth)
{
SYMBOL *sym;
if (tp == NULL) {
fprintf(printfile, "(null)");
return;
}
switch (tp->type) {
case EX_LIT:
fprintf(printfile, "%o", tp->data.lit & 0177777);