summaryrefslogtreecommitdiff
path: root/src/pyinterp.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-11 07:26:04 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:47 -0400
commit7ba3f730182772ec9d9fe5e0f3c84ea4e43d98f2 (patch)
tree34384fe33be568bd19bc013ad5ab5160abb07a8d /src/pyinterp.cc
parent80c04e638f9c8ac1cc0698764514f588bcb16212 (diff)
downloadledger-7ba3f730182772ec9d9fe5e0f3c84ea4e43d98f2.tar.gz
ledger-7ba3f730182772ec9d9fe5e0f3c84ea4e43d98f2.tar.bz2
ledger-7ba3f730182772ec9d9fe5e0f3c84ea4e43d98f2.zip
Correcting pyledger initialization...
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r--src/pyinterp.cc37
1 files changed, 35 insertions, 2 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc
index dc070fd1..b687ec05 100644
--- a/src/pyinterp.cc
+++ b/src/pyinterp.cc
@@ -37,6 +37,41 @@ namespace ledger {
using namespace boost::python;
+void export_utils();
+void export_times();
+void export_amount();
+void export_commodity();
+#if 0
+void export_balance();
+void export_value();
+void export_journal();
+void export_parser();
+void export_option();
+void export_walk();
+void export_report();
+void export_format();
+void export_valexpr();
+#endif
+
+void initialize_for_python()
+{
+ export_utils();
+ export_times();
+ export_amount();
+ export_commodity();
+#if 0
+ export_balance();
+ export_value();
+ export_journal();
+ export_parser();
+ export_option();
+ export_walk();
+ export_format();
+ export_report();
+ export_valexpr();
+#endif
+}
+
struct python_run
{
object result;
@@ -51,8 +86,6 @@ struct python_run
}
};
-extern void initialize_for_python();
-
python_interpreter_t::python_interpreter_t(xml::xpath_t::scope_t * parent)
: xml::xpath_t::scope_t(parent),
mmodule(borrowed(PyImport_AddModule("__main__"))),