diff options
-rw-r--r-- | build/expression.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/expression.c b/build/expression.c index 3452486ce..72172902f 100644 --- a/build/expression.c +++ b/build/expression.c @@ -26,11 +26,16 @@ #define DEBUG(x) #endif +typedef enum { + VALUE_TYPE_INTEGER, + VALUE_TYPE_STRING, +} valueType; + /** * Encapsulation of a "value" */ typedef struct _value { - enum { VALUE_TYPE_INTEGER, VALUE_TYPE_STRING } type; + valueType type; union { char *s; int i; |