Commit Graph

11 Commits

Author SHA1 Message Date
Ole Morud
9291067828 Makefile: fix submodule update 2023-06-05 22:37:25 +02:00
Ole Morud
f564cb4615 Update Makefile 2023-06-05 22:37:25 +02:00
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
05e78fa523 Add error handling for read_number and fix it 2023-04-28 18:32:15 +02:00
olemorud
08de9dc48b update Makefile to fix CI 2023-04-28 18:32:15 +02:00
olemorud
3b7cc458fc Makefile: add no-omit-framepointer to debug builds 2023-04-24 23:44:45 +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
995b9dee61 Makefile: Remove LDFLAGS,LDLIBS 2023-04-23 19:38:44 +02:00
olemorud
c1398004fc Makefile: Add release and debug builds 2023-04-22 22:29:50 +02:00
olemorud
89dc8149c0 First version correctly parsing sample.json 2023-04-22 18:43:58 +02:00
olemorud
4ce1c34838 Initial commit 2023-04-22 18:43:36 +02:00