summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-30git: Check if either `lhs`, or `buf` are empty inmrb0nk500
`parse_colon_key_value_file()`
2022-07-30git: Replace `filename` with `path` in `create_file()`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-30config: Use string instead of int in `check_port()`mrb0nk500
oof, forgot that `config.port` is a string.
2022-07-30git: Add missing extern definition for `get_pull_request()`mrb0nk500
2022-07-28everywhere: Fix compiler errors, compiler warnings, and correct typosmrb0nk500
2022-07-28index: rename typedef `index` to `index_t`mrb0nk500
This had to be done because `index()` is a function in the standard library.
2022-07-28config: Make use of `keyword` for parsing config filesmrb0nk500
This get's rid of the old `config_opt` parser, which was way too specific for parsing config files.
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-28git: Implement all of `get_pull_request()`mrb0nk500
`get_pull_request()` takes an index, and the main PR root, and returns the PR of the supplied index if it exists, or NULL if no PR with that index exists.
2022-07-28linked_list: Add `linked_list_to_array()`mrb0nk500
This function takes the given linked list, and creates a type generic pointer array from it.
2022-07-27misc: Actually return pointer to the first non-delimited character aftermrb0nk500
the end of the range in `get_str_delm_range()`
2022-07-27misc: Use `find_delm()` when finding the end of the range inmrb0nk500
`get_str_delm_range()`
2022-07-27misc: Make `find_delm()` account for escaped delimiters.mrb0nk500
2022-07-27misc: Add `find_delm()`, and `get_str_delm_range()`mrb0nk500
`find_delm()` finds the first matched delimiter of the supplied delimiter(s), and either returns the pointer to the first non-delimiter character after the match, or the match itself if `skip_delm` is true, or false respectivly. `get_str_delm_range()` finds, and returns the string in between the supplied starting, and ending delimiter(s). It also returns the pointer to the first non-delimiter character after the end of the range in `rhs`.
2022-07-27misc: Add `\r`, and `\n` to the list of whitespace thatmrb0nk500
`skip_whitespace()` can skip past.
2022-07-27misc: Use `is_empty()` instead of just checking if `*str` is NULL inmrb0nk500
`get_line()`
2022-07-27misc: Add `is_empty()`, and `skip_whitespace()`mrb0nk500
2022-07-27misc: Make `get_line()` simpler by using `strcspn()`mrb0nk500
2022-07-27git: Update definition of `create_pull_request_dir()` in `git.h`mrb0nk500
Forgot to do that when first implementing the index related stuff.
2022-07-27git: Replace all uses of `git_repo` with the more generic `linked_list`mrb0nk500
We don't need a type specific linked list anymore, so we can just get rid of it, plus it makes the code much cleaner in the process.
2022-07-27linked_list: Add `cleanup_linked_list()`mrb0nk500
This function cleans up a linked list by removing every node in the list.
2022-07-26git: Add `create_file()`mrb0nk500
2022-07-26git: Remove definition of `index` struct from `git.h`mrb0nk500
oof, forgot to commit this when moving all the index related stuff to `index.{c,h}`.
2022-07-26linked_list: Add `linked_list` type.mrb0nk500
This is a type generic doubly linked list implementation. I used the implementation from DevkitPro's libnds library as a baseline. Link to libnds implementation: https://github.com/devkitPro/libnds/blob/master/source/arm9/linkedlist.c
2022-07-26keyword: Added `keyword` typemrb0nk500
This will allow for easy parsing of stuff like the PR `info`, PR `comments`, and config files.
2022-07-26index: Add `index_path_exists()`mrb0nk500
This function checks if the converted path of a given index exists, or not. It also returns the converted path in `path` if the path exists.
2022-07-26index: Add a function for converting an index into a string.mrb0nk500
2022-07-26git, index: Move index related functions to `index.{c,h}`mrb0nk500
2022-07-24git: Remove reason string reference from `is_valid_index()`mrb0nk500
2022-07-13git: Use an index instead of an id for creating PR directoriesmrb0nk500
PR's will now be identified by index, rather than by id. If no index is found, then it falls back to using the PR title as the directory name.
2022-07-13git: Add index typemrb0nk500
An index is a type of identifier that'll be used for identifying PR's. Indexes can either be named, or numbered, and can also contain another index within them, with each subsequent index being seperated by '-'s.
2021-08-01Initialize `cfg`, and `repos` to NULL in `main()`.mrb0nk500
2021-08-01Check if the PR root directory exists, in `main_loop()`.mrb0nk500
2021-08-01Fixed a typo in `create_pull_request_dir()`.mrb0nk500
2021-08-01Fixed a typo in `sanitized_dir_path_name()`.mrb0nk500
2021-08-01Removed a free to a non-existent variable inmrb0nk500
`create_pull_request_dir()`. Forgot about thatm lol.
2021-08-01Added extern for `sanitized_dir_path_name()`.mrb0nk500
2021-08-01Replace all instances of `dir_path_name()`, withmrb0nk500
`sanitized_dir_path_name()` in `create_pull_request_dir()`.
2021-08-01Added `sanitized_dir_path_name()`.mrb0nk500
This function is the same as `dir_path_name()`, except `name` is sanitized before being appended to `root`.
2021-08-01Fixed an infinite loop bug in `sanitized_str()`, andmrb0nk500
`sanitized_strlen()`.
2021-08-01Fixed a bug in `create_pull_request_dir()`.mrb0nk500
The patch file(s) were being created in the current working directory, rather than the PR directory.
2021-08-01Set return value to zero, if the PR ID is negative inmrb0nk500
`create_pull_request_dir()`.
2021-08-01Move the creation of the info file to after themrb0nk500
PR directory check in `create_pull_request_dir()`.
2021-08-01Fixed a typo in `create_pull_request_dir()`.mrb0nk500
2021-08-01Move the `openlog()` call from `init_daemon()` tomrb0nk500
`main()`.
2021-08-01Added `free_files()`, and `free_file()`.mrb0nk500
2021-08-01Added `get_branch_commits()`.mrb0nk500
It's currently a stub, but, I added it in order to at least get it to compile.
2021-08-01Explicitly discard const qualifier in `find_alpha()`.mrb0nk500
This was done to get rid of a const qualifier warning.