From 12076aa0007a686e76ad1e746aaeca9ee05732e6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 10 Mar 2024 18:43:34 +0100 Subject: Make mkoptparser() [[gnu::always_inline]] --- lib/optparse/optparse.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib') diff --git a/lib/optparse/optparse.c b/lib/optparse/optparse.c index 931bf09..cf0c7dc 100644 --- a/lib/optparse/optparse.c +++ b/lib/optparse/optparse.c @@ -20,15 +20,6 @@ static rune error_r(struct optparse *, const char *, rune); static rune error_s(struct optparse *, const char *, struct u8view); static rune shortopt(struct optparse *, const struct op_option *, size_t); -struct optparse -mkoptparser(char **argv) -{ - return (struct optparse){ - ._argv = argv, - .optind = argv[0] != nullptr, - }; -} - rune optparse(struct optparse *st, const struct op_option *opts, size_t nopts) { -- cgit v1.2.3