|
@@ -1,11 +1,6 @@
|
1
|
1
|
#include "python_if.h"
|
2
|
2
|
|
3
|
3
|
PyMethodDef RPNIterExpr_methods[] = {
|
4
|
|
-/*
|
5
|
|
- {"eval", (PyCFunction)rpnexpr_eval, METH_FASTCALL, "Evaluate an expression"},
|
6
|
|
- {"reset_stack", (PyCFunction)rpnexpr_reset_stack, METH_NOARGS,
|
7
|
|
- "Reset stack memory storage (set all items to 0)"},
|
8
|
|
-*/
|
9
|
4
|
{"__getstate__", (PyCFunction)rpnif_getstate, METH_NOARGS,
|
10
|
5
|
"Pickling method. Return a bytes repr of tokenized expression \
|
11
|
6
|
and the stack state."},
|
|
@@ -19,13 +14,6 @@ PyMemberDef RPNIterExpr_members[] = {
|
19
|
14
|
};
|
20
|
15
|
|
21
|
16
|
PyGetSetDef RPNIterExpr_getset[] = {
|
22
|
|
- {"POS_LINEAR", rpnif_get_const, NULL,
|
23
|
|
- "", NULL},
|
24
|
|
- {"POS_XY", rpnif_get_const, NULL,
|
25
|
|
- "", NULL},
|
26
|
|
- {"POS_XDIM", rpnif_get_const, NULL,
|
27
|
|
- "", NULL},
|
28
|
|
-
|
29
|
17
|
{NULL}
|
30
|
18
|
};
|
31
|
19
|
|
|
@@ -200,7 +188,3 @@ PyObject* rpnif_setstate(PyObject *self, PyObject *state_bytes)
|
200
|
188
|
Py_RETURN_NONE;
|
201
|
189
|
}
|
202
|
190
|
|
203
|
|
-PyObject* rpnif_get_const(PyObject *self, void* val)
|
204
|
|
-{
|
205
|
|
- return Py_BuildValue("i", (int)(long int)42);
|
206
|
|
-}
|