Commit Graph

65 Commits

Author SHA1 Message Date
CK Tan 6fe7fee127 format and comment only 2023-09-18 20:28:16 -07:00
Vlad-Ștefan Harbuz 52e9c039c5
add missing null pointer checks (#80)
The result of copying a null pointer is undefined.
2023-05-29 12:36:32 -07:00
CK Tan 894902820a minor fix to CALLOC 2022-09-12 10:14:48 -07:00
Kamil Giszczak e4107c4554
Allow to use 't' (lower case T) as a date-time delimiter (#76)
as specified by TOML ABNF grammar:
https://github.com/toml-lang/toml/blob/1.0.0/toml.abnf#L169
2022-07-27 12:06:50 -07:00
CK Tan 4e7b082ccc removed pragma that caused warning on gcc 2022-04-04 11:28:49 -07:00
Vladislav Laetansky 8a863d1ec8
MSVC warnings fix (#72) 2022-04-04 11:24:53 -07:00
CK Tan 32c38751b9 format with clang-format 2021-12-25 23:42:50 -08:00
CK Tan 310f02dd67 comment 2021-12-10 16:59:47 -08:00
Toni 62320462f5
Avoid redefinition warnings from strdup functions (#67) 2021-12-10 16:57:07 -08:00
CK Tan 37954d9b20 add toml_key_exists() 2021-10-25 23:21:48 -07:00
CK Tan 208203af46 minor 2021-07-15 13:32:11 -07:00
CK Tan b5818182a4 fix an overflow bug in the scanner 2021-07-14 20:20:15 -07:00
CK Tan 511749ebb9 fix bug in millisec parsing 2021-07-04 19:20:08 -07:00
CK Tan 789930f7c9 when parsing millisec in timestamp, force use of base 10 in strtol() 2021-06-04 17:09:25 -07:00
CK Tan d7dd697c35 minor 2021-04-17 13:06:59 -07:00
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