Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
da1670bc
Commit
da1670bc
authored
Sep 14, 2009
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py2.3 and eval.h: include C header in proto section of pyexec_utility_code
parent
27353fda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+5
-5
No files found.
Cython/Compiler/Builtin.py
View file @
da1670bc
...
...
@@ -163,21 +163,21 @@ bad:
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;
char *code = 0;
if (!globals || globals == Py_None) {
globals = PyModule_GetDict(%s);
'''
%
Naming
.
module_cname
+
'''
globals = PyModule_GetDict(%s);
"""
%
Naming
.
module_cname
+
"""
if (!globals)
goto bad;
} else if (!PyDict_Check(globals)) {
...
...
@@ -236,7 +236,7 @@ bad:
Py_XDECREF(s);
return 0;
}
'''
)
"""
)
intern_utility_code
=
UtilityCode
(
proto
=
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment