]> thyrsus.com Git - cupl.git/commitdiff
Better goto reporting.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 3 Nov 1994 22:26:21 +0000 (22:26 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 3 Nov 1994 22:26:21 +0000 (22:26 +0000)
interpret.c

index dc706e92e1771960f3b8f83fcdf07e2cf472f08c..48c80cc38c12e8c1639dda4aa60f2648c196d507 100644 (file)
@@ -68,7 +68,8 @@ static void prettyprint(node *tree, int indent)
     else if (tree->type == STRING)
        (void) printf("STRING: '%s'\n", tree->u.string);
     else if (tree->type == STATEMENT && indent > 0)
-       (void) printf("-> STATEMENT %d\n", tree->number);
+       (void) printf("-> %s (STATEMENT %d)\n", 
+                     tree->car->car->u.string, tree->number);
     else
     {
        if (tree->type == STATEMENT)