summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
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