aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-25 14:50:15 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-25 14:50:15 +0200
commitcc43733f3138f08ecf7459074a9ea32b662b4c59 (patch)
tree93138fb801b517ffe149ec72d4741b66ef0061ee
parenttypo (diff)
downloadargparser-cc43733f3138f08ecf7459074a9ea32b662b4c59.tar.gz
argparser-cc43733f3138f08ecf7459074a9ea32b662b4c59.tar.bz2
argparser-cc43733f3138f08ecf7459074a9ea32b662b4c59.tar.xz
missing variable + make some variables static
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/argparser.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 8472505..a2d51a5 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -79,7 +79,7 @@ typedef struct
/**
* Whether the Linux VT is being used
*/
-long args_linuxvt;
+static long args_linuxvt;
/**
* The name of the executed command
@@ -89,7 +89,7 @@ char* args_program;
/**
* Whether to free the member of `args_program`
*/
-long args_program_dispose;
+static long args_program_dispose;
/**
* Short, single-line, description of the program
@@ -144,22 +144,27 @@ long args_files_count;
/**
* Queue of objects that needs to be freed on dispose
*/
-void** args_freequeue;
+static void** args_freequeue;
+
+/**
+ * The number of elements in `args_freequeue`
+ */
+static long args_freeptr;
/**
* Options, in order
*/
-args_Option* args_options;
+static args_Option* args_options;
/**
* Number of elements in `args_options`
*/
-long args_options_count;
+static long args_options_count;
/**
* Number of elements for which `args_options` is allocated
*/
-long args_options_size;
+static long args_options_size;
// Option map
// HashMap<String, Option> optmap = new HashMap<String, Option>();