Removed all use of USE_BOOST_PYTHON from the main Ledger sources. When Python
support is enabled for use within Ledger, it will do so through the current scoping mechanism.
This commit is contained in:
parent
d6fd0cd24f
commit
a42ecd5938
2 changed files with 0 additions and 45 deletions
|
|
@ -53,33 +53,6 @@ expr_t::parser_t::parse_value_term(std::istream& in,
|
|||
break;
|
||||
|
||||
case token_t::IDENT: {
|
||||
#if 0
|
||||
#ifdef USE_BOOST_PYTHON
|
||||
if (tok.value->as_string() == "lambda") // special
|
||||
try {
|
||||
char c, buf[4096];
|
||||
|
||||
std::strcpy(buf, "lambda ");
|
||||
READ_INTO(in, &buf[7], 4000, c, true);
|
||||
|
||||
ptr_op_t eval = new op_t(op_t::O_EVAL);
|
||||
ptr_op_t lambda = new op_t(op_t::FUNCTION);
|
||||
lambda->functor = new python_functor_t(python_eval(buf));
|
||||
eval->set_left(lambda);
|
||||
ptr_op_t sym = new op_t(op_t::SYMBOL);
|
||||
sym->name = new string("__ptr");
|
||||
eval->set_right(sym);
|
||||
|
||||
node = eval;
|
||||
|
||||
goto done;
|
||||
}
|
||||
catch(const boost::python::error_already_set&) {
|
||||
throw_(parse_error, "Error parsing lambda expression");
|
||||
}
|
||||
#endif /* USE_BOOST_PYTHON */
|
||||
#endif
|
||||
|
||||
string ident = tok.value.as_string();
|
||||
|
||||
// An identifier followed by ( represents a function call
|
||||
|
|
@ -126,11 +99,6 @@ expr_t::parser_t::parse_value_term(std::istream& in,
|
|||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#ifdef USE_BOOST_PYTHON
|
||||
done:
|
||||
#endif
|
||||
#endif
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -224,19 +224,6 @@ See LICENSE file included with the distribution for details and disclaimer.\n";
|
|||
data_file = args[0].as_string();
|
||||
return NULL_VALUE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if defined(USE_BOOST_PYTHON)
|
||||
value_t option_import_(call_scope_t& args) {
|
||||
python_import(optarg);
|
||||
return NULL_VALUE;
|
||||
}
|
||||
value_t option_import_stdin(call_scope_t& args) {
|
||||
python_eval(std::cin, PY_EVAL_MULTI);
|
||||
return NULL_VALUE;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue