changeset 3950:57ff64831bec

Automated merge with ssh://hg.atheme.org//hg/audacious
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 16 Nov 2007 05:32:56 +0200
parents 57dd6ddaa8af (diff) eb20411bb9e1 (current diff)
children de76dbec8e1e
files po/ChangeLog src/audacious/memorypool.c src/audacious/memorypool.h
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/tuple_formatter.c	Thu Nov 15 21:25:25 2007 +0100
+++ b/src/audacious/tuple_formatter.c	Fri Nov 16 05:32:56 2007 +0200
@@ -529,6 +529,7 @@
 #ifdef TUPLE_USE_COMPILER
     static TupleEvalContext *last_ctx = NULL;
     static TupleEvalNode *last_ev = NULL;
+    gchar *result = NULL;
 #endif
 
     if (initialized == FALSE)
@@ -557,6 +558,12 @@
         last_ctx = tuple_evalctx_new();
         last_string = g_strdup(string);
         last_ev = tuple_formatter_compile(last_ctx, last_string);
+        if (last_ctx->iserror) {
+            fprintf(stderr, "[TuplezCC]: %s", last_ctx->errmsg);
+        }
+        if (!last_ev) {
+            fprintf(stderr, "[TuplezCC]: Compilation failed!\n");
+        }
     }
 
 #ifdef TUPLE_COMPILER_DEBUG
@@ -568,7 +575,11 @@
 #endif
 
     tuple_evalctx_reset(last_ctx);
-    return tuple_formatter_eval(last_ctx, last_ev, tuple);
+    result = tuple_formatter_eval(last_ctx, last_ev, tuple);
+    if (last_ctx->iserror) {
+        fprintf(stderr, "[TuplezEV]: %s", last_ctx->errmsg);
+    }
+    return result;
 #else
     return tuple_formatter_process_construct(tuple, string);
 #endif