Commit Graph

8 Commits

Author SHA1 Message Date
olemorud
b3821cf8bf Feature: Use arena-allocation for memory handling
Arena allocation make deallocation of nested structed MUCH faster, and
improves the spatial locality of allocations. It makes no sense to
deallocate only parts of a JSON structure so arenas are a good fit here.
2023-06-05 21:25:40 +02:00
olemorud
2f632baa26 Add COPYING 2023-04-28 18:32:03 +02:00
olemorud
e0857626d6 Refactor: macro constants -> config.h 2023-04-25 00:22:43 +02:00
olemorud
9a88d1cbdc Refactor
Move json_value and obj_t to same file
 - Rename json_obj.* -> json_value.*
 - Move `print_json_value(...)` to json_value.*

Move `err_ctx(...)` to util.*

parse.h now only exposes `parse_json_value(...)`
2023-04-24 23:44:45 +02:00
olemorud
4b91c62750 Fix parser errors 2023-04-23 21:04:14 +02:00
olemorud
035c3b6b02 util.c: Improve formatting of stack trace 2023-04-22 22:29:50 +02:00
olemorud
c1398004fc Makefile: Add release and debug builds 2023-04-22 22:29:50 +02:00
olemorud
4ce1c34838 Initial commit 2023-04-22 18:43:36 +02:00