summaryrefslogtreecommitdiff
path: root/keyword.c
AgeCommit message (Collapse)Author
2022-08-06keyword, git: Update error checking for every function that usesmrb0nk500
`get_keyword_offset_ptr()`
2022-08-06keyword: Fix a major issue with `get_keyword_offset_ptr()` adding themrb0nk500
offset before dereferencing `ret`, and also check if the dereferenced return pointer is NULL
2022-08-06keyword: Check validity of keyword value in `create_key_value_file()`mrb0nk500
This needs to be done, in case we get a string that's `NULL`.
2022-08-06keyword: Make use of `delimiter` struct in `create_key_value_file()`,mrb0nk500
and `create_key_value_str()`
2022-08-05keyword: Add `get_keyword()`, `create_key_value_str()`, andmrb0nk500
`create_key_value_file()` These functions will help in making the creation of key-value files more generic. There still needs to be some more work done on it, but that can be done later.
2022-08-05keyword: Add `get_keyword_cb`, and add `get_callback` to `struct keyword`mrb0nk500
This will be used for creating a getter callback for keywords. I also renamed `keyword_cb` to `set_keyword_cb`, aswell as renamed `callback` to `set_callback` in `struct keyword`.
2022-08-04git: Make use of `remove_trailing_whitespace()` inmrb0nk500
`parse_key_value_file()` This is a much better way of doing it than what was done previously.
2022-08-02keyword: Revert commit 5589b9898b0bd9bbdfdf3c78c532e9bb104d5c41mrb0nk500
keyword: Remove trailing whitespace from the right hand side in `parse_key_value_file()` I didn't realize this would create a parsing bug.
2022-08-01keyword: Remove trailing whitespace from the right hand side inmrb0nk500
`parse_key_value_file()`
2022-08-01keyword: Replace `*delm`, with `*tmp` in `parse_keyword_value_file()`mrb0nk500
This was a mistake that I didn't even notice until now, lol.
2022-08-01git, keyword: Move `parse_key_value_file()` to `keyword.{c,h}`mrb0nk500
2022-07-30keyword: Make sure `tm_isdst` is negative in `get_keyword_value()`mrb0nk500
This needs to be done in order to properly correct for DST.
2022-07-28everywhere: Fix compiler errors, compiler warnings, and correct typosmrb0nk500
2022-07-28keyword: Add `get_keyword_offset_ptr()`mrb0nk500
2022-07-28keyword: Make `keyword_cb`, and `set_keyword()` return an `int`mrb0nk500
`set_keyword()` now checks the return value of the callback to determine whether to return early, fallback to the default, or return an error if the callback returns true, false, and -1 respectivly.
2022-07-26keyword: Added `keyword` typemrb0nk500
This will allow for easy parsing of stuff like the PR `info`, PR `comments`, and config files.