Looks right to me. We don't need eval.h anywhere else, do we?
On Sep 14, 2009, at 8:47 AM, Lisandro Dalcin wrote:
> Stefan, I think this is the proper way... If you agree, please push
> the fix...
>
> diff -r fdf71a6bed70 Cython/Compiler/Builtin.py
> --- a/Cython/Compiler/Builtin.py Sat Sep 12 18:37:01 2009 +0200
> +++ b/Cython/Compiler/Builtin.py Mon Sep 14 12:24:51 2009 -0300
> @@ -163,14 +163,14 @@
>
> pyexec_utility_code = UtilityCode(
> proto = """
> -static PyObject* __Pyx_PyRun(PyObject*, PyObject*, PyObject*);
> -""",
> -impl = '''
> #if PY_VERSION_HEX < 0x02040000
> #ifndef Py_EVAL_H
> #include "eval.h"
> #endif
> #endif
> +static PyObject* __Pyx_PyRun(PyObject*, PyObject*, PyObject*);
> +""",
> +impl = '''
> static PyObject* __Pyx_PyRun(PyObject* o, PyObject* globals,
> PyObject* locals) {
> PyObject* result;
> PyObject* s = 0;
>
>
> --
> Lisandro Dalcín
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev