fixed json support

This commit is contained in:
TLINDEN
2015-07-09 00:15:42 +02:00
parent 2d3fc9d8e3
commit 001d01e5bd
2 changed files with 162 additions and 129 deletions

View File

@@ -85,6 +85,23 @@ foreach my $head (@ARGV) {
print "PCP_RAW_CODE = '''\n";
print qq(
typedef enum {
JSON_OBJECT,
JSON_ARRAY,
JSON_STRING,
JSON_INTEGER,
JSON_REAL,
JSON_TRUE,
JSON_FALSE,
JSON_NULL
} json_type;
typedef struct json_t {
json_type type;
size_t refcount;
} json_t;
);
print join "\n", @typedefs;
print join "\n", @structs;
print join "\n", @code;