summaryrefslogtreecommitdiff
path: root/keyword.h
AgeCommit message (Collapse)Author
2022-08-06keyword: Make use of `delimiter` struct in `create_key_value_file()`,mrb0nk500
and `create_key_value_str()`
2022-08-06keyword: Add `delimiter` structmrb0nk500
This can be used to help with `create_key_value_file()`, 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-01git, keyword: Move `parse_key_value_file()` to `keyword.{c,h}`mrb0nk500
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.