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
28eebe43
Commit
28eebe43
authored
May 23, 2012
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CVarDefNode's in_pxd flag
parent
359d1c70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
No files found.
Cython/Compiler/Nodes.py
View file @
28eebe43
...
...
@@ -1074,7 +1074,8 @@ class CVarDefNode(StatNode):
self
.
dest_scope
=
dest_scope
base_type
=
self
.
base_type
.
analyse
(
env
)
if
base_type
.
is_fused
and
(
env
.
is_c_class_scope
or
env
.
is_module_scope
):
if
base_type
.
is_fused
and
not
self
.
in_pxd
and
(
env
.
is_c_class_scope
or
env
.
is_module_scope
):
error
(
self
.
pos
,
"Fused types not allowed here"
)
return
error_type
...
...
Cython/Compiler/Parsing.py
View file @
28eebe43
...
...
@@ -2734,7 +2734,7 @@ def p_c_func_or_var_declaration(s, pos, ctx):
visibility
=
ctx
.
visibility
,
base_type
=
base_type
,
declarators
=
declarators
,
in_pxd
=
ctx
.
level
==
'module_pxd'
,
in_pxd
=
ctx
.
level
in
(
'module_pxd'
,
'c_class_pxd'
)
,
api
=
ctx
.
api
,
overridable
=
ctx
.
overridable
)
return
result
...
...
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