summaryrefslogtreecommitdiffstats
path: root/PC/clinic/msvcrtmodule.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 22:51:22 (GMT)
committerGitHub <noreply@github.com>2023-08-24 22:51:22 (GMT)
commit4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (patch)
tree31cacab08c7168e0868d6231a70b4a679fffdf58 /PC/clinic/msvcrtmodule.c.h
parentbe800f4be78106d7566c694b3a5652761798db96 (diff)
downloadcpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.zip
cpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.tar.gz
cpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.tar.bz2
gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)
Argument Clinic now uses the new public PyLong_AsInt(), rather than the old name _PyLong_AsInt().
Diffstat (limited to 'PC/clinic/msvcrtmodule.c.h')
-rw-r--r--PC/clinic/msvcrtmodule.c.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/PC/clinic/msvcrtmodule.c.h b/PC/clinic/msvcrtmodule.c.h
index 94e1730..af6710a 100644
--- a/PC/clinic/msvcrtmodule.c.h
+++ b/PC/clinic/msvcrtmodule.c.h
@@ -59,11 +59,11 @@ msvcrt_locking(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
if (!_PyArg_CheckPositional("locking", nargs, 3, 3)) {
goto exit;
}
- fd = _PyLong_AsInt(args[0]);
+ fd = PyLong_AsInt(args[0]);
if (fd == -1 && PyErr_Occurred()) {
goto exit;
}
- mode = _PyLong_AsInt(args[1]);
+ mode = PyLong_AsInt(args[1]);
if (mode == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -105,11 +105,11 @@ msvcrt_setmode(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
if (!_PyArg_CheckPositional("setmode", nargs, 2, 2)) {
goto exit;
}
- fd = _PyLong_AsInt(args[0]);
+ fd = PyLong_AsInt(args[0]);
if (fd == -1 && PyErr_Occurred()) {
goto exit;
}
- flags = _PyLong_AsInt(args[1]);
+ flags = PyLong_AsInt(args[1]);
if (flags == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -154,7 +154,7 @@ msvcrt_open_osfhandle(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
if (!handle && PyErr_Occurred()) {
goto exit;
}
- flags = _PyLong_AsInt(args[1]);
+ flags = PyLong_AsInt(args[1]);
if (flags == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -189,7 +189,7 @@ msvcrt_get_osfhandle(PyObject *module, PyObject *arg)
int fd;
void *_return_value;
- fd = _PyLong_AsInt(arg);
+ fd = PyLong_AsInt(arg);
if (fd == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -514,7 +514,7 @@ msvcrt_CrtSetReportFile(PyObject *module, PyObject *const *args, Py_ssize_t narg
if (!_PyArg_CheckPositional("CrtSetReportFile", nargs, 2, 2)) {
goto exit;
}
- type = _PyLong_AsInt(args[0]);
+ type = PyLong_AsInt(args[0]);
if (type == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -561,11 +561,11 @@ msvcrt_CrtSetReportMode(PyObject *module, PyObject *const *args, Py_ssize_t narg
if (!_PyArg_CheckPositional("CrtSetReportMode", nargs, 2, 2)) {
goto exit;
}
- type = _PyLong_AsInt(args[0]);
+ type = PyLong_AsInt(args[0]);
if (type == -1 && PyErr_Occurred()) {
goto exit;
}
- mode = _PyLong_AsInt(args[1]);
+ mode = PyLong_AsInt(args[1]);
if (mode == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -604,7 +604,7 @@ msvcrt_set_error_mode(PyObject *module, PyObject *arg)
int mode;
long _return_value;
- mode = _PyLong_AsInt(arg);
+ mode = PyLong_AsInt(arg);
if (mode == -1 && PyErr_Occurred()) {
goto exit;
}
@@ -701,4 +701,4 @@ exit:
#ifndef MSVCRT_GETERRORMODE_METHODDEF
#define MSVCRT_GETERRORMODE_METHODDEF
#endif /* !defined(MSVCRT_GETERRORMODE_METHODDEF) */
-/*[clinic end generated code: output=9dd12bf210e362a4 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f70de1b6d0e700cd input=a9049054013a1b77]*/