diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-15 00:30:05 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:51 -0400 |
commit | 9e55655e0c1a56d3059bd8fc485e37fc3333b3bb (patch) | |
tree | 92ff00093779b7c7fb843417c27726508fa9f557 /src/session.cc | |
parent | b36d24481d37170195e3f92267b343b9489c6bba (diff) | |
download | fork-ledger-9e55655e0c1a56d3059bd8fc485e37fc3333b3bb.tar.gz fork-ledger-9e55655e0c1a56d3059bd8fc485e37fc3333b3bb.tar.bz2 fork-ledger-9e55655e0c1a56d3059bd8fc485e37fc3333b3bb.zip |
Got the xpath command working again.
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/session.cc b/src/session.cc index 0affd370..65b9ada5 100644 --- a/src/session.cc +++ b/src/session.cc @@ -219,27 +219,26 @@ xml::xpath_t::ptr_op_t session_t::lookup(const string& name) p = p + 7; switch (*p) { case 'd': - if (std::strcmp(p, "debug") == 0) - return MAKE_FUNCTOR(session_t::option_debug); + if (std::strcmp(p, "debug_") == 0) + return MAKE_FUNCTOR(session_t::option_debug_); break; case 'f': - if (! *(p + 1) || std::strcmp(p, "file") == 0) - return MAKE_FUNCTOR(session_t::option_file); + if ((*(p + 1) == '_' && ! *(p + 2)) || + std::strcmp(p, "file_") == 0) + return MAKE_FUNCTOR(session_t::option_file_); break; case 't': - if (std::strcmp(p, "trace") == 0) - return MAKE_FUNCTOR(session_t::option_trace); + if (std::strcmp(p, "trace_") == 0) + return MAKE_FUNCTOR(session_t::option_trace_); break; case 'v': -#if 0 if (! *(p + 1) || std::strcmp(p, "verbose") == 0) return MAKE_FUNCTOR(session_t::option_verbose); else if (std::strcmp(p, "verify") == 0) return MAKE_FUNCTOR(session_t::option_verify); -#endif break; } } |