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
9f1e12bf
Commit
9f1e12bf
authored
Aug 22, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove compiler warning about unused helper function
parent
62f6c827
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-1
No files found.
Cython/Compiler/Nodes.py
View file @
9f1e12bf
...
@@ -1336,7 +1336,6 @@ class DefNode(FuncDefNode):
...
@@ -1336,7 +1336,6 @@ class DefNode(FuncDefNode):
self
.
declare_pyfunction
(
env
)
self
.
declare_pyfunction
(
env
)
self
.
analyse_signature
(
env
)
self
.
analyse_signature
(
env
)
self
.
return_type
=
self
.
entry
.
signature
.
return_type
()
self
.
return_type
=
self
.
entry
.
signature
.
return_type
()
env
.
use_utility_code
(
raise_argtuple_invalid_utility_code
)
env
.
use_utility_code
(
raise_keyword_required_utility_code
)
env
.
use_utility_code
(
raise_keyword_required_utility_code
)
if
self
.
num_required_kw_args
:
if
self
.
num_required_kw_args
:
env
.
use_utility_code
(
check_required_keywords_utility_code
)
env
.
use_utility_code
(
check_required_keywords_utility_code
)
...
@@ -1836,6 +1835,7 @@ class DefNode(FuncDefNode):
...
@@ -1836,6 +1835,7 @@ class DefNode(FuncDefNode):
code
.
putln
(
'}'
)
code
.
putln
(
'}'
)
else
:
else
:
# check if we have all required positional arguments
# check if we have all required positional arguments
code
.
globalstate
.
use_utility_code
(
raise_argtuple_invalid_utility_code
)
exact_count
=
not
self
.
star_arg
and
min_positional_args
==
max_positional_args
exact_count
=
not
self
.
star_arg
and
min_positional_args
==
max_positional_args
code
.
putln
(
'} else if (unlikely(PyTuple_GET_SIZE(%s) < %d)) {'
%
(
code
.
putln
(
'} else if (unlikely(PyTuple_GET_SIZE(%s) < %d)) {'
%
(
Naming
.
args_cname
,
min_positional_args
))
Naming
.
args_cname
,
min_positional_args
))
...
@@ -1863,6 +1863,7 @@ class DefNode(FuncDefNode):
...
@@ -1863,6 +1863,7 @@ class DefNode(FuncDefNode):
has_fixed_pos_count
,
code
):
has_fixed_pos_count
,
code
):
# make sure supernumerous positional arguments do not run
# make sure supernumerous positional arguments do not run
# into keyword-only arguments and provide a helpful message
# into keyword-only arguments and provide a helpful message
code
.
globalstate
.
use_utility_code
(
raise_argtuple_invalid_utility_code
)
code
.
putln
(
"if (unlikely(PyTuple_GET_SIZE(%s) > %d)) {"
%
(
code
.
putln
(
"if (unlikely(PyTuple_GET_SIZE(%s) > %d)) {"
%
(
Naming
.
args_cname
,
max_positional_args
))
Naming
.
args_cname
,
max_positional_args
))
code
.
putln
(
'__Pyx_RaiseArgtupleInvalid("%s", %d, 0, %d, PyTuple_GET_SIZE(%s));'
%
(
code
.
putln
(
'__Pyx_RaiseArgtupleInvalid("%s", %d, 0, %d, PyTuple_GET_SIZE(%s));'
%
(
...
...
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