diff src/audacious/tuple_compiler.h @ 3954:7afbcd87cd65

The compiler should now correctly recognize integer constants, thanks to Yuri K. Schlesner for spotting this really stupid bug .. which I should've seen much earlier.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 16 Nov 2007 09:14:40 +0200
parents 4f6c614aee5d
children ce3f2d2455cf
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.h	Fri Nov 16 05:36:42 2007 +0200
+++ b/src/audacious/tuple_compiler.h	Fri Nov 16 09:14:40 2007 +0200
@@ -60,7 +60,9 @@
     gchar *name;
     gboolean istemp;		/* Scope of variable - TRUE = temporary */
     gint type;			/* Type of variable, see VAR_* */
-    gchar *defval;		/* Defined value ${=foo,bar} */
+    gchar *defvals;		/* Defined value ${=foo,bar} */
+    gint defvali;
+    TupleValueType ctype;	/* Type of constant/def value */
 
     gint fieldidx;		/* if >= 0: Index # of "pre-defined" Tuple fields */
     TupleValue *fieldref;	/* Cached tuple field ref */
@@ -98,7 +100,7 @@
 TupleEvalContext * tuple_evalctx_new(void);
 void tuple_evalctx_reset(TupleEvalContext *ctx);
 void tuple_evalctx_free(TupleEvalContext *ctx);
-gint tuple_evalctx_add_var(TupleEvalContext *ctx, const gchar *name, const gboolean istemp, const gint type);
+gint tuple_evalctx_add_var(TupleEvalContext *ctx, const gchar *name, const gboolean istemp, const gint type, const TupleValueType ctype);
 
 void tuple_evalnode_free(TupleEvalNode *expr);