diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-03-10 15:01:20 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-03-10 15:01:20 +0200 |
commit | 8307e1260e771ba065fe16359a756beec26d9e7f (patch) | |
tree | 9ee17036d55ae9ae2aea0615a5322cd1e4a896b0 /include | |
parent | 5412685586404b12e457fdc98a659a1b3bda41db (diff) |
Replace optparse_init() with mkoptparser()
Diffstat (limited to 'include')
-rw-r--r-- | include/optparse.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/optparse.h b/include/optparse.h index 816b192..70e4318 100644 --- a/include/optparse.h +++ b/include/optparse.h @@ -8,9 +8,12 @@ #include "__u8view.h" struct optparse { - int optind, subopt; + bool _b; + int _subopt; + char **_argv; + + int optind; char errmsg[128]; - char **argv; struct u8view optarg; }; @@ -27,6 +30,6 @@ struct op_option { }; rune optparse(struct optparse *, const struct op_option *, size_t); -void optparse_init(struct optparse *, char **); +struct optparse mkoptparser(char **); #endif /* !MLIB_OPTPARSE_H */ |