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
1139758c
Commit
1139758c
authored
Jul 14, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed func(int[])-notation
parent
da5c4e10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-3
tests/compile/carrdecl.pyx
tests/compile/carrdecl.pyx
+2
-0
No files found.
Cython/Compiler/Parsing.py
View file @
1139758c
...
...
@@ -1613,9 +1613,7 @@ def p_c_simple_base_type(s, self_flag, nonempty):
# Treat trailing [] on type as buffer access
if
0
:
# s.sy == '[':
if
is_basic
:
s
.
error
(
"Basic C types do not support buffer access"
)
if
not
is_basic
and
s
.
sy
==
'['
:
return
p_buffer_access
(
s
,
type_node
)
else
:
return
type_node
...
...
tests/compile/carrdecl.pyx
0 → 100644
View file @
1139758c
cdef
extern
:
cdef
func
(
int
[])
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