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
6f1f493d
Commit
6f1f493d
authored
Dec 10, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change glyph for 'iso' viewpoint adaptation
parent
2575a500
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
6f1f493d
...
...
@@ -11392,8 +11392,8 @@ class ConsumeNode(ExprNode):
self
.
type
=
PyrexTypes
.
error_type
return
self
if
operand_type
.
is_qualified_cyp_class
:
if
operand_type
.
qualifier
==
'iso
&
'
:
error
(
self
.
pos
,
"Cannot consume iso
&
"
)
if
operand_type
.
qualifier
==
'iso
->
'
:
error
(
self
.
pos
,
"Cannot consume iso
->
"
)
self
.
type
=
PyrexTypes
.
error_type
return
self
self
.
generate_runtime_check
=
operand_type
.
qualifier
not
in
(
'iso'
,
'iso~'
)
...
...
Cython/Compiler/PyrexTypes.py
View file @
6f1f493d
...
...
@@ -4800,7 +4800,7 @@ class ConstCypclassType(BaseType):
class
QualifiedCypclassType
(
BaseType
):
"A qualified cypclass reference"
# qualifier string the qualifier keyword: ('active' | 'iso' | 'iso~' | 'iso
&
' )
# qualifier string the qualifier keyword: ('active' | 'iso' | 'iso~' | 'iso
->
' )
subtypes
=
[
'qual_base_type'
]
...
...
@@ -4814,7 +4814,7 @@ class QualifiedCypclassType(BaseType):
'active'
:
(
'active'
,
'iso~'
),
'iso'
:
(
'iso~'
,),
'iso~'
:
(),
'iso
&
'
:
(
'iso~'
,),
'iso
->
'
:
(
'iso~'
,),
'locked'
:
(
'locked'
,
'iso~'
),
}
...
...
@@ -5830,7 +5830,7 @@ def qualified_method_type(base_type, const, volatile):
else
:
return
QualifiedMethodType
(
base_type
,
const
,
volatile
)
def
viewpoint_adaptation
(
base_type
,
qualifier
=
'iso
&
'
):
def
viewpoint_adaptation
(
base_type
,
qualifier
=
'iso
->
'
):
# Perform viewpoint adaptation for cypclass types.
if
base_type
.
is_qualified_cyp_class
:
return
base_type
...
...
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