summaryrefslogtreecommitdiff
path: root/config.c
AgeCommit message (Collapse)Author
2021-06-06Added the config option value parser.mrb0nk500
This function, called `parse_option_value()`, parses the supplied `value` string, and based on the value type supplied by `opt`, sets a given member of `val` for that value type.
2021-06-06Added a loop for finding a valid config option.mrb0nk500
I also added a call to a function that parses the value of the config option.
2021-06-05Fixed a bug, and typo in the `strtok_r()` call in themrb0nk500
config parser loop.
2021-06-05Replace `find_line()` with `get_line()`.mrb0nk500
The loop body was also changed accordingly. This was done to make the config parser easier to read.
2021-06-05Move the config option stuff into `config.h`.mrb0nk500
2021-06-05Added the typedefs for the config option types.mrb0nk500
2021-06-05Rename var to func, and change all the variables tomrb0nk500
function addresses. This is to get rid of the need for global variables.
2021-06-05Fixed typo in config option format comment.mrb0nk500
2021-06-05Start adding the config options.mrb0nk500
2021-06-04Fixed typo in `read_file()` to do with the filesizemrb0nk500
check.
2021-06-04Added missing buffer in `read_file()`.mrb0nk500
I forgot to add it, oof.
2021-06-04Started work on the parser loop.mrb0nk500
2021-06-04Added `find_line()`.mrb0nk500
Which finds the next line in the buffer.
2021-06-04Started work on the config file parser.mrb0nk500