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
2b124b5a
Commit
2b124b5a
authored
Mar 21, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x' of
git+ssh://github.com/cython/cython
into 0.29.x
parents
70b4cc65
d4d8eef3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+1
-1
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+4
-1
No files found.
Cython/Utility/Exceptions.c
View file @
2b124b5a
...
@@ -647,7 +647,7 @@ static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);/*proto*/
...
@@ -647,7 +647,7 @@ static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);/*proto*/
//@substitute: naming
//@substitute: naming
#ifndef CYTHON_CLINE_IN_TRACEBACK
#ifndef CYTHON_CLINE_IN_TRACEBACK
static
int
__Pyx_CLineForTraceback
(
PyThreadState
*
tstate
,
int
c_line
)
{
static
int
__Pyx_CLineForTraceback
(
CYTHON_NCP_UNUSED
PyThreadState
*
tstate
,
int
c_line
)
{
PyObject
*
use_cline
;
PyObject
*
use_cline
;
PyObject
*
ptype
,
*
pvalue
,
*
ptraceback
;
PyObject
*
ptype
,
*
pvalue
,
*
ptraceback
;
#if CYTHON_COMPILING_IN_CPYTHON
#if CYTHON_COMPILING_IN_CPYTHON
...
...
Cython/Utility/ModuleSetupCode.c
View file @
2b124b5a
...
@@ -591,8 +591,11 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
...
@@ -591,8 +591,11 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
#define PyString_Type PyUnicode_Type
#define PyString_Type PyUnicode_Type
#define PyString_Check PyUnicode_Check
#define PyString_Check PyUnicode_Check
#define PyString_CheckExact PyUnicode_CheckExact
#define PyString_CheckExact PyUnicode_CheckExact
// PyPy3 used to define "PyObject_Unicode"
#ifndef PyObject_Unicode
#define PyObject_Unicode PyObject_Str
#define PyObject_Unicode PyObject_Str
#endif
#endif
#endif
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
...
@@ -1065,7 +1068,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
...
@@ -1065,7 +1068,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
if
(
__pyx_code_cache
.
count
==
__pyx_code_cache
.
max_count
)
{
if
(
__pyx_code_cache
.
count
==
__pyx_code_cache
.
max_count
)
{
int
new_max
=
__pyx_code_cache
.
max_count
+
64
;
int
new_max
=
__pyx_code_cache
.
max_count
+
64
;
entries
=
(
__Pyx_CodeObjectCacheEntry
*
)
PyMem_Realloc
(
entries
=
(
__Pyx_CodeObjectCacheEntry
*
)
PyMem_Realloc
(
__pyx_code_cache
.
entries
,
(
size_t
)
new_max
*
sizeof
(
__Pyx_CodeObjectCacheEntry
));
__pyx_code_cache
.
entries
,
(
(
size_t
)
new_max
)
*
sizeof
(
__Pyx_CodeObjectCacheEntry
));
if
(
unlikely
(
!
entries
))
{
if
(
unlikely
(
!
entries
))
{
return
;
return
;
}
}
...
...
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