diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-22 08:59:24 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-22 08:59:24 +0200 |
| commit | 13fdee74dc28f0b068503843c6e14071a7c339f2 (patch) | |
| tree | 323f35e351394c89faeaf61cccad716ba4e4fb1a /json.h | |
| parent | e02bfc1854effe0bb55ea6d4320e2b1902eaeae3 (diff) | |
feat: More integer types
Diffstat (limited to 'json.h')
| -rw-r--r-- | json.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,14 +10,14 @@ typedef struct { size len; } JSONObject; typedef struct { - int *boolean; - int *integer; + i32 *boolean; + i32 *integer; Vec *array; // Vec<JSON> Str *string; JSONObject *object; } JSON; JSON *JSONObject_get(JSONObject *obj, Str key); -int JSON_fprint(FILE *w, JSON json); +i32 JSON_fprint(FILE *w, JSON json); JSON JSON_parse(Arena *a, byte *src); -JSON JSON_Int(Arena *a, int val); +JSON JSON_Int(Arena *a, i32 val); #endif |
