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
Boxiang Sun
cython
Commits
056e3310
Commit
056e3310
authored
Jan 18, 2012
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix py32 compatibility & fix warnings
parent
31b2f495
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-1
Cython/Utility/MemoryView.pyx
Cython/Utility/MemoryView.pyx
+2
-2
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+5
-4
No files found.
Cython/Compiler/Nodes.py
View file @
056e3310
...
...
@@ -1460,7 +1460,8 @@ class FuncDefNode(StatNode, BlockNode):
if
self
.
return_type
.
is_pyobject
:
init
=
" = NULL"
elif
self
.
return_type
.
is_memoryviewslice
:
init
=
"= {0, 0}"
import
MemoryView
init
=
' = '
+
MemoryView
.
memslice_entry_init
code
.
putln
(
"%s%s;"
%
...
...
Cython/Utility/MemoryView.pyx
View file @
056e3310
...
...
@@ -1115,12 +1115,12 @@ cdef int _err_extents(int i, Py_ssize_t extent1,
@
cname
(
'__pyx_memoryview_err_dim'
)
cdef
int
_err_dim
(
object
error
,
char
*
msg
,
int
dim
)
except
-
1
with
gil
:
raise
error
(
msg
%
dim
)
raise
error
(
msg
.
decode
(
'ascii'
)
%
dim
)
@
cname
(
'__pyx_memoryview_err'
)
cdef
int
_err
(
object
error
,
char
*
msg
)
except
-
1
with
gil
:
if
msg
!=
NULL
:
raise
error
(
msg
)
raise
error
(
msg
.
decode
(
'ascii'
)
)
else
:
raise
error
...
...
Cython/Utility/MemoryView_C.c
View file @
056e3310
...
...
@@ -385,7 +385,7 @@ static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) {
va_end
(
vargs
);
}
static
int
CYTHON_INLINE
static
CYTHON_INLINE
int
__pyx_add_acquisition_count_locked
(
__pyx_atomic_int
*
acquisition_count
,
PyThread_type_lock
lock
)
{
...
...
@@ -396,7 +396,7 @@ __pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
return
result
;
}
static
int
CYTHON_INLINE
static
CYTHON_INLINE
int
__pyx_sub_acquisition_count_locked
(
__pyx_atomic_int
*
acquisition_count
,
PyThread_type_lock
lock
)
{
...
...
@@ -408,8 +408,9 @@ __pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
}
static
CYTHON_INLINE
void
__Pyx_INC_MEMVIEW
({{
memviewslice_name
}}
*
memslice
,
int
have_gil
,
int
lineno
)
{
static
CYTHON_INLINE
void
__Pyx_INC_MEMVIEW
({{
memviewslice_name
}}
*
memslice
,
int
have_gil
,
int
lineno
)
{
int
first_time
;
struct
{{
memview_struct_name
}}
*
memview
=
memslice
->
memview
;
if
(
!
memview
)
...
...
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