# HG changeset patch # User Matti Hamalainen # Date 1189740452 -10800 # Node ID 4f54b90fc2edb51ff8222e5d20f5f7be52450f86 # Parent 23bf72b8c95c53c750ea47f305efaccffff13d5f Fix the compiler to work again. diff -r 23bf72b8c95c -r 4f54b90fc2ed src/audacious/tuple_compiler.c --- a/src/audacious/tuple_compiler.c Wed Sep 12 23:19:46 2007 +0300 +++ b/src/audacious/tuple_compiler.c Fri Sep 14 06:27:32 2007 +0300 @@ -582,10 +582,9 @@ } break; default: - tmps = NULL; - tmpi = 0; + break; } - + return type; } @@ -608,7 +607,6 @@ while (curr) { const gchar *str = NULL; - switch (curr->opcode) { case OP_RAW: str = curr->text; @@ -643,7 +641,7 @@ break; case OP_EXISTS: - if (mowgli_dictionary_retrieve(tuple->dict, ctx->variables[curr->var[0]]->name)) { + if (tf_get_fieldref(ctx->variables[curr->var[0]], tuple)) { if (!tuple_formatter_eval_do(ctx, curr->children, tuple, res, resmax, reslen)) return FALSE; } @@ -655,7 +653,7 @@ case OP_GT: case OP_GTEQ: var0 = ctx->variables[curr->var[0]]; var1 = ctx->variables[curr->var[1]]; - + type0 = tf_get_var(&tmps0, &tmpi0, var0, tuple); type1 = tf_get_var(&tmps1, &tmpi1, var1, tuple); @@ -752,8 +750,6 @@ assert(ctx != NULL); assert(tuple != NULL); - if (!expr) return NULL; - tuple_formatter_eval_do(ctx, expr, tuple, &res, &resmax, &reslen); return res;