diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 16:53:37 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 16:53:37 +0200 |
| commit | 85b0db24804e6a8a66f557ac8917596db5fc5d9f (patch) | |
| tree | 22cdfbf325fe7ecadc744a668f28c46b03e0f008 /json.h | |
| parent | 2d225abf3b482fa2bf8cf9a56b8caefcc5724447 (diff) | |
refactor: Better types
Diffstat (limited to 'json.h')
| -rw-r--r-- | json.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ typedef struct { Vec keys; // Vec<Str> Vec values; // Vec<JSON> - ptrdiff_t len; + size len; } JSONObject; typedef struct { int *integer; @@ -16,6 +16,6 @@ typedef struct { JSONObject *object; } JSON; JSON* JSONObject_get(JSONObject *obj, Str key); -JSON JSON_parse(Arena *a, char *src); +JSON JSON_parse(Arena *a, byte *src); JSON JSON_Int(Arena *a, int val); #endif |
