comparison src/audacious/tuple_compiler.c @ 3983:c4295265f61d

Ooooops, another stupid bug - accidentally ${(empty)?..} was compiled into OP_EXISTS ..
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Nov 2007 14:55:16 +0200
parents 7afbcd87cd65
children 10e7c823462d
comparison
equal deleted inserted replaced
3982:bd8de2a3cbea 3983:c4295265f61d
443 c += 7; 443 c += 7;
444 literal = FALSE; 444 literal = FALSE;
445 if (tc_get_item(ctx, &c, tmps1, MAX_STR, ':', &literal, "tag", item)) { 445 if (tc_get_item(ctx, &c, tmps1, MAX_STR, ':', &literal, "tag", item)) {
446 c++; 446 c++;
447 tmp = tuple_evalnode_new(); 447 tmp = tuple_evalnode_new();
448 tmp->opcode = OP_EXISTS; 448 tmp->opcode = OP_IS_EMPTY;
449 if ((tmp->var[0] = tc_get_variable(ctx, tmps1, VAR_FIELD)) < 0) { 449 if ((tmp->var[0] = tc_get_variable(ctx, tmps1, VAR_FIELD)) < 0) {
450 tuple_error(ctx, "Invalid variable '%s' in '%s'.\n", tmps1, expr); 450 tuple_error(ctx, "Invalid variable '%s' in '%s'.\n", tmps1, expr);
451 goto ret_error; 451 goto ret_error;
452 } 452 }
453 tmp->children = tuple_compiler_pass1(level, ctx, &c); 453 tmp->children = tuple_compiler_pass1(level, ctx, &c);