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
Gwenaël Samain
cython
Commits
8c7c68b3
Commit
8c7c68b3
authored
May 06, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use unique 'objstruct_cname' instead of 'name' when sorting extension types
parent
d0ac21a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+6
-5
No files found.
Cython/Compiler/ModuleNode.py
View file @
8c7c68b3
...
...
@@ -7,7 +7,8 @@ cython.declare(Naming=object, Options=object, PyrexTypes=object, TypeSlots=objec
error
=
object
,
warning
=
object
,
py_object_type
=
object
,
UtilityCode
=
object
,
EncodedString
=
object
)
import
os
,
time
import
os
import
operator
from
PyrexTypes
import
CPtrType
import
Future
...
...
@@ -457,12 +458,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
return
(
vtab_list
,
vtabslot_list
)
def
sort_cdef_classes
(
self
,
env
):
key_func
=
operator
.
attrgetter
(
'objstruct_cname'
)
entry_dict
=
{}
for
entry
in
env
.
c_class_entries
:
entry_dict
[
entry
.
name
]
=
entry
def
entry_name
(
entry
):
return
entry
.
name
env
.
c_class_entries
[:]
=
self
.
sort_types_by_inheritance
(
entry_dict
,
entry_name
)
entry_dict
[
key_func
(
entry
.
type
)]
=
entry
env
.
c_class_entries
[:]
=
self
.
sort_types_by_inheritance
(
entry_dict
,
key_func
)
def
generate_type_definitions
(
self
,
env
,
modules
,
vtab_list
,
vtabslot_list
,
code
):
# TODO: Why are these separated out?
...
...
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