Commit Graph

50 Commits

Author SHA1 Message Date
CK Tan 22aa38e31d catch unexpected use of malloc 2021-04-17 12:55:51 -07:00
CK Tan 3c1107177f simplify 2021-04-11 18:48:41 -07:00
CK Tan 45e8f3c903 cleanup 2021-04-11 15:36:04 -07:00
CK Tan a7557174ae fix #52 2021-04-11 15:27:55 -07:00
CK Tan 06e2fceedf speed up parse 2021-04-11 15:18:32 -07:00
CK Tan dbc1ef26d6 more tests 2021-03-07 17:28:41 -08:00
CK Tan 836ac94afe bug fix for timestmap 2021-03-07 02:26:19 -08:00
CK Tan 20bee50b59 minor fix 2021-03-07 01:07:03 -08:00
CK Tan 715fa54d45 fixed issue #51 2021-03-06 23:54:24 -08:00
CK Tan fd82018f79 fix #50: crash on input 2021-02-16 17:10:51 -08:00
CK Tan 72eda69b5a cleanup 2020-12-02 13:22:46 -08:00
CK Tan 94136b9f04 slight change in returning timestamp. now returns a malloc-ed ptr 2020-11-09 14:00:27 -08:00
CK Tan 3fdd187b2a rename toml_access_t -> toml_datum_t 2020-11-02 10:07:33 -08:00
CK Tan 71a9fd9772 Add enhanced access methods 2020-11-01 17:52:57 -08:00
CK Tan 5be06807ad remove use of calloc 2020-10-27 16:59:43 -07:00
CK Tan bc6f2fa6b8 remove use of realloc 2020-10-27 03:32:22 -07:00
CK Tan 2e8feafae8 enhance toml_set_memutil to assign default 2020-10-26 13:52:28 -07:00
CK Tan 1901ac3166 remove use of setjmp/longjmp 2020-10-25 18:48:14 -07:00
dcresswell 5d1d8e3389 Adds toml_raw_t to seperate raw and processed data
This just makes it more obvious that toml_raw_at returns a incomplete
bit of data. Users can easily see how to use rto* with this.
2020-07-08 21:45:48 -07:00
CK Tan a1d23056ac fixed const qual warning as suggested by @mheily 2020-07-08 02:26:12 -07:00
CK Tan 7af2dbf91f use static decl for local STRDUP, STRNDUP funcs 2020-07-08 02:13:18 -07:00
Stanley Pinchak 8278e68df9 Add const qualifiers for access functions
The access functions do not mutate the toml_table.
Add const qualifiers to the parameters which are not mutated.
2020-06-17 17:39:24 -05:00
CK Tan cdbb9decfb Fixed issue #33 2020-02-08 12:54:09 -08:00
CK Tan eaa5d04539 fix memory leak 2020-01-18 10:46:14 -08:00
CK Tan 4078d23a33 restructure and clean up toml_rtos 2019-12-29 11:55:17 -08:00
CK Tan 10787cbff9 re-indent 2019-12-29 11:34:12 -08:00
Theak 7efd69ca83 Fix for #29: STRNDUP memory leak fix 2019-12-29 14:09:02 +00:00
CK Tan b92d6a2c82 remove use of dummy errbuf due to benign gcc warnings 2019-11-03 09:06:01 -08:00
CK Tan c32a6e92f1 v0.5 compliant 2019-10-08 16:58:18 -07:00
CK Tan 63793f92ef make STRDUP and STRNDUP static 2019-10-04 10:08:57 -07:00
CK Tan bc951780ab tabify 2019-10-02 01:12:46 -07:00
CK Tan 15f44eba49 tabify 2019-10-02 01:11:34 -07:00
CK Tan c5907e1504 use memutil functions for strdup and strndup 2019-09-27 16:32:59 -07:00
CK Tan 9394192bfc fix issue #22: add toml_set_memutil 2019-09-26 22:29:25 -07:00
CK Tan 3bc235331f Handle more test cases 2019-08-16 04:35:14 -07:00
Jesper Peterson 386dccc84f Allow 0x/0o/0b integer prefixed in accordance with https://github.com/toml-lang/toml#integer 2019-05-10 17:17:29 +10:00
CK Tan bd76f1276e support SPC separator in timestamp 2019-03-06 11:44:14 -08:00
CK Tan c4325a38fb add toml_array_type() api 2019-02-27 11:31:49 -08:00
CK Tan 05e27a7cab copyright years 2019-02-19 10:51:51 -08:00
CK Tan 43f7a52064 Fix #14 and #13 2019-02-16 17:37:59 -08:00
Stanley Pinchak 3fed0ab455 Add helper functions to access key
New functions for read only access to the key of toml_array_t and
toml_table_t structs
2019-01-08 13:31:10 -06:00
Stanley Pinchak b53c016877 Add helper function for arrays
New function for read only access to the internal nelem member of
toml_array_t structs
2019-01-08 13:31:04 -06:00
Stanley Pinchak 88eacb3fe0 Add helper functions for tables
New functions for read only access to internal nkval, narr and ntab
members of toml_table_t structs.
2019-01-08 13:30:54 -06:00
CK Tan 56c42b7aed Fix #7: toml_utf8_to_ucs() returns incorrect results 2018-06-08 14:41:44 -07:00
CK Tan 624013252b Small fix for WIN32 2018-01-04 03:18:08 -08:00
CK Tan 01ecb88d13 Fix issue #3 2017-11-18 11:57:45 -08:00
CK Tan a0b45225e2 Fixes as suggested by mytchel
1. A critical bug in toml_parse_file when the file is empty
2. Add toml_cat.c to makefile
3. Other misc fixes related to error handling
2017-08-07 14:47:59 -07:00
CK Tan e6a6db8bda Fix some warnings and provide strndup for WIN32 2017-08-06 16:02:12 -07:00
CK Tan 287defadb1 Add github link to license text 2017-04-16 23:19:51 -07:00
CK Tan 09de99f7a8 Init. 2017-03-18 14:20:51 -07:00