Make json_pack/json_unpack() recursive
authorGraeme Smecher <graeme.smecher@mail.mcgill.ca>
Fri, 14 Jan 2011 17:18:42 +0000 (09:18 -0800)
committerPetri Lehtinen <petri@digip.org>
Fri, 14 Jan 2011 19:43:48 +0000 (21:43 +0200)
Note that we pass va_list pointers around instead of just va_lists, which
would seem more intuitive. This is necessary since the behaviour of va_lists
passed as function parameters is finicky. Quoth stdarg(3):

If ap is passed to a function that uses va_arg(ap,type) then the value
of ap is undefined after the return of that function.

The pointer-passing strategy is used by Python's Py_BuildValue() for the same
purpose.


No differences found