From fad12ccb70f1981ed7269c24d221af66715e3016 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 03:13:58 +0200 Subject: fix varargs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/argparser.h') diff --git a/src/argparser.h b/src/argparser.h index 6df4891..4d6194d 100644 --- a/src/argparser.h +++ b/src/argparser.h @@ -181,31 +181,31 @@ extern void args_dispose(); /** * Creates, but does not add, a option that takes no arguments * - * @param standard The index of the standard alternative name - * @param count... The alterntive names - * @return The created option + * @param standard The index of the standard alternative name + * @param alternatives... The alterntive names, end with `null` + * @return The created option */ -extern args_Option args_new_argumentless(int standard, int count, ...); +extern args_Option args_new_argumentless(int standard, char* alternatives, ...); /** * Creates, but does not add, a option that takes one argument per use * - * @param argument The new of the argument - * @param standard The index of the standard alternative name - * @param count... The alterntive names - * @return The created option + * @param argument The new of the argument + * @param standard The index of the standard alternative name + * @param alternatives... The alterntive names, end with `null` + * @return The created option */ -extern args_Option args_new_argumented(char* argument, int standard, int count, ...); +extern args_Option args_new_argumented(char* argument, int standard, char* alternatives, ...); /** * Creates, but does not add, a option that takes all following arguments * - * @param argument The new of the argument - * @param standard The index of the standard alternative name - * @param count... The alterntive names - * @return The created option + * @param argument The new of the argument + * @param standard The index of the standard alternative name + * @param alternatives... The alterntive names, end with `null` + * @return The created option */ -extern args_Option args_new_variadic(char* argument, int standard, int count, ...); +extern args_Option args_new_variadic(char* argument, int standard, char* alternatives, ...); /** -- cgit v1.2.3-70-g09d2