|
|
@ -7,7 +7,7 @@ |
|
|
|
#include <libserpent/funcs.h> |
|
|
|
|
|
|
|
#define PYMETHOD(name, FROM, method, TO) \ |
|
|
|
static PyObject * name(PyObject *self, PyObject *args) { \ |
|
|
|
static PyObject * name(PyObject *, PyObject *args) { \ |
|
|
|
FROM(med) \ |
|
|
|
return TO(method(med)); \ |
|
|
|
} |
|
|
@ -128,7 +128,7 @@ PYMETHOD(ps_parse_lll, FROMSTR, parseLLL, pyifyNode) |
|
|
|
static PyMethodDef PyextMethods[] = { |
|
|
|
{"compile", ps_compile, METH_VARARGS, |
|
|
|
"Compile code."}, |
|
|
|
{"compile_to_lll", ps_parse, METH_VARARGS, |
|
|
|
{"compile_to_lll", ps_compile_to_lll, METH_VARARGS, |
|
|
|
"Compile code to LLL."}, |
|
|
|
{"compile_lll", ps_compile_lll, METH_VARARGS, |
|
|
|
"Compile LLL to EVM."}, |
|
|
@ -151,5 +151,5 @@ static PyMethodDef PyextMethods[] = { |
|
|
|
|
|
|
|
PyMODINIT_FUNC initpyext(void) |
|
|
|
{ |
|
|
|
PyObject *m = Py_InitModule( "pyext", PyextMethods ); |
|
|
|
Py_InitModule( "pyext", PyextMethods ); |
|
|
|
} |
|
|
|