summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-16 05:37:37 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:52 -0400
commit023f28630f7ed8f845eab00b137d58cc79b4445b (patch)
treee48c55fa1e87f5b34c00cbca7aac334c97c9e7f0 /src/session.h
parent52822604713b73160ac497bc170eb45d9a594306 (diff)
downloadledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.gz
ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.tar.bz2
ledger-023f28630f7ed8f845eab00b137d58cc79b4445b.zip
Changed xpath to use the new copy-on-write value_t.
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/session.h b/src/session.h
index 7658fc24..8db9faf1 100644
--- a/src/session.h
+++ b/src/session.h
@@ -188,11 +188,11 @@ class session_t : public xml::xpath_t::scope_t
// Debug options
//
- void option_trace_(value_t&, xml::xpath_t::scope_t * locals) {}
- void option_debug_(value_t&, xml::xpath_t::scope_t * locals) {}
+ value_t option_trace_(xml::xpath_t::scope_t * locals) {}
+ value_t option_debug_(xml::xpath_t::scope_t * locals) {}
- void option_verify(value_t&, xml::xpath_t::scope_t *) {}
- void option_verbose(value_t&, xml::xpath_t::scope_t *) {
+ value_t option_verify(xml::xpath_t::scope_t *) {}
+ value_t option_verbose(xml::xpath_t::scope_t *) {
#if defined(LOGGING_ON)
if (_log_level < LOG_INFO)
_log_level = LOG_INFO;
@@ -203,16 +203,17 @@ class session_t : public xml::xpath_t::scope_t
// Option handlers
//
- void option_file_(value_t&, xml::xpath_t::scope_t * locals) {
- data_file = locals->args.as_string();
+ value_t option_file_(xml::xpath_t::scope_t * locals) {
+ assert(locals->args.size() == 1);
+ data_file = locals->args[0].as_string();
}
#if 0
#if defined(USE_BOOST_PYTHON)
- void option_import_(value_t&) {
+ value_t option_import_(xml::xpath_t::scope_t * locals) {
python_import(optarg);
}
- void option_import_stdin(value_t&) {
+ value_t option_import_stdin(xml::xpath_t::scope_t * locals) {
python_eval(std::cin, PY_EVAL_MULTI);
}
#endif