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
c8019db7
Commit
c8019db7
authored
Nov 01, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/0.17'
parents
d002e2b6
09a5e0fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+8
-2
tests/run/cpp_nested_classes.pyx
tests/run/cpp_nested_classes.pyx
+1
-1
tests/run/cpp_nested_classes_support.h
tests/run/cpp_nested_classes_support.h
+0
-0
tests/run/empty_declarators.pyx
tests/run/empty_declarators.pyx
+6
-0
No files found.
Cython/Compiler/Nodes.py
View file @
c8019db7
...
...
@@ -726,7 +726,13 @@ class CArgDeclNode(Node):
# We fix that here.
if
isinstance
(
self
.
declarator
,
CNameDeclaratorNode
)
and
self
.
declarator
.
name
==
''
:
if
nonempty
:
self
.
declarator
.
name
=
self
.
base_type
.
name
if
self
.
base_type
.
is_basic_c_type
:
# char, short, long called "int"
type
=
self
.
base_type
.
analyse
(
env
,
could_be_name
=
True
)
arg_name
=
type
.
declaration_code
(
""
)
else
:
arg_name
=
self
.
base_type
.
name
self
.
declarator
.
name
=
EncodedString
(
arg_name
)
self
.
base_type
.
name
=
None
self
.
base_type
.
is_basic_c_type
=
False
could_be_name
=
True
...
...
@@ -870,7 +876,7 @@ class CSimpleBaseTypeNode(CBaseTypeNode):
## type = Builtin.type_type
else
:
type
=
py_object_type
self
.
arg_name
=
self
.
name
self
.
arg_name
=
EncodedString
(
self
.
name
)
else
:
if
self
.
templates
:
if
not
self
.
name
in
self
.
templates
:
...
...
tests/run/cpp_nested_classes.pyx
View file @
c8019db7
# tag: cpp
cdef
extern
from
"cpp_nested_classes_support.
cpp
"
:
cdef
extern
from
"cpp_nested_classes_support.
h
"
:
cdef
cppclass
A
:
cppclass
B
:
int
square
(
int
)
...
...
tests/run/cpp_nested_classes_support.
cpp
→
tests/run/cpp_nested_classes_support.
h
View file @
c8019db7
File moved
tests/run/empty_declarators.pyx
0 → 100644
View file @
c8019db7
cpdef
zed
(
short
,
long
,
complex
,
x
):
"""
>>> zed(short=1, long=2, complex=3, x=4)
(1, 2, 3, 4)
"""
return
short
,
long
,
complex
,
x
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