21 Commits
Author SHA1 Message Date
Martin Tournoij 94188706e5 use setup-toml-test 2025-05-02 03:43:29 +01:00
Martin Tournoij 4dae6eb05e Don't use pointer for toml_value_t.u.ts
I see no reason why this needs to be a pointer.
2025-04-23 14:21:11 +01:00
Martin Tournoij 0669f09fbd Fix some additional toml-test cases
- Trailing dot after datetime
- Multiline strings can't be keys
- Non-decimal numbers can't have + or - sign
2025-04-23 02:07:55 +01:00
Martin Tournoij 9fb408b9ba sprintf → snprintf
Doesn't really matter here, but macOS emits a bunch of warnings about
it.
2025-04-22 14:42:26 +01:00
Martin Tournoij d9ca3c569b Reject control characters in comments 2025-04-15 19:14:48 +01:00
Martin Tournoij 50b7e71894 Increase buffer to silence gcc warning 2025-04-14 06:25:03 +01:00
Martin Tournoij fe6473886f Use C99 comments throughout 2025-04-14 00:03:20 +01:00
Martin Tournoij 6dc0cf7516 Rename tab → tbl
Kind of a stupid thing, but "tbl" is so much more obviously "table", at
least for me.
2025-04-13 23:50:55 +01:00
Lev Knoblock 5486a0c758 Change toml_timestamp_t.tz to int
Prevously it would store the offset string, e.g. "+01:00" or "Z". This
isn't really all that useful IMO, so change it to an int.

Also reject invalid timezone offsets.
2025-04-13 23:31:39 +01:00
Martin Tournoij e9b01d5aea Fix CI after toml-test changes
Also fix tests on Windows
2025-04-12 18:56:49 +01:00
Martin Tournoij 76f86d0d6e Remove CI debug command 2023-12-07 06:59:02 +00:00
Martin Tournoij 672f1f0a58 Fix CI 2023-12-04 00:45:39 +00:00
Martin Tournoij 30f8d10a5e Guarantee correct UTF-8 for strings 2023-12-03 23:00:00 +00:00
Martin Tournoij a2f89af4cb Correctly count """ and ''' 2023-12-03 12:12:39 +00:00
Martin Tournoij 39aeab9f71 Also store string length for keys 2023-12-03 11:45:26 +00:00
Martin Tournoij bde3ba8f68 Reject invalid Feb dates 2023-12-03 10:58:15 +00:00
Martin Tournoij c75fdc655b Twiddle API 2023-12-03 10:11:58 +00:00
Martin Tournoij 4a53e8b666 Store length of string, so we can store NULL bytes 2023-12-03 08:21:05 +00:00
Martin Tournoij 163fafbd14 Fix ''' inside " .. " strings 2023-12-03 06:22:10 +00:00
Martin Tournoij 75021b3fd9 Allow "\n" = 1 2023-12-03 06:10:12 +00:00
Martin Tournoij 17ff24a701 Style 2023-12-03 05:13:50 +00:00