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
dbf774cc
Commit
dbf774cc
authored
Nov 01, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use branch hints in macros of slicing work-around
parent
fee84f22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+6
-6
No files found.
Cython/Compiler/ModuleNode.py
View file @
dbf774cc
...
@@ -598,17 +598,17 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -598,17 +598,17 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
#define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
#define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
#define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
#define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
#else
#else
#define __Pyx_PySequence_GetSlice(obj, a, b) ((!(obj)) ?
\
\
#define __Pyx_PySequence_GetSlice(obj, a, b) (
unlikely
(!(obj)) ?
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) :
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) :
\
\
(((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) :
\
\
(
likely
((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) :
\
\
(PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
(PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
#define __Pyx_PySequence_SetSlice(obj, a, b, value) ((!(obj)) ?
\
\
#define __Pyx_PySequence_SetSlice(obj, a, b, value) (
unlikely
(!(obj)) ?
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) :
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) :
\
\
(((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) :
\
\
(
likely
((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) :
\
\
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
#define __Pyx_PySequence_DelSlice(obj, a, b) ((!(obj)) ?
\
\
#define __Pyx_PySequence_DelSlice(obj, a, b) (
unlikely
(!(obj)) ?
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) :
\
\
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) :
\
\
(((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) :
\
\
(
likely
((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) :
\
\
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
#endif
#endif
...
...
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