changeset 3808:b5d550755bad trunk

Automated merge with file:/home/ccr/audacious/core
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 14 Oct 2007 05:54:54 +0300
parents 62ff6b6f9ce0 (diff) 9c4633afc0a8 (current diff)
children 17fb5e598cfc
files .depend src/audacious/tuple_compiler.c
diffstat 2 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.c	Sat Oct 13 20:46:25 2007 -0500
+++ b/src/audacious/tuple_compiler.c	Sun Oct 14 05:54:54 2007 +0300
@@ -583,10 +583,9 @@
       }
       break;
     default:
-      tmps = NULL;
-      tmpi = 0;
+      break;
   }
-  
+
   return type;
 }
 
@@ -609,7 +608,6 @@
   
   while (curr) {
     const gchar *str = NULL;
-
     switch (curr->opcode) {
       case OP_RAW:
         str = curr->text;
@@ -644,7 +642,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;
         }
@@ -656,7 +654,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);
         
@@ -753,8 +751,6 @@
   assert(ctx != NULL);
   assert(tuple != NULL);
   
-  if (!expr) return NULL;
-  
   tuple_formatter_eval_do(ctx, expr, tuple, &res, &resmax, &reslen);
   
   return res;
--- a/src/audacious/tuple_compiler.h	Sat Oct 13 20:46:25 2007 -0500
+++ b/src/audacious/tuple_compiler.h	Sun Oct 14 05:54:54 2007 +0300
@@ -25,10 +25,10 @@
 #include "tuple.h"
 
 
-#define MAX_VAR		(4)
+#define MAX_VAR		(2)
 #define MAX_STR		(256)
 #define MIN_ALLOC_NODES (8)
-#define MIN_ALLOC_BUF	(64)
+#define MIN_ALLOC_BUF	(128)
 
 
 enum {