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
1f2c8742
Commit
1f2c8742
authored
Aug 13, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More explicit TODOs.
parent
15613e7c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
1f2c8742
...
@@ -3928,7 +3928,7 @@ class UnopNode(ExprNode):
...
@@ -3928,7 +3928,7 @@ class UnopNode(ExprNode):
"++"
:
u"__inc__"
,
"++"
:
u"__inc__"
,
"--"
:
u"__dec__"
,
"--"
:
u"__dec__"
,
"*"
:
u"__deref__"
,
"*"
:
u"__deref__"
,
"!"
:
u"__not__"
"!"
:
u"__not__"
# TODO(danilo): Also handle in NotNode.
}
}
...
...
Cython/Compiler/PyrexTypes.py
View file @
1f2c8742
...
@@ -109,6 +109,7 @@ class PyrexType(BaseType):
...
@@ -109,6 +109,7 @@ class PyrexType(BaseType):
return
self
return
self
def
specialize
(
self
,
values
):
def
specialize
(
self
,
values
):
# TODO(danilo): Override wherever it makes sense.
return
self
return
self
def
literal_code
(
self
,
value
):
def
literal_code
(
self
,
value
):
...
@@ -1396,7 +1397,6 @@ class CppClassType(CType):
...
@@ -1396,7 +1397,6 @@ class CppClassType(CType):
self
.
template_type
=
template_type
self
.
template_type
=
template_type
def
specialize_here
(
self
,
pos
,
template_values
=
None
):
def
specialize_here
(
self
,
pos
,
template_values
=
None
):
# TODO: cache for efficiency
if
self
.
templates
is
None
:
if
self
.
templates
is
None
:
error
(
pos
,
"'%s' type is not a template"
%
self
);
error
(
pos
,
"'%s' type is not a template"
%
self
);
return
PyrexTypes
.
error_type
return
PyrexTypes
.
error_type
...
@@ -1407,7 +1407,7 @@ class CppClassType(CType):
...
@@ -1407,7 +1407,7 @@ class CppClassType(CType):
return
self
.
specialize
(
dict
(
zip
(
self
.
templates
,
template_values
)))
return
self
.
specialize
(
dict
(
zip
(
self
.
templates
,
template_values
)))
def
specialize
(
self
,
values
):
def
specialize
(
self
,
values
):
# TODO
: cache for efficiency
# TODO
(danilo): Cache for efficiency.
template_values
=
[
t
.
specialize
(
values
)
for
t
in
self
.
templates
]
template_values
=
[
t
.
specialize
(
values
)
for
t
in
self
.
templates
]
return
CppClassType
(
self
.
name
,
self
.
scope
.
specialize
(
values
),
self
.
cname
,
self
.
base_classes
,
return
CppClassType
(
self
.
name
,
self
.
scope
.
specialize
(
values
),
self
.
cname
,
self
.
base_classes
,
template_values
,
template_type
=
self
)
template_values
,
template_type
=
self
)
...
@@ -1425,7 +1425,7 @@ class CppClassType(CType):
...
@@ -1425,7 +1425,7 @@ class CppClassType(CType):
return
"%s %s%s"
%
(
name
,
entity_code
,
templates
)
return
"%s %s%s"
%
(
name
,
entity_code
,
templates
)
def
is_subclass
(
self
,
other_type
):
def
is_subclass
(
self
,
other_type
):
# TODO
: handle templates
# TODO
(danilo): Handle templates.
if
self
.
same_as_resolved_type
(
other_type
):
if
self
.
same_as_resolved_type
(
other_type
):
return
1
return
1
for
base_class
in
self
.
base_classes
:
for
base_class
in
self
.
base_classes
:
...
...
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