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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
9a3f96e8
Commit
9a3f96e8
authored
Jul 31, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add macro indirections that apparently help making pyston happier
parent
7fa5990c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
Cython/Utility/Builtins.c
Cython/Utility/Builtins.c
+1
-1
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+1
-1
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+3
-0
No files found.
Cython/Utility/Builtins.c
View file @
9a3f96e8
...
...
@@ -115,7 +115,7 @@ static PyObject* __Pyx_PyExec3(PyObject* o, PyObject* globals, PyObject* locals)
}
if
(
PyCode_Check
(
o
))
{
if
(
PyCode_GetNumFree
((
PyCodeObject
*
)
o
)
>
0
)
{
if
(
__Pyx_PyCode_HasFreeVars
((
PyCodeObject
*
)
o
)
)
{
PyErr_SetString
(
PyExc_TypeError
,
"code object passed to exec() may not contain free variables"
);
goto
bad
;
...
...
Cython/Utility/Exceptions.c
View file @
9a3f96e8
...
...
@@ -615,7 +615,7 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line,
0
/*PyObject *locals*/
);
if
(
!
py_frame
)
goto
bad
;
py_frame
->
f_lineno
=
py_line
;
__Pyx_PyFrame_SetLineNumber
(
py_frame
,
py_line
)
;
PyTraceBack_Here
(
py_frame
);
bad:
Py_XDECREF
(
py_code
);
...
...
Cython/Utility/ModuleSetupCode.c
View file @
9a3f96e8
...
...
@@ -181,6 +181,9 @@
#define PyObject_Realloc(p) PyMem_Realloc(p)
#endif
#define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
...
...
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