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
Kirill Smelkov
cython
Commits
96945dd7
Commit
96945dd7
authored
Apr 03, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes
parent
df6713cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+6
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
96945dd7
...
...
@@ -870,8 +870,6 @@ class NameNode(AtomicExprNode):
def
check_identifier_kind
(
self
):
#print "NameNode.check_identifier_kind:", self.entry.name ###
#print self.entry.__dict__ ###
print
self
print
self
.
pos
,
self
.
name
entry
=
self
.
entry
#entry.used = 1
if
not
(
entry
.
is_const
or
entry
.
is_variable
...
...
Cython/Compiler/ModuleNode.py
View file @
96945dd7
...
...
@@ -255,7 +255,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self
.
generate_filename_table
(
code
)
self
.
generate_utility_functions
(
env
,
code
)
self
.
generate_declarations_for_module
(
env
,
modules
,
code
.
h
)
self
.
generate_declarations_for_module
s
(
env
,
modules
,
code
.
h
)
f
=
open_new_file
(
result
.
c_file
)
f
.
write
(
code
.
h
.
f
.
getvalue
())
...
...
@@ -440,7 +440,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self
.
generate_exttype_vtable_struct
(
entry
,
code
)
self
.
generate_exttype_vtabptr_declaration
(
entry
,
code
)
def
generate_declarations_for_module
(
self
,
env
,
modules
,
code
):
def
generate_declarations_for_module
s
(
self
,
env
,
modules
,
code
):
code
.
putln
(
""
)
code
.
putln
(
"/* Declarations */"
)
vtab_dict
=
self
.
generate_vtab_dict
(
modules
)
...
...
Cython/Compiler/Nodes.py
View file @
96945dd7
...
...
@@ -3043,6 +3043,12 @@ class ForFromStatNode(LoopNode, StatNode):
# py_loopvar_node PyTempNode or None
child_attrs
=
[
"target"
,
"bound1"
,
"bound2"
,
"step"
,
"body"
,
"else_clause"
,
"py_loopvar_node"
]
def
analyse_declarations
(
self
,
env
):
self
.
target
.
analyse_target_declaration
(
env
)
self
.
body
.
analyse_declarations
(
env
)
if
self
.
else_clause
:
self
.
else_clause
.
analyse_declarations
(
env
)
def
analyse_expressions
(
self
,
env
):
import
ExprNodes
self
.
target
.
analyse_target_types
(
env
)
...
...
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