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
488cf16d
Commit
488cf16d
authored
5 years ago
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old nogil classes del statement
parent
88b78289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-7
No files found.
Cython/Compiler/Nodes.py
View file @
488cf16d
...
@@ -5981,8 +5981,6 @@ class DelStatNode(StatNode):
...
@@ -5981,8 +5981,6 @@ class DelStatNode(StatNode):
error
(
arg
.
pos
,
"Deletion of global C variable"
)
error
(
arg
.
pos
,
"Deletion of global C variable"
)
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
elif
arg
.
type
.
is_ptr
and
arg
.
type
.
base_type
.
is_cpp_class
:
self
.
cpp_check
(
env
)
self
.
cpp_check
(
env
)
elif
arg
.
type
.
is_struct_or_union
and
arg
.
type
.
nogil
:
pass
# del nogil extension
elif
arg
.
type
.
is_cpp_class
:
elif
arg
.
type
.
is_cpp_class
:
error
(
arg
.
pos
,
"Deletion of non-heap C++ object"
)
error
(
arg
.
pos
,
"Deletion of non-heap C++ object"
)
elif
arg
.
is_subscript
and
arg
.
base
.
type
is
Builtin
.
bytearray_type
:
elif
arg
.
is_subscript
and
arg
.
base
.
type
is
Builtin
.
bytearray_type
:
...
@@ -6011,11 +6009,7 @@ class DelStatNode(StatNode):
...
@@ -6011,11 +6009,7 @@ class DelStatNode(StatNode):
arg
.
generate_evaluation_code
(
code
)
arg
.
generate_evaluation_code
(
code
)
code
.
putln
(
"delete %s;"
%
arg
.
result
())
code
.
putln
(
"delete %s;"
%
arg
.
result
())
arg
.
generate_disposal_code
(
code
)
arg
.
generate_disposal_code
(
code
)
elif
arg
.
type
.
is_struct_or_union
and
hasattr
(
arg
.
type
,
"nogil"
)
and
arg
.
type
.
nogil
:
# else error reported earlier
# Whenever there will be a proper GC:
code
.
putln
(
"Cy_DECREF(%s);"
%
arg
.
result
())
#code.putln("free(&%s);" % arg.result())
# else error reported earlier
def
annotate
(
self
,
code
):
def
annotate
(
self
,
code
):
for
arg
in
self
.
args
:
for
arg
in
self
.
args
:
...
...
This diff is collapsed.
Click to expand it.
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