From 13fdee74dc28f0b068503843c6e14071a7c339f2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 22 Jul 2025 08:59:24 +0200 Subject: feat: More integer types --- json.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'json.h') diff --git a/json.h b/json.h index 824c5c6..032c23c 100644 --- a/json.h +++ b/json.h @@ -10,14 +10,14 @@ typedef struct { size len; } JSONObject; typedef struct { - int *boolean; - int *integer; + i32 *boolean; + i32 *integer; Vec *array; // Vec 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 -- cgit v1.3