Adds json_pack / json_unpack variadic functions.

This commit is contained in:
Graeme Smecher
2010-10-25 16:36:29 -07:00
committed by Petri Lehtinen
parent 1acd1a7b56
commit 198d537be7
10 changed files with 882 additions and 17 deletions

View File

@@ -60,13 +60,6 @@ typedef struct {
/*** error reporting ***/
#define JSON_ERROR_MSG_LENGTH 160
struct json_error_t {
char msg[JSON_ERROR_MSG_LENGTH];
int line;
};
const char *json_error_msg(const json_error_t *error)
{
return error ? error->msg : NULL;