Better argument validation
authorPetri Lehtinen <petri@digip.org>
Sun, 6 Sep 2009 19:24:55 +0000 (22:24 +0300)
committerPetri Lehtinen <petri@digip.org>
Sun, 6 Sep 2009 19:24:55 +0000 (22:24 +0300)
commit234ee4728124d8d07412d159b45dd10854b6d6d8
tree01c5714c029aed649720a09f5d1d85d28ebcbf9d
parent98a8c1aebff7a414f0830bc4f6b7bee19405f865
Better argument validation

All pointer arguments are now tested for NULL. json_string() now also
tests that strdup() succeeds. This is to ensure that no NULL values
end up in data structures.

Also desribe the different sources of errors in documentation.
doc/apiref.rst
src/value.c
test/testprogs/test_array.c
test/testprogs/test_object.c
test/testprogs/test_simple.c