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
7fdf5d61
Commit
7fdf5d61
authored
Aug 05, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed another bug with [] indexing
parent
06a30603
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
tests/compile/arrayargs.pyx
tests/compile/arrayargs.pyx
+6
-0
No files found.
Cython/Compiler/Parsing.py
View file @
7fdf5d61
...
@@ -1629,7 +1629,7 @@ def p_buffer_access(s, base_type_node):
...
@@ -1629,7 +1629,7 @@ def p_buffer_access(s, base_type_node):
# s.sy == '['
# s.sy == '['
pos
=
s
.
position
()
pos
=
s
.
position
()
s
.
next
()
s
.
next
()
if
s
.
sy
==
']'
:
if
s
.
sy
==
']'
or
s
.
sy
==
'INT'
:
# not buffer, could be [] on C type nameless array arguments
# not buffer, could be [] on C type nameless array arguments
s
.
put_back
(
'['
,
'['
)
s
.
put_back
(
'['
,
'['
)
return
base_type_node
return
base_type_node
...
...
tests/compile/arrayargs.pyx
View file @
7fdf5d61
...
@@ -11,3 +11,9 @@ cdef extern from *:
...
@@ -11,3 +11,9 @@ cdef extern from *:
ctypedef
MyStruct
*
MyStructP
ctypedef
MyStruct
*
MyStructP
cdef
void
baz
(
MyStructP
[])
cdef
void
baz
(
MyStructP
[])
cdef
struct
OtherStruct
:
int
a
a
=
sizeof
(
int
[
23
][
34
])
b
=
sizeof
(
OtherStruct
[
43
])
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