From 25e9c2db0466fbf8d52cc118b5a5a4b932f6cd12 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 9 Jul 2023 22:30:14 +0100 Subject: [PATCH] Add todo --- src/json_entities/json_entities.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/json_entities/json_entities.c b/src/json_entities/json_entities.c index 9510a85..cb757eb 100644 --- a/src/json_entities/json_entities.c +++ b/src/json_entities/json_entities.c @@ -4,6 +4,10 @@ #include #include +// TODO (Abdelrahman): Because print_json and free_json are recursive functions, +// they seem to cause stack overflow when dealing with large files. Refactor +// both of them to avoid this problem. + void print_json(const jentity_t *entity, u32 indent) { PERSISTENT i32 indentation = 0;