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
1c40290b
Commit
1c40290b
authored
Jun 06, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code comments
parent
b595d5b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
1c40290b
...
@@ -363,12 +363,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -363,12 +363,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
generate_declarations_for_modules
(
self
,
env
,
modules
,
code
):
def
generate_declarations_for_modules
(
self
,
env
,
modules
,
code
):
code
.
putln
(
""
)
code
.
putln
(
""
)
code
.
putln
(
"/*
D
eclarations */"
)
code
.
putln
(
"/*
Type d
eclarations */"
)
vtab_list
,
vtabslot_list
=
self
.
sort_type_hierarchy
(
modules
,
env
)
vtab_list
,
vtabslot_list
=
self
.
sort_type_hierarchy
(
modules
,
env
)
self
.
generate_type_definitions
(
self
.
generate_type_definitions
(
env
,
modules
,
vtab_list
,
vtabslot_list
,
code
)
env
,
modules
,
vtab_list
,
vtabslot_list
,
code
)
for
module
in
modules
:
for
module
in
modules
:
defined_here
=
module
is
env
defined_here
=
module
is
env
code
.
putln
(
"/* Module declarations from %s */"
%
module
.
qualified_name
.
encode
(
"ASCII"
,
"ignore"
))
self
.
generate_global_declarations
(
module
,
code
,
defined_here
)
self
.
generate_global_declarations
(
module
,
code
,
defined_here
)
self
.
generate_cfunction_predeclarations
(
module
,
code
,
defined_here
)
self
.
generate_cfunction_predeclarations
(
module
,
code
,
defined_here
)
...
...
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