aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-04 12:12:21 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-04 12:12:21 +0800
commite194e841885b83da5cf1df123da7c414acc493ee (patch)
treeda8b46b8beccb5015ca62c1374b5e2b2a8caef58 /e-util/e-sexp.c
parent7f2e067cd8f12104d06c5270a8eccb18b9e19fb7 (diff)
downloadgsoc2013-evolution-e194e841885b83da5cf1df123da7c414acc493ee.tar.gz
gsoc2013-evolution-e194e841885b83da5cf1df123da7c414acc493ee.tar.zst
gsoc2013-evolution-e194e841885b83da5cf1df123da7c414acc493ee.zip
Added some debug stuff.
2004-03-04 Not Zed <NotZed@Ximian.com> * e-sexp.c: Added some debug stuff. svn path=/trunk/; revision=24956
Diffstat (limited to 'e-util/e-sexp.c')
-rw-r--r--e-util/e-sexp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c
index a7619c59f2..724859f388 100644
--- a/e-util/e-sexp.c
+++ b/e-util/e-sexp.c
@@ -903,7 +903,7 @@ parse_value(ESExp *f)
p(printf("got brace, its a list!\n"));
return parse_list(f, TRUE);
case G_TOKEN_STRING:
- p(printf("got string\n"));
+ p(printf("got string '%s'\n", g_scanner_cur_value(gs).v_string));
t = parse_term_new(f, ESEXP_TERM_STRING);
t->value.string = g_strdup(g_scanner_cur_value(gs).v_string);
break;
@@ -922,7 +922,7 @@ parse_value(ESExp *f)
t->value.number = g_scanner_cur_value(gs).v_int;
if (negative)
t->value.number = -t->value.number;
- p(printf("got int\n"));
+ p(printf("got int %d\n", t->value.number));
break;
case '#': {
char *str;
@@ -947,6 +947,7 @@ parse_value(ESExp *f)
break; }
case G_TOKEN_SYMBOL:
s = g_scanner_cur_value(gs).v_symbol;
+ p(printf("got symbol '%s'\n", s->name));
switch (s->type) {
case ESEXP_TERM_FUNC:
case ESEXP_TERM_IFUNC:
@@ -965,6 +966,7 @@ parse_value(ESExp *f)
}
break;
case G_TOKEN_IDENTIFIER:
+ p(printf("got unknown identifider '%s'\n", g_scanner_cur_value(gs).v_identifier));
e_sexp_fatal_error(f, "Unknown identifier: %s", g_scanner_cur_value(gs).v_identifier);
break;
default: