]> granicus.if.org Git - jq/commitdiff
Enable printing of stack val refcnts
authorNicolas Williams <nico@cryptonector.com>
Sat, 29 Nov 2014 01:35:29 +0000 (19:35 -0600)
committerNicolas Williams <nico@cryptonector.com>
Sat, 29 Nov 2014 01:35:29 +0000 (19:35 -0600)
execute.c

index acb42c5c5e0a20695c69f1c377300b1f31c392c1..89fd97287925535f1a668d0365b5b5a27923634c 100644 (file)
--- a/execute.c
+++ b/execute.c
@@ -302,7 +302,7 @@ jv jq_next(jq_state *jq) {
             param = *stack_block_next(&jq->stk, param);
           }
           if (!param) break;
-          jv_dump(jv_copy(*(jv*)stack_block(&jq->stk, param)), 0);
+          jv_dump(jv_copy(*(jv*)stack_block(&jq->stk, param)), JV_PRINT_REFCOUNT);
           //printf("<%d>", jv_get_refcnt(param->val));
           //printf(" -- ");
           //jv_dump(jv_copy(jq->path), 0);