Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2a8606e0
Commit
2a8606e0
authored
Mar 17, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove PyArg_NoArgs() and PyArg_GetInt()
parent
f975d627
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
Include/Python.h
Include/Python.h
+0
-7
Modules/cstubs
Modules/cstubs
+0
-2
RISCOS/Modules/riscosmodule.c
RISCOS/Modules/riscosmodule.c
+2
-2
No files found.
Include/Python.h
View file @
2a8606e0
...
...
@@ -131,13 +131,6 @@
/* _Py_Mangle is defined in compile.c */
PyAPI_FUNC
(
PyObject
*
)
_Py_Mangle
(
PyObject
*
p
,
PyObject
*
name
);
/* PyArg_GetInt is deprecated and should not be used, use PyArg_Parse(). */
#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
/* PyArg_NoArgs should not be necessary.
Set ml_flags in the PyMethodDef to METH_NOARGS. */
#define PyArg_NoArgs(v) PyArg_Parse(v, "")
/* Convert a possibly signed character to a nonnegative int */
/* XXX This assumes characters are 8 bits wide */
#ifdef __CHAR_UNSIGNED__
...
...
Modules/cstubs
View file @
2a8606e0
...
...
@@ -472,8 +472,6 @@ endpick_select(args, func)
{
PyObject *v, *w;
int i, nhits, n;
if (!PyArg_NoArgs(args))
return NULL;
if (pickbuffer == NULL) {
PyErr_SetString(PyExc_RuntimeError,
"endpick/endselect: not in pick/select mode");
...
...
RISCOS/Modules/riscosmodule.c
View file @
2a8606e0
...
...
@@ -79,7 +79,7 @@ static PyObject *canon(char *path)
}
static
PyObject
*
riscos_getcwd
(
PyObject
*
self
,
PyObject
*
args
)
{
if
(
!
PyArg_NoArgs
(
args
))
return
NULL
;
{
return
canon
(
"@"
);
}
...
...
@@ -354,7 +354,7 @@ static PyMethodDef riscos_methods[] = {
{
"system"
,
riscos_system
},
{
"rmdir"
,
riscos_remove
},
{
"chdir"
,
riscos_chdir
},
{
"getcwd"
,
riscos_getcwd
},
{
"getcwd"
,
riscos_getcwd
,
METH_NOARGS
},
{
"expand"
,
riscos_expand
},
{
"mkdir"
,
riscos_mkdir
,
1
},
{
"listdir"
,
riscos_listdir
},
...
...
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