diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-09-14 19:30:39 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-09-14 19:30:39 +0100 |
commit | dae2422fd18487c89dd79dc54eb4345861ab7bdc (patch) | |
tree | 14f046128de9c35a57e3574a3a4365095b680d4f /jv.c | |
parent | f98e3e6c26b3b53701e1e6c2ff98ab6227cde3b8 (diff) | |
parent | 37cfc912c1f384d177162f8aa706452754d2c6ab (diff) |
Merge branch 'libjq'
Conflicts:
Makefile.am
configure.ac
Diffstat (limited to 'jv.c')
-rw-r--r-- | jv.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -14,6 +14,11 @@ * Internal refcounting helpers */ +typedef struct jv_refcnt { + size_t count; +} jv_refcnt; + + static void jvp_refcnt_init(jv_nontrivial* c) { c->ptr->count = 1; } @@ -576,7 +581,7 @@ int jv_string_length_codepoints(jv j) { return len; } -uint32_t jv_string_hash(jv j) { +unsigned long jv_string_hash(jv j) { assert(jv_get_kind(j) == JV_KIND_STRING); uint32_t hash = jvp_string_hash(jvp_string_ptr(&j.val.nontrivial)); jv_free(j); |