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
1a40a607
Commit
1a40a607
authored
May 29, 2011
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from vitek/control_flow_fixes
Control flow fixes
parents
8e821645
7fee4e82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Cython/Compiler/FlowControl.py
Cython/Compiler/FlowControl.py
+6
-0
No files found.
Cython/Compiler/FlowControl.py
View file @
1a40a607
...
@@ -576,6 +576,11 @@ class CreateControlFlowGraph(CythonTransform):
...
@@ -576,6 +576,11 @@ class CreateControlFlowGraph(CythonTransform):
self
.
stack
.
append
(
self
.
flow
)
self
.
stack
.
append
(
self
.
flow
)
self
.
flow
=
ControlFlow
()
self
.
flow
=
ControlFlow
()
# Collect all entries
for
entry
in
node
.
local_scope
.
entries
.
values
():
if
self
.
flow
.
is_tracked
(
entry
):
self
.
flow
.
entries
.
add
(
entry
)
self
.
mark_position
(
node
)
self
.
mark_position
(
node
)
# Function body block
# Function body block
self
.
flow
.
nextblock
()
self
.
flow
.
nextblock
()
...
@@ -948,6 +953,7 @@ class CreateControlFlowGraph(CythonTransform):
...
@@ -948,6 +953,7 @@ class CreateControlFlowGraph(CythonTransform):
def
visit_RaiseStatNode
(
self
,
node
):
def
visit_RaiseStatNode
(
self
,
node
):
self
.
mark_position
(
node
)
self
.
mark_position
(
node
)
self
.
visitchildren
(
node
)
if
self
.
flow
.
exceptions
:
if
self
.
flow
.
exceptions
:
self
.
flow
.
block
.
add_child
(
self
.
flow
.
exceptions
[
-
1
].
entry_point
)
self
.
flow
.
block
.
add_child
(
self
.
flow
.
exceptions
[
-
1
].
entry_point
)
self
.
flow
.
block
=
None
self
.
flow
.
block
=
None
...
...
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