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
55ac39ee
Commit
55ac39ee
authored
Nov 27, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken error reporting for functions in pxds
parent
5748aa14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+0
-1
tests/errors/e_func_in_pxd.pyx
tests/errors/e_func_in_pxd.pyx
+5
-0
tests/errors/e_func_in_pxd_support.pxd
tests/errors/e_func_in_pxd_support.pxd
+2
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
55ac39ee
...
...
@@ -239,7 +239,6 @@ class PxdPostParse(CythonTransform):
ok
=
True
for
stat
in
node
.
body
.
stats
:
if
not
isinstance
(
stat
,
CVarDefNode
):
self
.
context
.
error
(
"C function definition not allowed here"
)
ok
=
False
break
node
=
CVarDefNode
(
node
.
pos
,
...
...
tests/errors/e_func_in_pxd.pyx
0 → 100644
View file @
55ac39ee
cimport
e_func_in_pxd_support
_ERRORS
=
u"""
1:5: function definition not allowed here
"""
tests/errors/e_func_in_pxd_support.pxd
0 → 100644
View file @
55ac39ee
cdef
foo
():
return
1
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