From eab9c4e587e33ed5e506c5fdc9e3094987220074 Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 17 Sep 2012 21:43:10 +0100 Subject: [PATCH] Fix debugging code in execute.c so that debug jq compiles again. --- c/execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/execute.c b/c/execute.c index 8426d3ca..eba2f1df 100644 --- a/c/execute.c +++ b/c/execute.c @@ -170,7 +170,7 @@ jv jq_next() { param = forkable_stack_peek_next(&data_stk, param); } if (!param) break; - jv_dump(jv_copy(param->sv.value)); + jv_dump(jv_copy(param->sv.value), 0); printf("<%d>", jv_get_refcnt(param->sv.value)); } @@ -246,7 +246,7 @@ jv jq_next() { jv* var = frame_local_var(fp, v); #if JQ_DEBUG printf("V%d = ", v); - jv_dump(jv_copy(*var)); + jv_dump(jv_copy(*var), 0); printf("\n"); #endif stack_push(stackval_replace(stack_pop(), jv_copy(*var))); @@ -261,7 +261,7 @@ jv jq_next() { stackval val = stack_pop(); #if JQ_DEBUG printf("V%d = ", v); - jv_dump(jv_copy(val.value)); + jv_dump(jv_copy(val.value), 0); printf("\n"); #endif jv_free(*var);