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
d478de19
Commit
d478de19
authored
Jul 09, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
1c7b7b3d
a7cd6f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+8
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
d478de19
...
@@ -2395,7 +2395,9 @@ class SimpleCallNode(CallNode):
...
@@ -2395,7 +2395,9 @@ class SimpleCallNode(CallNode):
actual_nargs
=
len
(
self
.
args
)
actual_nargs
=
len
(
self
.
args
)
possibilities
=
[]
possibilities
=
[]
for
entry
in
entries
:
for
entry
in
entries
:
type
=
entry
.
type
.
base_type
type
=
entry
.
type
if
type
.
is_ptr
:
type
=
type
.
base_type
# Check no. of args
# Check no. of args
max_nargs
=
len
(
type
.
args
)
max_nargs
=
len
(
type
.
args
)
expected_nargs
=
max_nargs
-
type
.
optional_arg_count
expected_nargs
=
max_nargs
-
type
.
optional_arg_count
...
@@ -2422,6 +2424,9 @@ class SimpleCallNode(CallNode):
...
@@ -2422,6 +2424,9 @@ class SimpleCallNode(CallNode):
possibilities
.
sort
()
possibilities
.
sort
()
if
len
(
possibilities
)
>
1
and
possibilities
[
0
][
0
]
==
possibilities
[
1
][
0
]:
if
len
(
possibilities
)
>
1
and
possibilities
[
0
][
0
]
==
possibilities
[
1
][
0
]:
error
(
self
.
pos
,
"Ambiguity found on %s"
%
possibilities
[
0
][
1
].
name
)
error
(
self
.
pos
,
"Ambiguity found on %s"
%
possibilities
[
0
][
1
].
name
)
self
.
args
=
None
self
.
type
=
PyrexTypes
.
error_type
self
.
result_code
=
"<error>"
return
None
return
None
return
possibilities
[
0
][
1
]
return
possibilities
[
0
][
1
]
error
(
self
.
pos
,
error
(
self
.
pos
,
...
@@ -2442,6 +2447,8 @@ class SimpleCallNode(CallNode):
...
@@ -2442,6 +2447,8 @@ class SimpleCallNode(CallNode):
def
analyse_c_function_call
(
self
,
env
):
def
analyse_c_function_call
(
self
,
env
):
entry
=
self
.
best_match
()
entry
=
self
.
best_match
()
if
not
entry
:
return
self
.
function
.
entry
=
entry
self
.
function
.
entry
=
entry
self
.
function
.
type
=
entry
.
type
self
.
function
.
type
=
entry
.
type
func_type
=
self
.
function_type
()
func_type
=
self
.
function_type
()
...
...
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