Don't perform reference counting on true, false and null
authorPetri Lehtinen <petri@digip.org>
Mon, 7 Sep 2009 18:40:14 +0000 (21:40 +0300)
committerPetri Lehtinen <petri@digip.org>
Mon, 7 Sep 2009 18:40:14 +0000 (21:40 +0300)
commit7ee974e91c05d334b3a186937916bc843c537b8e
treedee16ab78cc4162e393d7da61dcc776c492e8fcf
parentc288188a0fd2d7ae5cc38c7c2b3ce326f15c25f9
Don't perform reference counting on true, false and null

This makes their constructors thread safe. A special reference count
-1 is used to test whether to perform reference counting on a value or
not.
src/jansson.h
src/value.c