aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-26 01:14:22 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-26 01:14:22 +0200
commit28639c4e3b553664dd7c249d629935c129534c1e (patch)
treee1f752b581d6deee4fe2b9946ca04b6d00c354d9
parentmove structs into .h file (diff)
downloadargparser-28639c4e3b553664dd7c249d629935c129534c1e.tar.gz
argparser-28639c4e3b553664dd7c249d629935c129534c1e.tar.bz2
argparser-28639c4e3b553664dd7c249d629935c129534c1e.tar.xz
move non-static variables into .h file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/argparser.c55
-rw-r--r--src/argparser.h57
2 files changed, 57 insertions, 55 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 7df379f..313c267 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -42,66 +42,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
*/
static void** args_freequeue;
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;
+
+