From 28639c4e3b553664dd7c249d629935c129534c1e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 01:14:22 +0200 Subject: move non-static variables into .h file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 55 ------------------------------------------------------- src/argparser.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 55 deletions(-) (limited to 'src') diff --git a/src/argparser.c b/src/argparser.c index 7df379f..313c267 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -41,66 +41,11 @@ static long cmp(char* a, char* b); */ static long args_linuxvt; -/** - * The name of the executed command - */ -char* args_program; - /** * Whether to free the member of `args_program` */ static long args_program_dispose; -/** - * Short, single-line, description of the program - */ -char* args_description; - -/** - * Formated, multi-line, usage text, `null` if none - */ -char* args_usage; - -/** - * Long, multi-line, description of the program, `null` if none - */ -char* args_longdescription; - -/** - * The error output stream - */ -FILE* args_out; - -/** - * The passed arguments - */ -char** args_arguments; - -/** - * The number of passed arguments - */ -long args_arguments_count; - -/** - * The number of unrecognised arguments - */ -long args_unrecognised_count; - -/** - * The concatination of `files` with blankspaces as delimiters, `null` if no files - */ -char* args_message; - -/** - * The arguments passed that is not tied to an option - */ -char** args_files; - -/** - * The number of elements in `args_files` - */ -long args_files_count; - /** * Queue of objects that needs to be freed on dispose */ diff --git a/src/argparser.h b/src/argparser.h index 19629ce..6862f2c 100644 --- a/src/argparser.h +++ b/src/argparser.h @@ -100,3 +100,60 @@ typedef struct } args_Array; + +/** + * The name of the executed command + */ +char* args_program; + +/** + * Short, single-line, description of the program + */ +char* args_description; + +/** + * Formated, multi-line, usage text, `null` if none + */ +char* args_usage; + +/** + * Long, multi-line, description of the program, `null` if none + */ +char* args_longdescription; + +/** + * The error output stream + */ +FILE* args_out; + +/** + * The passed arguments + */ +char** args_arguments; + +/** + * The number of passed arguments + */ +long args_arguments_count; + +/** + * The number of unrecognised arguments + */ +long args_unrecognised_count; + +/** + * The concatination of `files` with blankspaces as delimiters, `null` if no files + */ +char* args_message; + +/** + * The arguments passed that is not tied to an option + */ +char** args_files; + +/** + * The number of elements in `args_files` + */ +long args_files_count; + + -- cgit v1.2.3-70-g09d2