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
ae8d0889
Commit
ae8d0889
authored
Nov 26, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unknown names in Nodes.py
parent
b17d50ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+4
-4
No files found.
Cython/Compiler/Nodes.py
View file @
ae8d0889
...
@@ -949,7 +949,7 @@ class CVarDefNode(StatNode):
...
@@ -949,7 +949,7 @@ class CVarDefNode(StatNode):
entry
.
directive_locals
=
self
.
directive_locals
entry
.
directive_locals
=
self
.
directive_locals
else
:
else
:
if
self
.
directive_locals
:
if
self
.
directive_locals
:
s
.
error
(
"Decorators can only be followed by functions"
)
error
(
self
.
pos
,
"Decorators can only be followed by functions"
)
if
self
.
in_pxd
and
self
.
visibility
!=
'extern'
:
if
self
.
in_pxd
and
self
.
visibility
!=
'extern'
:
error
(
self
.
pos
,
error
(
self
.
pos
,
"Only 'extern' C variable declaration allowed in .pxd file"
)
"Only 'extern' C variable declaration allowed in .pxd file"
)
...
@@ -3215,7 +3215,7 @@ class CClassDefNode(ClassDefNode):
...
@@ -3215,7 +3215,7 @@ class CClassDefNode(ClassDefNode):
api
=
self
.
api
,
api
=
self
.
api
,
buffer_defaults
=
buffer_defaults
)
buffer_defaults
=
buffer_defaults
)
if
home_scope
is
not
env
and
self
.
visibility
==
'extern'
:
if
home_scope
is
not
env
and
self
.
visibility
==
'extern'
:
env
.
add_imported_entry
(
self
.
class_name
,
self
.
entry
,
pos
)
env
.
add_imported_entry
(
self
.
class_name
,
self
.
entry
,
self
.
pos
)
self
.
scope
=
scope
=
self
.
entry
.
type
.
scope
self
.
scope
=
scope
=
self
.
entry
.
type
.
scope
if
scope
is
not
None
:
if
scope
is
not
None
:
scope
.
directives
=
env
.
directives
scope
.
directives
=
env
.
directives
...
@@ -3383,7 +3383,7 @@ class SingleAssignmentNode(AssignmentNode):
...
@@ -3383,7 +3383,7 @@ class SingleAssignmentNode(AssignmentNode):
if
func_name
in
[
'declare'
,
'typedef'
]:
if
func_name
in
[
'declare'
,
'typedef'
]:
if
len
(
args
)
>
2
or
kwds
is
not
None
:
if
len
(
args
)
>
2
or
kwds
is
not
None
:
error
(
rhs
.
pos
,
"Can only declare one type at a time."
)
error
(
self
.
rhs
.
pos
,
"Can only declare one type at a time."
)
return
return
type
=
args
[
0
].
analyse_as_type
(
env
)
type
=
args
[
0
].
analyse_as_type
(
env
)
if
type
is
None
:
if
type
is
None
:
...
@@ -3414,7 +3414,7 @@ class SingleAssignmentNode(AssignmentNode):
...
@@ -3414,7 +3414,7 @@ class SingleAssignmentNode(AssignmentNode):
elif
func_name
in
[
'struct'
,
'union'
]:
elif
func_name
in
[
'struct'
,
'union'
]:
self
.
declaration_only
=
True
self
.
declaration_only
=
True
if
len
(
args
)
>
0
or
kwds
is
None
:
if
len
(
args
)
>
0
or
kwds
is
None
:
error
(
rhs
.
pos
,
"Struct or union members must be given by name."
)
error
(
self
.
rhs
.
pos
,
"Struct or union members must be given by name."
)
return
return
members
=
[]
members
=
[]
for
member
,
type_node
in
kwds
.
key_value_pairs
:
for
member
,
type_node
in
kwds
.
key_value_pairs
:
...
...
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