77 Commits

Author SHA1 Message Date
rexy712
e77d20cae4 Add _c API functions to allow custom allocation/deallocation functions 2020-07-20 03:16:21 -07:00
rexy712
df95db7882 Change RJP_PARSE_NONE to RJP_PARSE_NO_EXT to better clarify its purpose 2020-04-09 14:53:05 -07:00
rexy712
d76252d473 Fix const correctness of error to string 2020-04-09 13:03:29 -07:00
rexy712
d7e8c5ccbb Change error output to be in the hands of the library user instead of the library 2020-04-08 16:20:18 -07:00
rexy712
1b649fb582 Cleanup macro checks in rjp.h 2020-04-07 13:07:14 -07:00
rexy712
95b5b2cb83 Remove some uses of sprintf to improve speed a tiny bit 2020-04-06 16:55:44 -07:00
rexy712
7b643ff5c6 Separate rjp format flags into multiple for slightly more control over output formatting 2020-04-06 12:35:47 -07:00
rexy712
e6950db87c Disallow changing member key to empty string 2020-04-06 11:07:07 -07:00
rexy712
23dc0814a5 Removed comments in rjp.h. Moved API documentation to doc/api 2020-03-26 12:49:05 -07:00
rexy712
50137406e0 Fix incorrect comments in rjp.h 2020-03-26 09:14:42 -07:00
rexy712
4c94e11ff3 Decided to change rjp_set_member and related functions to default to allocation and copy since i kept getting them mixed up 2020-03-26 08:56:06 -07:00
rexy712
330b3956e5 Fix small output bugs. Add ability to add member to object/array in one function call. 2020-03-23 17:28:12 -07:00
rexy712
7177386801 Cleanup unneeded functions and includes 2020-03-23 10:58:56 -07:00
rexy712
32db7680d7 Cleanup and comment a bit more of the source 2020-03-22 16:07:52 -07:00
rexy712
d6213cfe1b Cleanup rjp.h 2020-03-22 14:46:57 -07:00
rexy712
f88bb0c4f2 Add callback based reading, essentially making chunked reading redundant 2020-03-22 11:14:10 -07:00
rexy712
a345dbbff3 Add license disclaimer to rjp_lex files 2020-03-17 16:02:44 -07:00
rexy712
8e454b3d5a Separated lexing logic further. Added file for lexical analysis functions 2020-03-17 15:59:51 -07:00
rexy712
e3d16e2112 Fix rjp_parse signature 2020-03-12 17:51:12 -07:00
rexy712
dd76bc9253 Change comment/excess comma support to runtime behavior 2020-03-11 12:55:30 -07:00
rexy712
a17e19bbc0 Updated parsing. Fixes many different sources of segfaults, simplifies modification, and (finally) adds support for scientific notation. Along with a handful of other small parsing changes/fixes. 2020-03-09 15:00:08 -07:00
rexy712
b5002db578 Fix rjp_internal to use newer configure option 2020-03-09 14:40:04 -07:00
rexy712
67036521d3 Add more configure options to CMake project. 2020-03-09 14:39:17 -07:00
rexy712
fcad8e2062 Update rjp.h include guard to be less likely to cause collisions 2020-03-03 17:57:30 -08:00
rexy712
2e9571115a Fix API function mk2 2020-02-29 13:07:05 -08:00
rexy712
3e1a785938 Add missing API function 2020-02-29 13:01:12 -08:00
rexy712
7b54b12e6e Add ordered objects using linked lists. Add wrapper for auto selecting functions to call given either object type. Add conversion functions between object types. 2020-02-29 11:58:11 -08:00
rexy712
88cdc61357 Actually implement key mutability 2020-02-24 18:30:38 -08:00
rexy712
250c6b1e59 Fix c++ compatability and const correctness 2020-02-24 14:46:47 -08:00
rexy712
08b05e8162 Update rjp version. Remove debug source file 2020-02-23 10:49:16 -08:00
rexy712
656992233e Updated copyright year 2020-02-23 10:03:59 -08:00
rexy712
6a9597c274 Reorganized file structure 2020-02-23 09:59:37 -08:00
rexy712
debd8cc31d Move unused utility function into debug only section 2020-02-19 06:16:09 -08:00
rexy712
67208e38e0 Removed vinit, was a really dumb idea. Redid a lot of the API to match. Fixed some tree related memory leaks. 2020-02-18 17:36:54 -08:00
rexy712
0dfbbb5a5c Fix object member removal 2020-01-28 16:53:02 -08:00
rexy712
ff241e2a6f Successfully hid RJP_value implementation from API 2020-01-19 09:19:20 -08:00
rexy712
30cc8008af Separate object operations from tree operations 2020-01-19 08:12:34 -08:00
rexy712
45ed17d6ca Tree setup now working on all compilation units 2020-01-17 14:22:15 -08:00
rexy712
0b4562a95a Update rjp.h types 2020-01-17 13:02:53 -08:00
rexy712
b5fdb94fd3 Fix RJP_object_iterator to actually usable state 2020-01-17 12:48:26 -08:00
rexy712
ed5179c677 Fix tree related segfaults. Add member removal to API 2020-01-13 18:38:19 -08:00
rexy712
a646d1c4e8 Moved rjp.c, memory.c, and strings.c over to new tree-based objects. Unfortunately, the API did need modified because C lacks the 'mutable' keyword. 2020-01-13 15:19:27 -08:00
rexy712
6e53fe29e2 Fix memory management of trees 2020-01-13 13:22:49 -08:00
rexy712
bc755098b3 Add tree iterator (untested) and tree copying 2020-01-12 18:05:24 -08:00
rexy712
ce1877f52a Basic working red black tree 2020-01-12 00:18:45 -08:00
rexy712
4cfd07df38 Add generic deprecated macro 2019-10-30 02:56:36 -07:00
rexy712
0b50b3b21a Fix naming issue with RJP_type 2019-10-29 13:51:58 -07:00
rexy712
688dd22c73 Add pretty printing 2019-10-29 13:34:42 -07:00
rexy712
0df7efabb7 Fixed standard noncompliant function naming convention 2019-08-25 07:49:56 -07:00
rexy712
3349468e07 Fix const correctness in API. Version Bump to 0.7.0. 2019-08-20 11:58:11 -07:00