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
d34a5f7e
Commit
d34a5f7e
authored
Aug 01, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dead code
parent
47563ef6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+0
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+0
-27
No files found.
Cython/Compiler/Main.py
View file @
d34a5f7e
...
@@ -110,11 +110,9 @@ class Context:
...
@@ -110,11 +110,9 @@ class Context:
return
result
return
result
def
inject_pxd_code
(
module_node
):
def
inject_pxd_code
(
module_node
):
from
Nodes
import
CCommentNode
from
textwrap
import
dedent
from
textwrap
import
dedent
stats
=
module_node
.
body
.
stats
stats
=
module_node
.
body
.
stats
for
name
,
(
statlistnode
,
scope
)
in
self
.
pxds
.
iteritems
():
for
name
,
(
statlistnode
,
scope
)
in
self
.
pxds
.
iteritems
():
#stats.append(CCommentNode('Code from cimported "%s"' % name, header=True))
stats
.
append
(
statlistnode
)
stats
.
append
(
statlistnode
)
return
module_node
return
module_node
...
...
Cython/Compiler/Nodes.py
View file @
d34a5f7e
...
@@ -3875,33 +3875,6 @@ class FromImportStatNode(StatNode):
...
@@ -3875,33 +3875,6 @@ class FromImportStatNode(StatNode):
self
.
module
.
generate_disposal_code
(
code
)
self
.
module
.
generate_disposal_code
(
code
)
class
CForeignScopeNode
(
StatNode
):
"""
Used for wrapping FuncDefNodes from pxds so that they generate their
code in the right scope.
"""
pass
class
CCommentNode
(
StatNode
):
# not working!
def
__init__
(
self
,
comment
,
header
=
False
):
self
.
pos
assert
'/'
not
in
comment
# todo: better escaping
if
header
:
from
textwrap
import
dedent
comment
=
dedent
(
"""
/*
* %s
*/
"""
)
%
comment
else
:
comment
=
"/* %s */"
%
comment
self
.
comment
=
comment
def
generate_execution_code
(
self
,
code
):
code
.
putln
(
self
.
header
)
#------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------
#
#
# Runtime support code
# Runtime support code
...
...
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