]> granicus.if.org Git - graphviz/commitdiff
Fix the token trace function to provide info for CONSTANTs as well as IDs.
authorEmden R. Gansner <erg@gentoo.local>
Sat, 13 Jun 2015 21:12:49 +0000 (17:12 -0400)
committerEmden R. Gansner <erg@gentoo.local>
Sat, 13 Jun 2015 21:12:49 +0000 (17:12 -0400)
lib/expr/extoken.c

index b514a6d0e27d91c49880318732c1eda08e10f65c..8b1bdfcc616e0f7426b11abc8bc135ac12a555e9 100644 (file)
@@ -86,6 +86,10 @@ trace(Expr_t* ex, int lev, char* op, int c)
                s = " GE ";
                t = ">=";
                break;
+       case CONSTANT:
+               s = " CONSTANT ";
+               t = exlval.id->name;
+               break;
        case ID:
                s = " ID ";
                t = exlval.id->name;