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
ee2e8b84
Commit
ee2e8b84
authored
Jul 20, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix template parsing
parent
802508cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/Parsing.pxd
Cython/Compiler/Parsing.pxd
+2
-0
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+2
-1
No files found.
Cython/Compiler/Parsing.pxd
View file @
ee2e8b84
...
...
@@ -131,6 +131,8 @@ cdef p_calling_convention(PyrexScanner s)
cdef
p_c_complex_base_type
(
PyrexScanner
s
)
cpdef
p_c_simple_base_type
(
PyrexScanner
s
,
bint
self_flag
,
bint
nonempty
,
templates
=
*
)
cdef
p_buffer_or_template
(
PyrexScanner
s
,
base_type_node
,
templates
)
cdef
is_memoryviewslice_access
(
PyrexScanner
s
)
cdef
p_memoryviewslice_access
(
PyrexScanner
s
,
base_type_node
)
cdef
bint
looking_at_name
(
PyrexScanner
s
)
except
-
2
cdef
bint
looking_at_expr
(
PyrexScanner
s
)
except
-
2
cdef
bint
looking_at_base_type
(
PyrexScanner
s
)
except
-
2
...
...
Cython/Compiler/Parsing.py
View file @
ee2e8b84
...
...
@@ -2048,7 +2048,8 @@ def p_bracketed_base_type(s, base_type_node, nonempty, empty):
if
is_memoryviewslice_access
(
s
):
return
p_memoryviewslice_access
(
s
,
base_type_node
)
else
:
return
p_buffer_access
(
s
,
base_type_node
)
return
p_buffer_or_template
(
s
,
base_type_node
,
None
)
# return p_buffer_access(s, base_type_node)
elif
not
empty
and
not
nonempty
:
# only anonymous C arrays and memoryview slice arrays here. We
# disallow buffer declarations for now, due to ambiguity with anonymous
...
...
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