summaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-24 16:37:26 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:31 -0400
commita5aff9eee967adb8c71ce6fc25db0458d522836e (patch)
tree1ab913955246a1ba0afd19d1f2fc776797a046d7 /option.h
parent44561c1c1d233d9432de319a71b44a3e05275d49 (diff)
downloadfork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.tar.gz
fork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.tar.bz2
fork-ledger-a5aff9eee967adb8c71ce6fc25db0458d522836e.zip
Several fixes to lot price handling.
Diffstat (limited to 'option.h')
-rw-r--r--option.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/option.h b/option.h
index 75990d1b..da1a6395 100644
--- a/option.h
+++ b/option.h
@@ -30,4 +30,24 @@ void process_arguments(option_t * options, int argc, char ** argv,
void process_environment(option_t * options, char ** envp,
const std::string& tag);
+namespace ledger {
+
+class config_t;
+class report_t;
+
+extern config_t * config;
+extern report_t * report;
+
+#define CONFIG_OPTIONS_SIZE 94
+extern option_t config_options[CONFIG_OPTIONS_SIZE];
+
+void option_help(std::ostream& out);
+
+#define OPT_BEGIN(tag, chars) \
+ void opt_ ## tag(const char * optarg)
+
+#define OPT_END(tag)
+
+} // namespace ledger
+
#endif // _OPTION_H