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
9f43378d
Commit
9f43378d
authored
Aug 22, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.23.x'
parents
2ab73fc7
d2c1b777
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGES.rst
CHANGES.rst
+3
-0
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-1
tests/buffers/bufaccess.pyx
tests/buffers/bufaccess.pyx
+14
-0
No files found.
CHANGES.rst
View file @
9f43378d
...
@@ -44,6 +44,9 @@ Bugs fixed
...
@@ -44,6 +44,9 @@ Bugs fixed
* Invalid C code for some builtin methods. This fixes ticket 856.
* Invalid C code for some builtin methods. This fixes ticket 856.
* Invalid C code for unused local buffer variables.
This fixes ticket 154.
* Test failures on 32bit systems. This fixes ticket 857.
* Test failures on 32bit systems. This fixes ticket 857.
* Code that uses "from xyz import *" and global C struct/union/array
* Code that uses "from xyz import *" and global C struct/union/array
...
...
Cython/Compiler/Nodes.py
View file @
9f43378d
...
@@ -1955,7 +1955,8 @@ class FuncDefNode(StatNode, BlockNode):
...
@@ -1955,7 +1955,8 @@ class FuncDefNode(StatNode, BlockNode):
code
.
putln
(
"{ PyObject *__pyx_type, *__pyx_value, *__pyx_tb;"
)
code
.
putln
(
"{ PyObject *__pyx_type, *__pyx_value, *__pyx_tb;"
)
code
.
putln
(
"__Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);"
)
code
.
putln
(
"__Pyx_ErrFetch(&__pyx_type, &__pyx_value, &__pyx_tb);"
)
for
entry
in
lenv
.
buffer_entries
:
for
entry
in
lenv
.
buffer_entries
:
Buffer
.
put_release_buffer_code
(
code
,
entry
)
if
entry
.
used
:
Buffer
.
put_release_buffer_code
(
code
,
entry
)
#code.putln("%s = 0;" % entry.cname)
#code.putln("%s = 0;" % entry.cname)
code
.
putln
(
"__Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}"
)
code
.
putln
(
"__Pyx_ErrRestore(__pyx_type, __pyx_value, __pyx_tb);}"
)
...
...
tests/buffers/bufaccess.pyx
View file @
9f43378d
...
@@ -45,6 +45,7 @@ def nousage():
...
@@ -45,6 +45,7 @@ def nousage():
cdef
object
[
int
,
ndim
=
2
]
buf
cdef
object
[
int
,
ndim
=
2
]
buf
@
testcase
def
disabled_usage
(
obj
):
def
disabled_usage
(
obj
):
"""
"""
The challenge here is just compilation.
The challenge here is just compilation.
...
@@ -57,6 +58,19 @@ def disabled_usage(obj):
...
@@ -57,6 +58,19 @@ def disabled_usage(obj):
return
obj
return
obj
@
testcase
def
nousage_cleanup
(
x
):
"""
>>> nousage_cleanup(False)
>>> nousage_cleanup(True)
Traceback (most recent call last):
RuntimeError
"""
cdef
object
[
int
,
ndim
=
2
]
buf
if
x
:
raise
RuntimeError
()
@
testcase
@
testcase
def
acquire_release
(
o1
,
o2
):
def
acquire_release
(
o1
,
o2
):
"""
"""
...
...
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