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
fa9c5bd1
Commit
fa9c5bd1
authored
Oct 14, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compiler crash on .pxd file processing
parent
016d0ea8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Cython/Compiler/CodeGeneration.py
Cython/Compiler/CodeGeneration.py
+5
-1
Cython/Compiler/Pipeline.py
Cython/Compiler/Pipeline.py
+1
-1
No files found.
Cython/Compiler/CodeGeneration.py
View file @
fa9c5bd1
...
@@ -3,7 +3,7 @@ from Cython.Compiler.ModuleNode import ModuleNode
...
@@ -3,7 +3,7 @@ from Cython.Compiler.ModuleNode import ModuleNode
from
Cython.Compiler.Nodes
import
*
from
Cython.Compiler.Nodes
import
*
from
Cython.Compiler.ExprNodes
import
*
from
Cython.Compiler.ExprNodes
import
*
class
ExtractPxdCode
(
Cython
Transform
):
class
ExtractPxdCode
(
Visitor
Transform
):
"""
"""
Finds nodes in a pxd file that should generate code, and
Finds nodes in a pxd file that should generate code, and
returns them in a StatListNode.
returns them in a StatListNode.
...
@@ -28,3 +28,7 @@ class ExtractPxdCode(CythonTransform):
...
@@ -28,3 +28,7 @@ class ExtractPxdCode(CythonTransform):
# Do not visit children, nested funcdefnodes will
# Do not visit children, nested funcdefnodes will
# also be moved by this action...
# also be moved by this action...
return
node
return
node
def
visit_Node
(
self
,
node
):
self
.
visitchildren
(
node
)
return
node
Cython/Compiler/Pipeline.py
View file @
fa9c5bd1
...
@@ -232,7 +232,7 @@ def create_pxd_pipeline(context, scope, module_name):
...
@@ -232,7 +232,7 @@ def create_pxd_pipeline(context, scope, module_name):
return
[
return
[
parse_pxd_stage_factory
(
context
,
scope
,
module_name
)
parse_pxd_stage_factory
(
context
,
scope
,
module_name
)
]
+
create_pipeline
(
context
,
'pxd'
)
+
[
]
+
create_pipeline
(
context
,
'pxd'
)
+
[
ExtractPxdCode
(
context
)
ExtractPxdCode
()
]
]
def
create_py_pipeline
(
context
,
options
,
result
):
def
create_py_pipeline
(
context
,
options
,
result
):
...
...
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