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
Kirill Smelkov
cython
Commits
e02c446f
Commit
e02c446f
authored
Sep 10, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests after #355
parent
5ce9ee47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-0
tests/errors/e_ctypedefornot.pyx
tests/errors/e_ctypedefornot.pyx
+0
-6
No files found.
Cython/Compiler/Symtab.py
View file @
e02c446f
...
...
@@ -1014,6 +1014,8 @@ class ModuleScope(Scope):
# the non-typedef struct internally to avoid needing forward
# declarations for anonymous structs.
if typedef_flag and visibility != 'extern':
if visibility != 'public':
warning(pos, "
ctypedef
only
valid
for
public
and
extern
classes
", 2)
objtypedef_cname = objstruct_cname
objstruct_cname = None
typedef_flag = 0
...
...
tests/errors/e_ctypedefornot.pyx
View file @
e02c446f
...
...
@@ -8,16 +8,10 @@ ctypedef struct Blarg:
cdef
struct
Blarg
cdef
class
Spam
ctypedef
class
Spam
:
pass
cdef
Foo
f
cdef
Blarg
b
_ERRORS
=
u"""
3:0: 'Foo' previously declared using 'cdef'
9:5: 'Blarg' previously declared using 'ctypedef'
13:0: 'Spam' previously declared using 'cdef'
"""
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