From 3ba6c2572dfc58bcd963cbc8cac1cce2f5b01dba Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 08:24:37 +0000 Subject: Changed some of the logging macro names. --- src/pyinterp.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/pyinterp.cc') diff --git a/src/pyinterp.cc b/src/pyinterp.cc index b0cb166c..a08ec820 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -1,10 +1,14 @@ #include "pyinterp.h" +#include +#include + namespace ledger { struct python_run { object result; + python_run(python_interpreter_t * intepreter, const string& str, int input_mode) : result(handle<>(borrowed(PyRun_String(str.c_str(), input_mode, @@ -23,7 +27,7 @@ python_interpreter_t::python_interpreter_t(xml::xpath_t::scope_t * parent) nspace(handle<>(borrowed(PyModule_GetDict(mmodule.get())))) { Py_Initialize(); - detail::init_module("ledger", &initialize_for_python); + boost::python::detail::init_module("ledger", &initialize_for_python); } object python_interpreter_t::import(const string& str) @@ -121,7 +125,8 @@ void python_interpreter_t::functor_t::operator()(value_t& result, arglist.append(*i); if (PyObject * val = - PyObject_CallObject(func.ptr(), tuple(arglist).ptr())) { + PyObject_CallObject(func.ptr(), + boost::python::tuple(arglist).ptr())) { result = extract(val)(); Py_DECREF(val); } -- cgit v1.2.3