This commit is contained in:
parent
7f5dd0453e
commit
259475bfe6
2 changed files with 2 additions and 3 deletions
2
kyaa.h
2
kyaa.h
|
@ -21,11 +21,9 @@
|
||||||
fprintf(stderr, "You've met with a terrible fate.\n"); \
|
fprintf(stderr, "You've met with a terrible fate.\n"); \
|
||||||
return KYAA_ERROR; \
|
return KYAA_ERROR; \
|
||||||
} \
|
} \
|
||||||
/* read-only */ \
|
|
||||||
char *kyaa_name = argv[0]; \
|
char *kyaa_name = argv[0]; \
|
||||||
bool kyaa_read_stdin = false; \
|
bool kyaa_read_stdin = false; \
|
||||||
char kyaa_flag = '\0'; \
|
char kyaa_flag = '\0'; \
|
||||||
/* internal */ \
|
|
||||||
bool kyaa_keep_parsing = true; \
|
bool kyaa_keep_parsing = true; \
|
||||||
bool kyaa_parse_next = false; \
|
bool kyaa_parse_next = false; \
|
||||||
|
|
||||||
|
|
3
kyaa.md
3
kyaa.md
|
@ -10,8 +10,8 @@ standard library headers:
|
||||||
* `errno.h`
|
* `errno.h`
|
||||||
* `stdbool.h`
|
* `stdbool.h`
|
||||||
* `stdio.h`
|
* `stdio.h`
|
||||||
* `string.h`
|
|
||||||
* `stdlib.h`
|
* `stdlib.h`
|
||||||
|
* `string.h`
|
||||||
|
|
||||||
## tutorial/API
|
## tutorial/API
|
||||||
|
|
||||||
|
@ -115,4 +115,5 @@ kyaa prints error messages to `stderr`, and help text to `stdout`.
|
||||||
|
|
||||||
* support `--var=42` argument style
|
* support `--var=42` argument style
|
||||||
* rename overlapping things, e.g. `KYAA_FLAG` vs `kyaa_flag`, `KYAA_FLAG_ARG` vs `kyaa_flag_arg`, etc.
|
* rename overlapping things, e.g. `KYAA_FLAG` vs `kyaa_flag`, `KYAA_FLAG_ARG` vs `kyaa_flag_arg`, etc.
|
||||||
|
* replace `strtol` with something more user-friendly (thereby don't require `stdlib.h` or `errno.h`)
|
||||||
* move `KYAA_FLAG_LONG` to `kyaa_extend.h` or something; write similar macros.
|
* move `KYAA_FLAG_LONG` to `kyaa_extend.h` or something; write similar macros.
|
Loading…
Reference in a new issue