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
Gwenaël Samain
cython
Commits
6a91504a
Commit
6a91504a
authored
Sep 01, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid "unused label" warnings in PyPy by using just one label for error/done cases
parent
84437b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+5
-8
No files found.
Cython/Utility/ObjectHandling.c
View file @
6a91504a
...
...
@@ -1263,7 +1263,7 @@ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name
static
PyObject
*
__Pyx_PyObject_CallMethod1
(
PyObject
*
obj
,
PyObject
*
method_name
,
PyObject
*
arg
)
{
PyObject
*
method
,
*
result
=
NULL
;
method
=
__Pyx_PyObject_GetAttrStr
(
obj
,
method_name
);
if
(
unlikely
(
!
method
))
goto
bad
;
if
(
unlikely
(
!
method
))
goto
done
;
#if CYTHON_UNPACK_METHODS
if
(
likely
(
PyMethod_Check
(
method
)))
{
PyObject
*
self
=
PyMethod_GET_SELF
(
method
);
...
...
@@ -1278,7 +1278,7 @@ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name
}
#endif
args
=
PyTuple_New
(
2
);
if
(
unlikely
(
!
args
))
goto
bad
;
if
(
unlikely
(
!
args
))
goto
done
;
Py_INCREF
(
self
);
PyTuple_SET_ITEM
(
args
,
0
,
self
);
Py_INCREF
(
arg
);
...
...
@@ -1294,7 +1294,6 @@ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name
#endif
result
=
__Pyx_PyObject_CallOneArg
(
method
,
arg
);
done:
bad:
Py_XDECREF
(
method
);
return
result
;
}
...
...
@@ -1326,7 +1325,7 @@ static PyObject* __Pyx_PyObject_CallMethod2(PyObject* obj, PyObject* method_name
}
#endif
args
=
PyTuple_New
(
3
);
if
(
unlikely
(
!
args
))
goto
bad
;
if
(
unlikely
(
!
args
))
goto
done
;
Py_INCREF
(
self
);
PyTuple_SET_ITEM
(
args
,
0
,
self
);
Py_INCREF
(
arg1
);
...
...
@@ -1347,7 +1346,7 @@ static PyObject* __Pyx_PyObject_CallMethod2(PyObject* obj, PyObject* method_name
#endif
{
args
=
PyTuple_New
(
2
);
if
(
unlikely
(
!
args
))
goto
bad
;
if
(
unlikely
(
!
args
))
goto
done
;
Py_INCREF
(
arg1
);
PyTuple_SET_ITEM
(
args
,
0
,
arg1
);
Py_INCREF
(
arg2
);
...
...
@@ -1356,7 +1355,6 @@ static PyObject* __Pyx_PyObject_CallMethod2(PyObject* obj, PyObject* method_name
result
=
__Pyx_PyObject_Call
(
method
,
args
,
NULL
);
Py_DECREF
(
args
);
done:
bad:
Py_DECREF
(
method
);
return
result
;
}
...
...
@@ -1722,7 +1720,7 @@ static PyObject* __Pyx_PyObject_CallMatrixMethod(PyObject* method, PyObject* arg
}
#endif
args
=
PyTuple_New
(
2
);
if
(
unlikely
(
!
args
))
goto
bad
;
if
(
unlikely
(
!
args
))
goto
done
;
Py_INCREF
(
self
);
PyTuple_SET_ITEM
(
args
,
0
,
self
);
Py_INCREF
(
arg
);
...
...
@@ -1738,7 +1736,6 @@ static PyObject* __Pyx_PyObject_CallMatrixMethod(PyObject* method, PyObject* arg
#endif
result
=
__Pyx_PyObject_CallOneArg
(
method
,
arg
);
done:
bad:
Py_DECREF
(
method
);
return
result
;
}
...
...
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