Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-08-06 | keyword, git: Update error checking for every function that uses | mrb0nk500 | |
`get_keyword_offset_ptr()` | |||
2022-08-06 | keyword: Fix a major issue with `get_keyword_offset_ptr()` adding the | mrb0nk500 | |
offset before dereferencing `ret`, and also check if the dereferenced return pointer is NULL | |||
2022-08-06 | keyword: 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-06 | keyword: Make use of `delimiter` struct in `create_key_value_file()`, | mrb0nk500 | |
and `create_key_value_str()` | |||
2022-08-05 | keyword: Add `get_keyword()`, `create_key_value_str()`, and | mrb0nk500 | |
`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-05 | keyword: 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-04 | git: Make use of `remove_trailing_whitespace()` in | mrb0nk500 | |
`parse_key_value_file()` This is a much better way of doing it than what was done previously. | |||
2022-08-02 | keyword: Revert commit 5589b9898b0bd9bbdfdf3c78c532e9bb104d5c41 | mrb0nk500 | |
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-01 | keyword: Remove trailing whitespace from the right hand side in | mrb0nk500 | |
`parse_key_value_file()` | |||
2022-08-01 | keyword: 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-01 | git, keyword: Move `parse_key_value_file()` to `keyword.{c,h}` | mrb0nk500 | |
2022-07-30 | keyword: 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-28 | everywhere: Fix compiler errors, compiler warnings, and correct typos | mrb0nk500 | |
2022-07-28 | keyword: Add `get_keyword_offset_ptr()` | mrb0nk500 | |
2022-07-28 | keyword: 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-26 | keyword: Added `keyword` type | mrb0nk500 | |
This will allow for easy parsing of stuff like the PR `info`, PR `comments`, and config files. |