aboutsummaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 16:53:37 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 16:53:37 +0200
commit85b0db24804e6a8a66f557ac8917596db5fc5d9f (patch)
tree22cdfbf325fe7ecadc744a668f28c46b03e0f008 /json.h
parent2d225abf3b482fa2bf8cf9a56b8caefcc5724447 (diff)
refactor: Better types
Diffstat (limited to 'json.h')
-rw-r--r--json.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/json.h b/json.h
index 5f2f4c0..fc2dcfe 100644
--- a/json.h
+++ b/json.h
@@ -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