summaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-13 17:02:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-13 17:02:25 -0400
commit6944e5950a90b17d53a6efe87c71512085d4e1f7 (patch)
treeedad327a21739b9fabd5ccc72f0d22d73bb5d791 /option.h
parent8a70bbed521662e76c1b3c42460743bb891c2deb (diff)
downloadfork-ledger-6944e5950a90b17d53a6efe87c71512085d4e1f7.tar.gz
fork-ledger-6944e5950a90b17d53a6efe87c71512085d4e1f7.tar.bz2
fork-ledger-6944e5950a90b17d53a6efe87c71512085d4e1f7.zip
more options fixes
Diffstat (limited to 'option.h')
-rw-r--r--option.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/option.h b/option.h
index 33b54933..943d5193 100644
--- a/option.h
+++ b/option.h
@@ -2,6 +2,7 @@
#define _OPTION_H
#include <map>
+#include <list>
#include <vector>
#include <string>
@@ -34,8 +35,9 @@ struct option_handler {
};
bool process_option(const std::string& opt, const char * arg = NULL);
-void process_arguments(std::vector<char *>& args, int argc, char ** argv);
-void process_environment(char ** envp);
+void process_arguments(int argc, char ** argv, const bool anywhere,
+ std::list<std::string>& args);
+void process_environment(char ** envp, const std::string& tag);
#define DEF_OPT_HANDLERS() \
std::vector<option_t> option_handler::options; \