jansson/src
Petri Lehtinen 7f3018a4fb Refactor json_pack()
* Implement a "scanner" that reads the format string, maintaining state

* Split json_vnpack() to three separate functions for packing objects,
  arrays and simple values. This makes it more clear what is being
  packed, and the object and array structures become more evident.

* Make the skipping of ignored character simpler, i.e. skip ':' and
  ',' independent of their context

This patch shaves around 80 lines of code from the original
implementation.
2011-01-24 21:26:23 +02:00
..
dump.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
error.c Refactor json_pack() 2011-01-24 21:26:23 +02:00
hashtable.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
hashtable.h Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
jansson.h Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
jansson_config.h.in Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
jansson_config.h.win32 Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
jansson_private.h Refactor json_pack() 2011-01-24 21:26:23 +02:00
load.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
Makefile.am Enhance error reporting 2010-10-27 21:58:20 +03:00
strbuffer.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
strbuffer.h Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
utf.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
utf.h Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
value.c Update copyright notices for 2011 2011-01-22 13:43:14 +02:00
variadic.c Refactor json_pack() 2011-01-24 21:26:23 +02:00