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
Boxiang Sun
cython
Commits
8aeee1c7
Commit
8aeee1c7
authored
Jul 11, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
40175f2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+2
-0
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
8aeee1c7
...
@@ -46,6 +46,8 @@ class NormalizeTree(CythonTransform):
...
@@ -46,6 +46,8 @@ class NormalizeTree(CythonTransform):
self
.
visitchildren
(
node
)
self
.
visitchildren
(
node
)
self
.
is_in_statlist
=
stacktmp
self
.
is_in_statlist
=
stacktmp
if
not
self
.
is_in_statlist
and
not
self
.
is_in_expr
:
if
not
self
.
is_in_statlist
and
not
self
.
is_in_expr
:
if
isinstance
(
node
,
TupleNode
):
print
node
return
StatListNode
(
pos
=
node
.
pos
,
stats
=
[
node
])
return
StatListNode
(
pos
=
node
.
pos
,
stats
=
[
node
])
else
:
else
:
return
node
return
node
...
...
Cython/Compiler/Parsing.py
View file @
8aeee1c7
...
@@ -1615,7 +1615,7 @@ def p_c_simple_base_type(s, self_flag, nonempty):
...
@@ -1615,7 +1615,7 @@ def p_c_simple_base_type(s, self_flag, nonempty):
# Treat trailing [] on type as buffer access
# Treat trailing [] on type as buffer access
if
s
.
sy
==
'['
:
if
s
.
sy
==
'['
:
if
is_basic
:
if
is_basic
:
p
.
error
(
"Basic C types do not support buffer access"
)
s
.
error
(
"Basic C types do not support buffer access"
)
return
p_buffer_access
(
s
,
type_node
)
return
p_buffer_access
(
s
,
type_node
)
else
:
else
:
return
type_node
return
type_node
...
...
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