libjson: added printing support (thanks spew)
This commit is contained in:
parent
f6e8b115d4
commit
a53ae2782a
4 changed files with 127 additions and 12 deletions
|
@ -4,6 +4,8 @@
|
|||
typedef struct JSONEl JSONEl;
|
||||
typedef struct JSON JSON;
|
||||
|
||||
#pragma varargck type "J" JSON*
|
||||
|
||||
enum {
|
||||
JSONNull,
|
||||
JSONBool,
|
||||
|
@ -33,3 +35,5 @@ JSON* jsonparse(char *);
|
|||
void jsonfree(JSON *);
|
||||
JSON* jsonbyname(JSON *, char *);
|
||||
char* jsonstr(JSON *);
|
||||
int JSONfmt(Fmt*);
|
||||
void JSONfmtinstall(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue