mirror of https://github.com/python/cpython
gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)
Argument Clinic now uses the new public PyLong_AsInt(), rather than the old name _PyLong_AsInt().
This commit is contained in:
parent
be800f4be7
commit
4e5a7284ee
|
@ -473,7 +473,7 @@ test_bool_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
c = _PyLong_AsInt(args[2]);
|
||||
c = PyLong_AsInt(args[2]);
|
||||
if (c == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -486,7 +486,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
test_bool_converter_impl(PyObject *module, int a, int b, int c)
|
||||
/*[clinic end generated code: output=27f0e653a70b9be3 input=939854fa9f248c60]*/
|
||||
/*[clinic end generated code: output=3190e46490de0644 input=939854fa9f248c60]*/
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -1009,14 +1009,14 @@ test_int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
a = _PyLong_AsInt(args[0]);
|
||||
a = PyLong_AsInt(args[0]);
|
||||
if (a == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
b = _PyLong_AsInt(args[1]);
|
||||
b = PyLong_AsInt(args[1]);
|
||||
if (b == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1035,7 +1035,7 @@ test_int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 4) {
|
||||
goto skip_optional;
|
||||
}
|
||||
d = _PyLong_AsInt(args[3]);
|
||||
d = PyLong_AsInt(args[3]);
|
||||
if (d == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1048,7 +1048,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
test_int_converter_impl(PyObject *module, int a, int b, int c, myenum d)
|
||||
/*[clinic end generated code: output=375eedba5ca9a5b3 input=d20541fc1ca0553e]*/
|
||||
/*[clinic end generated code: output=5aed87a7589eefb2 input=d20541fc1ca0553e]*/
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -4509,7 +4509,7 @@ Test_cls_with_param(TestObj *self, PyTypeObject *cls, PyObject *const *args, Py_
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
a = _PyLong_AsInt(args[0]);
|
||||
a = PyLong_AsInt(args[0]);
|
||||
if (a == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4521,7 +4521,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
Test_cls_with_param_impl(TestObj *self, PyTypeObject *cls, int a)
|
||||
/*[clinic end generated code: output=00218e7f583e6c81 input=af158077bd237ef9]*/
|
||||
/*[clinic end generated code: output=d89b99e83d442be0 input=af158077bd237ef9]*/
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -4703,7 +4703,7 @@ Test_an_metho_arg_named_arg(TestObj *self, PyObject *arg_)
|
|||
PyObject *return_value = NULL;
|
||||
int arg;
|
||||
|
||||
arg = _PyLong_AsInt(arg_);
|
||||
arg = PyLong_AsInt(arg_);
|
||||
if (arg == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4715,7 +4715,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
Test_an_metho_arg_named_arg_impl(TestObj *self, int arg)
|
||||
/*[clinic end generated code: output=7d590626642194ae input=2a53a57cf5624f95]*/
|
||||
/*[clinic end generated code: output=9f04de4a62287e28 input=2a53a57cf5624f95]*/
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
|
@ -5062,7 +5062,7 @@ mangled_c_keyword_identifier(PyObject *module, PyObject *const *args, Py_ssize_t
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
int_value = _PyLong_AsInt(args[0]);
|
||||
int_value = PyLong_AsInt(args[0]);
|
||||
if (int_value == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -5074,7 +5074,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
mangled_c_keyword_identifier_impl(PyObject *module, int int_value)
|
||||
/*[clinic end generated code: output=c049d7d79be26cda input=060876448ab567a2]*/
|
||||
/*[clinic end generated code: output=f24b37e0368e0eb8 input=060876448ab567a2]*/
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
|
|
|
@ -2463,11 +2463,12 @@ class ClinicExternalTest(TestCase):
|
|||
# Verify by checking the checksum.
|
||||
checksum = (
|
||||
"/*[clinic end generated code: "
|
||||
"output=2124c291eb067d76 input=9543a8d2da235301]*/\n"
|
||||
"output=c16447c01510dfb3 input=9543a8d2da235301]*/\n"
|
||||
)
|
||||
with open(fn, 'r', encoding='utf-8') as f:
|
||||
generated = f.read()
|
||||
self.assertTrue(generated.endswith(checksum))
|
||||
self.assertTrue(generated.endswith(checksum),
|
||||
(generated, checksum))
|
||||
|
||||
def test_cli_make(self):
|
||||
c_code = dedent("""
|
||||
|
|
|
@ -85,7 +85,7 @@ skip_optional_posonly:
|
|||
goto skip_optional_kwonly;
|
||||
}
|
||||
if (fastargs[1]) {
|
||||
digest_size = _PyLong_AsInt(fastargs[1]);
|
||||
digest_size = PyLong_AsInt(fastargs[1]);
|
||||
if (digest_size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[5]) {
|
||||
fanout = _PyLong_AsInt(fastargs[5]);
|
||||
fanout = PyLong_AsInt(fastargs[5]);
|
||||
if (fanout == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[6]) {
|
||||
depth = _PyLong_AsInt(fastargs[6]);
|
||||
depth = PyLong_AsInt(fastargs[6]);
|
||||
if (depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[9]) {
|
||||
node_depth = _PyLong_AsInt(fastargs[9]);
|
||||
node_depth = PyLong_AsInt(fastargs[9]);
|
||||
if (node_depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[10]) {
|
||||
inner_size = _PyLong_AsInt(fastargs[10]);
|
||||
inner_size = PyLong_AsInt(fastargs[10]);
|
||||
if (inner_size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -276,4 +276,4 @@ _blake2_blake2b_hexdigest(BLAKE2bObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _blake2_blake2b_hexdigest_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=996b4fe396824797 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=76bbcf5f220511b9 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -85,7 +85,7 @@ skip_optional_posonly:
|
|||
goto skip_optional_kwonly;
|
||||
}
|
||||
if (fastargs[1]) {
|
||||
digest_size = _PyLong_AsInt(fastargs[1]);
|
||||
digest_size = PyLong_AsInt(fastargs[1]);
|
||||
if (digest_size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[5]) {
|
||||
fanout = _PyLong_AsInt(fastargs[5]);
|
||||
fanout = PyLong_AsInt(fastargs[5]);
|
||||
if (fanout == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[6]) {
|
||||
depth = _PyLong_AsInt(fastargs[6]);
|
||||
depth = PyLong_AsInt(fastargs[6]);
|
||||
if (depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[9]) {
|
||||
node_depth = _PyLong_AsInt(fastargs[9]);
|
||||
node_depth = PyLong_AsInt(fastargs[9]);
|
||||
if (node_depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ skip_optional_posonly:
|
|||
}
|
||||
}
|
||||
if (fastargs[10]) {
|
||||
inner_size = _PyLong_AsInt(fastargs[10]);
|
||||
inner_size = PyLong_AsInt(fastargs[10]);
|
||||
if (inner_size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -276,4 +276,4 @@ _blake2_blake2s_hexdigest(BLAKE2sObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _blake2_blake2s_hexdigest_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=bd0fb7639e450618 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=af69b321be0b4a77 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -202,7 +202,7 @@ _io_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
}
|
||||
}
|
||||
if (args[2]) {
|
||||
buffering = _PyLong_AsInt(args[2]);
|
||||
buffering = PyLong_AsInt(args[2]);
|
||||
if (buffering == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -332,7 +332,7 @@ _io_text_encoding(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
stacklevel = _PyLong_AsInt(args[1]);
|
||||
stacklevel = PyLong_AsInt(args[1]);
|
||||
if (stacklevel == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -404,4 +404,4 @@ _io_open_code(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=6800c35366b1a5f3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=a4ceb802f3a7243f input=a9049054013a1b77]*/
|
||||
|
|
|
@ -162,7 +162,7 @@ _io__BufferedIOBase_read(PyObject *self, PyTypeObject *cls, PyObject *const *arg
|
|||
if (nargs < 1) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
size = _PyLong_AsInt(args[0]);
|
||||
size = PyLong_AsInt(args[0]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ _io__BufferedIOBase_read1(PyObject *self, PyTypeObject *cls, PyObject *const *ar
|
|||
if (nargs < 1) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
size = _PyLong_AsInt(args[0]);
|
||||
size = PyLong_AsInt(args[0]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -721,7 +721,7 @@ _io__Buffered_seek(buffered *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1098,4 +1098,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=b7ddf84a5bc2bf34 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=e5b335441452653d input=a9049054013a1b77]*/
|
||||
|
|
|
@ -427,7 +427,7 @@ _io_BytesIO_seek(bytesio *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -538,4 +538,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=098584d485420b65 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8d4e7651002e14c6 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -430,7 +430,7 @@ _io_FileIO_seek(fileio *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -536,4 +536,4 @@ _io_FileIO_isatty(fileio *self, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef _IO_FILEIO_TRUNCATE_METHODDEF
|
||||
#define _IO_FILEIO_TRUNCATE_METHODDEF
|
||||
#endif /* !defined(_IO_FILEIO_TRUNCATE_METHODDEF) */
|
||||
/*[clinic end generated code: output=bef47b31b644996a input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=65b9a5cc96d193b6 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -55,14 +55,14 @@ _io__IOBase_seek(PyObject *self, PyTypeObject *cls, PyObject *const *args, Py_ss
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
offset = _PyLong_AsInt(args[0]);
|
||||
offset = PyLong_AsInt(args[0]);
|
||||
if (offset == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (nargs < 2) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -436,4 +436,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io__RawIOBase_readall_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=301b22f8f75ce3dc input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0f064cfd54e3c1a5 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -198,7 +198,7 @@ _io_StringIO_seek(stringio *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -367,4 +367,4 @@ _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io_StringIO_seekable_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=533f20ae9b773126 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6f55dc1454aeb507 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -75,7 +75,7 @@ _io__TextIOBase_read(PyObject *self, PyTypeObject *cls, PyObject *const *args, P
|
|||
if (nargs < 1) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
size = _PyLong_AsInt(args[0]);
|
||||
size = PyLong_AsInt(args[0]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ _io__TextIOBase_readline(PyObject *self, PyTypeObject *cls, PyObject *const *arg
|
|||
if (nargs < 1) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
size = _PyLong_AsInt(args[0]);
|
||||
size = PyLong_AsInt(args[0]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -798,7 +798,7 @@ _io_TextIOWrapper_seek(textio *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[1]);
|
||||
whence = PyLong_AsInt(args[1]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -975,4 +975,4 @@ _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _io_TextIOWrapper_close_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=6bd981a58fcbc778 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=29b945b24287dd0c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -66,7 +66,7 @@ _multiprocessing_recv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!handle && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
size = _PyLong_AsInt(args[1]);
|
||||
size = PyLong_AsInt(args[1]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -172,4 +172,4 @@ exit:
|
|||
#ifndef _MULTIPROCESSING_SEND_METHODDEF
|
||||
#define _MULTIPROCESSING_SEND_METHODDEF
|
||||
#endif /* !defined(_MULTIPROCESSING_SEND_METHODDEF) */
|
||||
/*[clinic end generated code: output=4a6afc67c1f5ec85 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=eb078dff6b6595ff input=a9049054013a1b77]*/
|
||||
|
|
|
@ -68,14 +68,14 @@ _posixshmem_shm_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs,
|
|||
goto exit;
|
||||
}
|
||||
path = args[0];
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[2]);
|
||||
mode = PyLong_AsInt(args[2]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -166,4 +166,4 @@ exit:
|
|||
#ifndef _POSIXSHMEM_SHM_UNLINK_METHODDEF
|
||||
#define _POSIXSHMEM_SHM_UNLINK_METHODDEF
|
||||
#endif /* !defined(_POSIXSHMEM_SHM_UNLINK_METHODDEF) */
|
||||
/*[clinic end generated code: output=9b67f98885757bc4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c022e2f7371fdece input=a9049054013a1b77]*/
|
||||
|
|
|
@ -250,15 +250,15 @@ _multiprocessing_SemLock(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (!fastargs) {
|
||||
goto exit;
|
||||
}
|
||||
kind = _PyLong_AsInt(fastargs[0]);
|
||||
kind = PyLong_AsInt(fastargs[0]);
|
||||
if (kind == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
value = _PyLong_AsInt(fastargs[1]);
|
||||
value = PyLong_AsInt(fastargs[1]);
|
||||
if (value == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
maxvalue = _PyLong_AsInt(fastargs[2]);
|
||||
maxvalue = PyLong_AsInt(fastargs[2]);
|
||||
if (maxvalue == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -542,4 +542,4 @@ exit:
|
|||
#ifndef _MULTIPROCESSING_SEMLOCK___EXIT___METHODDEF
|
||||
#define _MULTIPROCESSING_SEMLOCK___EXIT___METHODDEF
|
||||
#endif /* !defined(_MULTIPROCESSING_SEMLOCK___EXIT___METHODDEF) */
|
||||
/*[clinic end generated code: output=dae57a702cc01512 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0fcadfdd8d6944be input=a9049054013a1b77]*/
|
||||
|
|
|
@ -57,7 +57,7 @@ blob_read(pysqlite_Blob *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
length = _PyLong_AsInt(args[0]);
|
||||
length = PyLong_AsInt(args[0]);
|
||||
if (length == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -133,14 +133,14 @@ blob_seek(pysqlite_Blob *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("seek", nargs, 1, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
offset = _PyLong_AsInt(args[0]);
|
||||
offset = PyLong_AsInt(args[0]);
|
||||
if (offset == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
origin = _PyLong_AsInt(args[1]);
|
||||
origin = PyLong_AsInt(args[1]);
|
||||
if (origin == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -219,4 +219,4 @@ blob_exit(pysqlite_Blob *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=ad6a402f70e85977 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=1783b816ccc3bb75 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -105,7 +105,7 @@ pysqlite_connection_init(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
}
|
||||
if (fastargs[2]) {
|
||||
detect_types = _PyLong_AsInt(fastargs[2]);
|
||||
detect_types = PyLong_AsInt(fastargs[2]);
|
||||
if (detect_types == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ pysqlite_connection_init(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
}
|
||||
if (fastargs[6]) {
|
||||
cache_size = _PyLong_AsInt(fastargs[6]);
|
||||
cache_size = PyLong_AsInt(fastargs[6]);
|
||||
if (cache_size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -482,7 +482,7 @@ pysqlite_connection_create_function(pysqlite_Connection *self, PyTypeObject *cls
|
|||
PyErr_SetString(PyExc_ValueError, "embedded null character");
|
||||
goto exit;
|
||||
}
|
||||
narg = _PyLong_AsInt(args[1]);
|
||||
narg = PyLong_AsInt(args[1]);
|
||||
if (narg == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -565,7 +565,7 @@ create_window_function(pysqlite_Connection *self, PyTypeObject *cls, PyObject *c
|
|||
PyErr_SetString(PyExc_ValueError, "embedded null character");
|
||||
goto exit;
|
||||
}
|
||||
num_params = _PyLong_AsInt(args[1]);
|
||||
num_params = PyLong_AsInt(args[1]);
|
||||
if (num_params == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -644,7 +644,7 @@ pysqlite_connection_create_aggregate(pysqlite_Connection *self, PyTypeObject *cl
|
|||
PyErr_SetString(PyExc_ValueError, "embedded null character");
|
||||
goto exit;
|
||||
}
|
||||
n_arg = _PyLong_AsInt(args[1]);
|
||||
n_arg = PyLong_AsInt(args[1]);
|
||||
if (n_arg == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -764,7 +764,7 @@ pysqlite_connection_set_progress_handler(pysqlite_Connection *self, PyTypeObject
|
|||
goto exit;
|
||||
}
|
||||
callable = args[0];
|
||||
n = _PyLong_AsInt(args[1]);
|
||||
n = PyLong_AsInt(args[1]);
|
||||
if (n == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1146,7 +1146,7 @@ pysqlite_connection_backup(pysqlite_Connection *self, PyObject *const *args, Py_
|
|||
goto skip_optional_kwonly;
|
||||
}
|
||||
if (args[1]) {
|
||||
pages = _PyLong_AsInt(args[1]);
|
||||
pages = PyLong_AsInt(args[1]);
|
||||
if (pages == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1538,11 +1538,11 @@ setlimit(pysqlite_Connection *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setlimit", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
category = _PyLong_AsInt(args[0]);
|
||||
category = PyLong_AsInt(args[0]);
|
||||
if (category == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
limit = _PyLong_AsInt(args[1]);
|
||||
limit = PyLong_AsInt(args[1]);
|
||||
if (limit == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1573,7 +1573,7 @@ getlimit(pysqlite_Connection *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int category;
|
||||
|
||||
category = _PyLong_AsInt(arg);
|
||||
category = PyLong_AsInt(arg);
|
||||
if (category == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1608,7 +1608,7 @@ setconfig(pysqlite_Connection *self, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setconfig", nargs, 1, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
op = _PyLong_AsInt(args[0]);
|
||||
op = PyLong_AsInt(args[0]);
|
||||
if (op == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1648,7 +1648,7 @@ getconfig(pysqlite_Connection *self, PyObject *arg)
|
|||
int op;
|
||||
int _return_value;
|
||||
|
||||
op = _PyLong_AsInt(arg);
|
||||
op = PyLong_AsInt(arg);
|
||||
if (op == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1681,4 +1681,4 @@ exit:
|
|||
#ifndef DESERIALIZE_METHODDEF
|
||||
#define DESERIALIZE_METHODDEF
|
||||
#endif /* !defined(DESERIALIZE_METHODDEF) */
|
||||
/*[clinic end generated code: output=0ad9d55977a51b8f input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=bc31bec42067a8bf input=a9049054013a1b77]*/
|
||||
|
|
|
@ -223,7 +223,7 @@ pysqlite_cursor_fetchmany(pysqlite_Cursor *self, PyObject *const *args, Py_ssize
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
maxrows = _PyLong_AsInt(args[0]);
|
||||
maxrows = PyLong_AsInt(args[0]);
|
||||
if (maxrows == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -313,4 +313,4 @@ pysqlite_cursor_close(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return pysqlite_cursor_close_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=831f7bc5256526d3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=b56b3ddb3b6df8c6 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -159,7 +159,7 @@ pysqlite_enable_callback_trace(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int enable;
|
||||
|
||||
enable = _PyLong_AsInt(arg);
|
||||
enable = PyLong_AsInt(arg);
|
||||
if (enable == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -208,4 +208,4 @@ skip_optional:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=e08e6856ae546e7b input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c1d450089867b4bf input=a9049054013a1b77]*/
|
||||
|
|
|
@ -53,7 +53,7 @@ _sre_ascii_iscased(PyObject *module, PyObject *arg)
|
|||
int character;
|
||||
int _return_value;
|
||||
|
||||
character = _PyLong_AsInt(arg);
|
||||
character = PyLong_AsInt(arg);
|
||||
if (character == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ _sre_unicode_iscased(PyObject *module, PyObject *arg)
|
|||
int character;
|
||||
int _return_value;
|
||||
|
||||
character = _PyLong_AsInt(arg);
|
||||
character = PyLong_AsInt(arg);
|
||||
if (character == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ _sre_ascii_tolower(PyObject *module, PyObject *arg)
|
|||
int character;
|
||||
int _return_value;
|
||||
|
||||
character = _PyLong_AsInt(arg);
|
||||
character = PyLong_AsInt(arg);
|
||||
if (character == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ _sre_unicode_tolower(PyObject *module, PyObject *arg)
|
|||
int character;
|
||||
int _return_value;
|
||||
|
||||
character = _PyLong_AsInt(arg);
|
||||
character = PyLong_AsInt(arg);
|
||||
if (character == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1031,7 +1031,7 @@ _sre_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto exit;
|
||||
}
|
||||
pattern = args[0];
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1460,4 +1460,4 @@ _sre_SRE_Scanner_search(ScannerObject *self, PyTypeObject *cls, PyObject *const
|
|||
}
|
||||
return _sre_SRE_Scanner_search_impl(self, cls);
|
||||
}
|
||||
/*[clinic end generated code: output=e3ba72156dd71572 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6b84e62c87238f0e input=a9049054013a1b77]*/
|
||||
|
|
|
@ -59,7 +59,7 @@ _ssl_Certificate_public_bytes(PySSLCertificate *self, PyObject *const *args, Py_
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
format = _PyLong_AsInt(args[0]);
|
||||
format = PyLong_AsInt(args[0]);
|
||||
if (format == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -86,4 +86,4 @@ _ssl_Certificate_get_info(PySSLCertificate *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _ssl_Certificate_get_info_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=82efada014f9b7fe input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=72e2bb139c64546c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -299,7 +299,7 @@ _testcapi_raise_exception(PyObject *module, PyObject *const *args, Py_ssize_t na
|
|||
goto exit;
|
||||
}
|
||||
exc = args[0];
|
||||
num_args = _PyLong_AsInt(args[1]);
|
||||
num_args = PyLong_AsInt(args[1]);
|
||||
if (num_args == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -488,4 +488,4 @@ _testcapi_unstable_exc_prep_reraise_star(PyObject *module, PyObject *const *args
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d574342d716e98b5 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6c4b7ad1cb1e0153 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -31,7 +31,7 @@ _testcapi_float_pack(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("float_pack", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
size = _PyLong_AsInt(args[0]);
|
||||
size = PyLong_AsInt(args[0]);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ _testcapi_float_pack(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
goto exit;
|
||||
}
|
||||
}
|
||||
le = _PyLong_AsInt(args[2]);
|
||||
le = PyLong_AsInt(args[2]);
|
||||
if (le == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -85,4 +85,4 @@ _testcapi_float_unpack(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=083e5df26cd5fbeb input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=de6879d0f4987d79 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -29,7 +29,7 @@ _testcapi_watch_dict(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("watch_dict", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
watcher_id = _PyLong_AsInt(args[0]);
|
||||
watcher_id = PyLong_AsInt(args[0]);
|
||||
if (watcher_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ _testcapi_unwatch_dict(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
if (!_PyArg_CheckPositional("unwatch_dict", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
watcher_id = _PyLong_AsInt(args[0]);
|
||||
watcher_id = PyLong_AsInt(args[0]);
|
||||
if (watcher_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ _testcapi_watch_type(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("watch_type", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
watcher_id = _PyLong_AsInt(args[0]);
|
||||
watcher_id = PyLong_AsInt(args[0]);
|
||||
if (watcher_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ _testcapi_unwatch_type(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
if (!_PyArg_CheckPositional("unwatch_type", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
watcher_id = _PyLong_AsInt(args[0]);
|
||||
watcher_id = PyLong_AsInt(args[0]);
|
||||
if (watcher_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -195,4 +195,4 @@ _testcapi_set_func_kwdefaults_via_capi(PyObject *module, PyObject *const *args,
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=12c375089125d165 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=b7564a84c5815b46 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -102,7 +102,7 @@ _bz2_BZ2Compressor(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (PyTuple_GET_SIZE(args) < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
compresslevel = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
compresslevel = PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
if (compresslevel == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -241,4 +241,4 @@ _bz2_BZ2Decompressor(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=805400e4805098ec input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=431fd0fc40f019d1 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -802,7 +802,7 @@ _codecs_utf_16_ex_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
byteorder = _PyLong_AsInt(args[2]);
|
||||
byteorder = PyLong_AsInt(args[2]);
|
||||
if (byteorder == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1091,7 +1091,7 @@ _codecs_utf_32_ex_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
byteorder = _PyLong_AsInt(args[2]);
|
||||
byteorder = PyLong_AsInt(args[2]);
|
||||
if (byteorder == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1639,7 +1639,7 @@ _codecs_code_page_decode(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (!_PyArg_CheckPositional("code_page_decode", nargs, 2, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
codepage = _PyLong_AsInt(args[0]);
|
||||
codepage = PyLong_AsInt(args[0]);
|
||||
if (codepage == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1926,7 +1926,7 @@ _codecs_utf_16_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
byteorder = _PyLong_AsInt(args[2]);
|
||||
byteorder = PyLong_AsInt(args[2]);
|
||||
if (byteorder == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2099,7 +2099,7 @@ _codecs_utf_32_encode(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
byteorder = _PyLong_AsInt(args[2]);
|
||||
byteorder = PyLong_AsInt(args[2]);
|
||||
if (byteorder == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2669,7 +2669,7 @@ _codecs_code_page_encode(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (!_PyArg_CheckPositional("code_page_encode", nargs, 2, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
code_page = _PyLong_AsInt(args[0]);
|
||||
code_page = PyLong_AsInt(args[0]);
|
||||
if (code_page == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2818,4 +2818,4 @@ exit:
|
|||
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
|
||||
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
|
||||
/*[clinic end generated code: output=0f52053d31533376 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6d9bc20c8dd36134 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -190,11 +190,11 @@ _curses_panel_panel_move(PyCursesPanelObject *self, PyTypeObject *cls, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
y = _PyLong_AsInt(args[0]);
|
||||
y = PyLong_AsInt(args[0]);
|
||||
if (y == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
x = _PyLong_AsInt(args[1]);
|
||||
x = PyLong_AsInt(args[1]);
|
||||
if (x == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -422,4 +422,4 @@ _curses_panel_update_panels(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _curses_panel_update_panels_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=8d0533681891523c input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=cb76cb1d5040f387 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -708,11 +708,11 @@ _curses_window_enclose(PyCursesWindowObject *self, PyObject *const *args, Py_ssi
|
|||
if (!_PyArg_CheckPositional("enclose", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
y = _PyLong_AsInt(args[0]);
|
||||
y = PyLong_AsInt(args[0]);
|
||||
if (y == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
x = _PyLong_AsInt(args[1]);
|
||||
x = PyLong_AsInt(args[1]);
|
||||
if (x == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1264,7 +1264,7 @@ _curses_window_is_linetouched(PyCursesWindowObject *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int line;
|
||||
|
||||
line = _PyLong_AsInt(arg);
|
||||
line = PyLong_AsInt(arg);
|
||||
if (line == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1508,11 +1508,11 @@ _curses_window_redrawln(PyCursesWindowObject *self, PyObject *const *args, Py_ss
|
|||
if (!_PyArg_CheckPositional("redrawln", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
beg = _PyLong_AsInt(args[0]);
|
||||
beg = PyLong_AsInt(args[0]);
|
||||
if (beg == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
num = _PyLong_AsInt(args[1]);
|
||||
num = PyLong_AsInt(args[1]);
|
||||
if (num == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1607,11 +1607,11 @@ _curses_window_setscrreg(PyCursesWindowObject *self, PyObject *const *args, Py_s
|
|||
if (!_PyArg_CheckPositional("setscrreg", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
top = _PyLong_AsInt(args[0]);
|
||||
top = PyLong_AsInt(args[0]);
|
||||
if (top == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
bottom = _PyLong_AsInt(args[1]);
|
||||
bottom = PyLong_AsInt(args[1]);
|
||||
if (bottom == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2009,7 +2009,7 @@ _curses_color_pair(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int pair_number;
|
||||
|
||||
pair_number = _PyLong_AsInt(arg);
|
||||
pair_number = PyLong_AsInt(arg);
|
||||
if (pair_number == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2045,7 +2045,7 @@ _curses_curs_set(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int visibility;
|
||||
|
||||
visibility = _PyLong_AsInt(arg);
|
||||
visibility = PyLong_AsInt(arg);
|
||||
if (visibility == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2120,7 +2120,7 @@ _curses_delay_output(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int ms;
|
||||
|
||||
ms = _PyLong_AsInt(arg);
|
||||
ms = PyLong_AsInt(arg);
|
||||
if (ms == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2363,15 +2363,15 @@ _curses_ungetmouse(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
id = (short) ival;
|
||||
}
|
||||
}
|
||||
x = _PyLong_AsInt(args[1]);
|
||||
x = PyLong_AsInt(args[1]);
|
||||
if (x == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
y = _PyLong_AsInt(args[2]);
|
||||
y = PyLong_AsInt(args[2]);
|
||||
if (y == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
z = _PyLong_AsInt(args[3]);
|
||||
z = PyLong_AsInt(args[3]);
|
||||
if (z == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2525,7 +2525,7 @@ _curses_has_key(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int key;
|
||||
|
||||
key = _PyLong_AsInt(arg);
|
||||
key = PyLong_AsInt(arg);
|
||||
if (key == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2744,7 +2744,7 @@ _curses_setupterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
fd = _PyLong_AsInt(args[1]);
|
||||
fd = PyLong_AsInt(args[1]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2808,7 +2808,7 @@ _curses_set_escdelay(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int ms;
|
||||
|
||||
ms = _PyLong_AsInt(arg);
|
||||
ms = PyLong_AsInt(arg);
|
||||
if (ms == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2871,7 +2871,7 @@ _curses_set_tabsize(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int size;
|
||||
|
||||
size = _PyLong_AsInt(arg);
|
||||
size = PyLong_AsInt(arg);
|
||||
if (size == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2957,11 +2957,11 @@ _curses_is_term_resized(PyObject *module, PyObject *const *args, Py_ssize_t narg
|
|||
if (!_PyArg_CheckPositional("is_term_resized", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
nlines = _PyLong_AsInt(args[0]);
|
||||
nlines = PyLong_AsInt(args[0]);
|
||||
if (nlines == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
ncols = _PyLong_AsInt(args[1]);
|
||||
ncols = PyLong_AsInt(args[1]);
|
||||
if (ncols == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2994,7 +2994,7 @@ _curses_keyname(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int key;
|
||||
|
||||
key = _PyLong_AsInt(arg);
|
||||
key = PyLong_AsInt(arg);
|
||||
if (key == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3101,7 +3101,7 @@ _curses_mouseinterval(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int interval;
|
||||
|
||||
interval = _PyLong_AsInt(arg);
|
||||
interval = PyLong_AsInt(arg);
|
||||
if (interval == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3172,7 +3172,7 @@ _curses_napms(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int ms;
|
||||
|
||||
ms = _PyLong_AsInt(arg);
|
||||
ms = PyLong_AsInt(arg);
|
||||
if (ms == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3209,11 +3209,11 @@ _curses_newpad(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("newpad", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
nlines = _PyLong_AsInt(args[0]);
|
||||
nlines = PyLong_AsInt(args[0]);
|
||||
if (nlines == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
ncols = _PyLong_AsInt(args[1]);
|
||||
ncols = PyLong_AsInt(args[1]);
|
||||
if (ncols == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3471,7 +3471,7 @@ _curses_pair_number(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int attr;
|
||||
|
||||
attr = _PyLong_AsInt(arg);
|
||||
attr = PyLong_AsInt(arg);
|
||||
if (attr == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3700,11 +3700,11 @@ _curses_resizeterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("resizeterm", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
nlines = _PyLong_AsInt(args[0]);
|
||||
nlines = PyLong_AsInt(args[0]);
|
||||
if (nlines == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
ncols = _PyLong_AsInt(args[1]);
|
||||
ncols = PyLong_AsInt(args[1]);
|
||||
if (ncols == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3751,11 +3751,11 @@ _curses_resize_term(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("resize_term", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
nlines = _PyLong_AsInt(args[0]);
|
||||
nlines = PyLong_AsInt(args[0]);
|
||||
if (nlines == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
ncols = _PyLong_AsInt(args[1]);
|
||||
ncols = PyLong_AsInt(args[1]);
|
||||
if (ncols == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3816,11 +3816,11 @@ _curses_setsyx(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setsyx", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
y = _PyLong_AsInt(args[0]);
|
||||
y = PyLong_AsInt(args[0]);
|
||||
if (y == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
x = _PyLong_AsInt(args[1]);
|
||||
x = PyLong_AsInt(args[1]);
|
||||
if (x == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4089,7 +4089,7 @@ _curses_typeahead(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4313,4 +4313,4 @@ _curses_has_extended_color_support(PyObject *module, PyObject *Py_UNUSED(ignored
|
|||
#ifndef _CURSES_USE_DEFAULT_COLORS_METHODDEF
|
||||
#define _CURSES_USE_DEFAULT_COLORS_METHODDEF
|
||||
#endif /* !defined(_CURSES_USE_DEFAULT_COLORS_METHODDEF) */
|
||||
/*[clinic end generated code: output=27a2364193b503c1 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=cff0e570de65d9b8 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -64,15 +64,15 @@ iso_calendar_date_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (!fastargs) {
|
||||
goto exit;
|
||||
}
|
||||
year = _PyLong_AsInt(fastargs[0]);
|
||||
year = PyLong_AsInt(fastargs[0]);
|
||||
if (year == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
week = _PyLong_AsInt(fastargs[1]);
|
||||
week = PyLong_AsInt(fastargs[1]);
|
||||
if (week == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
weekday = _PyLong_AsInt(fastargs[2]);
|
||||
weekday = PyLong_AsInt(fastargs[2]);
|
||||
if (weekday == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -146,4 +146,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=42654669940e0e3a input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=720c99f24a9aa41c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -212,7 +212,7 @@ dbmopen(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[2]);
|
||||
mode = PyLong_AsInt(args[2]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -222,4 +222,4 @@ skip_optional:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=b3053c67ecfcc29c input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=f1bf74536f201669 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -334,7 +334,7 @@ dbmopen(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[2]);
|
||||
mode = PyLong_AsInt(args[2]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -344,4 +344,4 @@ skip_optional:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=8c613cbd88e57480 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=cf48d9f76fdd62b9 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -30,7 +30,7 @@ _locale_setlocale(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setlocale", nargs, 1, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
category = _PyLong_AsInt(args[0]);
|
||||
category = PyLong_AsInt(args[0]);
|
||||
if (category == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ _locale_nl_langinfo(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int item;
|
||||
|
||||
item = _PyLong_AsInt(arg);
|
||||
item = PyLong_AsInt(arg);
|
||||
if (item == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -373,7 +373,7 @@ _locale_dcgettext(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
PyErr_SetString(PyExc_ValueError, "embedded null character");
|
||||
goto exit;
|
||||
}
|
||||
category = _PyLong_AsInt(args[2]);
|
||||
category = PyLong_AsInt(args[2]);
|
||||
if (category == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -599,4 +599,4 @@ _locale_getencoding(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
|
||||
#define _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
|
||||
#endif /* !defined(_LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF) */
|
||||
/*[clinic end generated code: output=9dbd0b4bf5767edd input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=119644f17919234d input=a9049054013a1b77]*/
|
||||
|
|
|
@ -241,7 +241,7 @@ _lzma_LZMADecompressor(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (fastargs[0]) {
|
||||
format = _PyLong_AsInt(fastargs[0]);
|
||||
format = PyLong_AsInt(fastargs[0]);
|
||||
if (format == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ _lzma_is_check_supported(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int check_id;
|
||||
|
||||
check_id = _PyLong_AsInt(arg);
|
||||
check_id = PyLong_AsInt(arg);
|
||||
if (check_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -338,4 +338,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=96c1fbdada1ef232 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=aaf225a5d15d3e75 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -61,7 +61,7 @@ _opcode_stack_effect(PyObject *module, PyObject *const *args, Py_ssize_t nargs,
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ _opcode_is_valid(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ _opcode_has_arg(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ _opcode_has_const(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ _opcode_has_name(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ _opcode_has_jump(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -455,7 +455,7 @@ _opcode_has_free(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -518,7 +518,7 @@ _opcode_has_local(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyO
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -581,7 +581,7 @@ _opcode_has_exc(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
opcode = _PyLong_AsInt(args[0]);
|
||||
opcode = PyLong_AsInt(args[0]);
|
||||
if (opcode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -668,4 +668,4 @@ _opcode_get_intrinsic2_descs(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _opcode_get_intrinsic2_descs_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=31a1a11c2f81dca4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=ce89aee80dd825d2 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -98,35 +98,35 @@ subprocess_fork_exec(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
py_fds_to_keep = args[3];
|
||||
cwd_obj = args[4];
|
||||
env_list = args[5];
|
||||
p2cread = _PyLong_AsInt(args[6]);
|
||||
p2cread = PyLong_AsInt(args[6]);
|
||||
if (p2cread == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
p2cwrite = _PyLong_AsInt(args[7]);
|
||||
p2cwrite = PyLong_AsInt(args[7]);
|
||||
if (p2cwrite == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
c2pread = _PyLong_AsInt(args[8]);
|
||||
c2pread = PyLong_AsInt(args[8]);
|
||||
if (c2pread == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
c2pwrite = _PyLong_AsInt(args[9]);
|
||||
c2pwrite = PyLong_AsInt(args[9]);
|
||||
if (c2pwrite == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
errread = _PyLong_AsInt(args[10]);
|
||||
errread = PyLong_AsInt(args[10]);
|
||||
if (errread == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
errwrite = _PyLong_AsInt(args[11]);
|
||||
errwrite = PyLong_AsInt(args[11]);
|
||||
if (errwrite == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
errpipe_read = _PyLong_AsInt(args[12]);
|
||||
errpipe_read = PyLong_AsInt(args[12]);
|
||||
if (errpipe_read == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
errpipe_write = _PyLong_AsInt(args[13]);
|
||||
errpipe_write = PyLong_AsInt(args[13]);
|
||||
if (errpipe_write == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ subprocess_fork_exec(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
gid_object = args[17];
|
||||
extra_groups_packed = args[18];
|
||||
uid_object = args[19];
|
||||
child_umask = _PyLong_AsInt(args[20]);
|
||||
child_umask = PyLong_AsInt(args[20]);
|
||||
if (child_umask == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -159,4 +159,4 @@ subprocess_fork_exec(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=46d71e86845c93d7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=be0e9b5d8c0217fa input=a9049054013a1b77]*/
|
||||
|
|
|
@ -106,7 +106,7 @@ _random_Random_getrandbits(RandomObject *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int k;
|
||||
|
||||
k = _PyLong_AsInt(arg);
|
||||
k = PyLong_AsInt(arg);
|
||||
if (k == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -115,4 +115,4 @@ _random_Random_getrandbits(RandomObject *self, PyObject *arg)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=bc17406a886824fc input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=3feabc783b317d0d input=a9049054013a1b77]*/
|
||||
|
|
|
@ -445,7 +445,7 @@ _ssl__SSLContext(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (!_PyArg_CheckPositional("_SSLContext", PyTuple_GET_SIZE(args), 1, 1)) {
|
||||
goto exit;
|
||||
}
|
||||
proto_version = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
proto_version = PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
if (proto_version == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1073,7 +1073,7 @@ _ssl_MemoryBIO_read(PySSLMemoryBIO *self, PyObject *const *args, Py_ssize_t narg
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
len = _PyLong_AsInt(args[0]);
|
||||
len = PyLong_AsInt(args[0]);
|
||||
if (len == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1223,7 +1223,7 @@ _ssl_RAND_bytes(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int n;
|
||||
|
||||
n = _PyLong_AsInt(arg);
|
||||
n = PyLong_AsInt(arg);
|
||||
if (n == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1372,7 +1372,7 @@ _ssl_nid2obj(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int nid;
|
||||
|
||||
nid = _PyLong_AsInt(arg);
|
||||
nid = PyLong_AsInt(arg);
|
||||
if (nid == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1542,4 +1542,4 @@ exit:
|
|||
#ifndef _SSL_ENUM_CRLS_METHODDEF
|
||||
#define _SSL_ENUM_CRLS_METHODDEF
|
||||
#endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
|
||||
/*[clinic end generated code: output=4d9b81fa81f520f0 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=4c9f00c62f0825d2 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -181,7 +181,7 @@ bool_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
c = _PyLong_AsInt(args[2]);
|
||||
c = PyLong_AsInt(args[2]);
|
||||
if (c == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -627,14 +627,14 @@ int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
a = _PyLong_AsInt(args[0]);
|
||||
a = PyLong_AsInt(args[0]);
|
||||
if (a == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
b = _PyLong_AsInt(args[1]);
|
||||
b = PyLong_AsInt(args[1]);
|
||||
if (b == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3069,4 +3069,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=0de394419fefe7cf input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=86396cbed6eb8b65 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -123,14 +123,14 @@ _testinternalcapi_compiler_codegen(PyObject *module, PyObject *const *args, Py_s
|
|||
}
|
||||
ast = args[0];
|
||||
filename = args[1];
|
||||
optimize = _PyLong_AsInt(args[2]);
|
||||
optimize = PyLong_AsInt(args[2]);
|
||||
if (optimize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
compile_mode = _PyLong_AsInt(args[3]);
|
||||
compile_mode = PyLong_AsInt(args[3]);
|
||||
if (compile_mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ _testinternalcapi_optimize_cfg(PyObject *module, PyObject *const *args, Py_ssize
|
|||
}
|
||||
instructions = args[0];
|
||||
consts = args[1];
|
||||
nlocals = _PyLong_AsInt(args[2]);
|
||||
nlocals = PyLong_AsInt(args[2]);
|
||||
if (nlocals == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -265,4 +265,4 @@ _testinternalcapi_assemble_code_object(PyObject *module, PyObject *const *args,
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=811d50772c8f285a input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=1ce6e2257e95a853 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -117,7 +117,7 @@ _testmultiphase_StateAccessType_increment_count_clinic(StateAccessTypeObject *se
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[0]) {
|
||||
n = _PyLong_AsInt(args[0]);
|
||||
n = PyLong_AsInt(args[0]);
|
||||
if (n == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -162,4 +162,4 @@ _testmultiphase_StateAccessType_get_count(StateAccessTypeObject *self, PyTypeObj
|
|||
}
|
||||
return _testmultiphase_StateAccessType_get_count_impl(self, cls);
|
||||
}
|
||||
/*[clinic end generated code: output=52ea97ab2f03bb6d input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6f8db3983c5312a0 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -432,7 +432,7 @@ _tkinter_tkapp_createfilehandler(TkappObject *self, PyObject *const *args, Py_ss
|
|||
goto exit;
|
||||
}
|
||||
file = args[0];
|
||||
mask = _PyLong_AsInt(args[1]);
|
||||
mask = PyLong_AsInt(args[1]);
|
||||
if (mask == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -496,7 +496,7 @@ _tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject *const *args, Py_s
|
|||
if (!_PyArg_CheckPositional("createtimerhandler", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
milliseconds = _PyLong_AsInt(args[0]);
|
||||
milliseconds = PyLong_AsInt(args[0]);
|
||||
if (milliseconds == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -530,7 +530,7 @@ _tkinter_tkapp_mainloop(TkappObject *self, PyObject *const *args, Py_ssize_t nar
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
threshold = _PyLong_AsInt(args[0]);
|
||||
threshold = PyLong_AsInt(args[0]);
|
||||
if (threshold == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -564,7 +564,7 @@ _tkinter_tkapp_dooneevent(TkappObject *self, PyObject *const *args, Py_ssize_t n
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[0]);
|
||||
flags = PyLong_AsInt(args[0]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -820,7 +820,7 @@ _tkinter_setbusywaitinterval(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int new_val;
|
||||
|
||||
new_val = _PyLong_AsInt(arg);
|
||||
new_val = PyLong_AsInt(arg);
|
||||
if (new_val == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -865,4 +865,4 @@ exit:
|
|||
#ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||
#define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
|
||||
#endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
|
||||
/*[clinic end generated code: output=2a4e3bf8448604b5 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=2cdb2fd0ce66ebe5 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -107,7 +107,7 @@ _tracemalloc_start(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
nframe = _PyLong_AsInt(args[0]);
|
||||
nframe = PyLong_AsInt(args[0]);
|
||||
if (nframe == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -218,4 +218,4 @@ _tracemalloc_reset_peak(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return _tracemalloc_reset_peak_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=44e3f8553aae2535 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=98a42e95af7eaf09 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -589,7 +589,7 @@ array__array_reconstructor(PyObject *module, PyObject *const *args, Py_ssize_t n
|
|||
goto exit;
|
||||
}
|
||||
typecode = PyUnicode_READ_CHAR(args[1], 0);
|
||||
mformat_code = _PyLong_AsInt(args[2]);
|
||||
mformat_code = PyLong_AsInt(args[2]);
|
||||
if (mformat_code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -674,4 +674,4 @@ PyDoc_STRVAR(array_arrayiterator___setstate____doc__,
|
|||
|
||||
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
|
||||
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
|
||||
/*[clinic end generated code: output=11595e9f38d6d500 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=db417f5677a25eaa input=a9049054013a1b77]*/
|
||||
|
|
|
@ -448,7 +448,7 @@ binascii_b2a_hex(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
bytes_per_sep = _PyLong_AsInt(args[2]);
|
||||
bytes_per_sep = PyLong_AsInt(args[2]);
|
||||
if (bytes_per_sep == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -541,7 +541,7 @@ binascii_hexlify(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
bytes_per_sep = _PyLong_AsInt(args[2]);
|
||||
bytes_per_sep = PyLong_AsInt(args[2]);
|
||||
if (bytes_per_sep == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -795,4 +795,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=ab156917c9db79d2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=bf950ef45a10928d input=a9049054013a1b77]*/
|
||||
|
|
|
@ -44,7 +44,7 @@ fcntl_fcntl(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
code = _PyLong_AsInt(args[1]);
|
||||
code = PyLong_AsInt(args[1]);
|
||||
if (code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ fcntl_flock(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
code = _PyLong_AsInt(args[1]);
|
||||
code = PyLong_AsInt(args[1]);
|
||||
if (code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ fcntl_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
code = _PyLong_AsInt(args[1]);
|
||||
code = PyLong_AsInt(args[1]);
|
||||
if (code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ fcntl_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 5) {
|
||||
goto skip_optional;
|
||||
}
|
||||
whence = _PyLong_AsInt(args[4]);
|
||||
whence = PyLong_AsInt(args[4]);
|
||||
if (whence == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -249,4 +249,4 @@ skip_optional:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=1db859412172dd53 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=705976d5f53f2272 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -131,7 +131,7 @@ gc_collect(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
generation = _PyLong_AsInt(args[0]);
|
||||
generation = PyLong_AsInt(args[0]);
|
||||
if (generation == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ gc_set_debug(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int flags;
|
||||
|
||||
flags = _PyLong_AsInt(arg);
|
||||
flags = PyLong_AsInt(arg);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -424,4 +424,4 @@ gc_get_freeze_count(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=66432ac0e17fd04f input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=16003cfbc66ada39 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -288,11 +288,11 @@ _overlapped_CreateEvent(PyObject *module, PyObject *const *args, Py_ssize_t narg
|
|||
goto exit;
|
||||
}
|
||||
EventAttributes = args[0];
|
||||
ManualReset = _PyLong_AsInt(args[1]);
|
||||
ManualReset = PyLong_AsInt(args[1]);
|
||||
if (ManualReset == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
InitialState = _PyLong_AsInt(args[2]);
|
||||
InitialState = PyLong_AsInt(args[2]);
|
||||
if (InitialState == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -402,7 +402,7 @@ _overlapped_BindLocal(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!Socket && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
Family = _PyLong_AsInt(args[1]);
|
||||
Family = PyLong_AsInt(args[1]);
|
||||
if (Family == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ _overlapped_Overlapped_getresult(OverlappedObject *self, PyObject *const *args,
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
wait = _PyLong_AsInt(args[0]);
|
||||
wait = PyLong_AsInt(args[0]);
|
||||
if (wait == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1262,4 +1262,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=05fd038b8a81272d input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=9fbc01f706562dea input=a9049054013a1b77]*/
|
||||
|
|
|
@ -262,7 +262,7 @@ os_access(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
if (!path_converter(args[0], &path)) {
|
||||
goto exit;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -327,7 +327,7 @@ os_ttyname(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -568,7 +568,7 @@ os_chmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!path_converter(args[0], &path)) {
|
||||
goto exit;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -658,11 +658,11 @@ os_fchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
if (!args) {
|
||||
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;
|
||||
}
|
||||
|
@ -731,7 +731,7 @@ os_lchmod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
if (!path_converter(args[0], &path)) {
|
||||
goto exit;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1284,7 +1284,7 @@ os_fchown(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2329,7 +2329,7 @@ os_mkdir(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[1]) {
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2374,7 +2374,7 @@ os_nice(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int increment;
|
||||
|
||||
increment = _PyLong_AsInt(arg);
|
||||
increment = PyLong_AsInt(arg);
|
||||
if (increment == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2437,11 +2437,11 @@ os_getpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
which = _PyLong_AsInt(args[0]);
|
||||
which = PyLong_AsInt(args[0]);
|
||||
if (which == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
who = _PyLong_AsInt(args[1]);
|
||||
who = PyLong_AsInt(args[1]);
|
||||
if (who == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2505,15 +2505,15 @@ os_setpriority(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
which = _PyLong_AsInt(args[0]);
|
||||
which = PyLong_AsInt(args[0]);
|
||||
if (which == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
who = _PyLong_AsInt(args[1]);
|
||||
who = PyLong_AsInt(args[1]);
|
||||
if (who == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
priority = _PyLong_AsInt(args[2]);
|
||||
priority = PyLong_AsInt(args[2]);
|
||||
if (priority == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2944,7 +2944,7 @@ os_umask(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int mask;
|
||||
|
||||
mask = _PyLong_AsInt(arg);
|
||||
mask = PyLong_AsInt(arg);
|
||||
if (mask == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3298,7 +3298,7 @@ os__exit(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3759,7 +3759,7 @@ os_spawnv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("spawnv", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[0]);
|
||||
mode = PyLong_AsInt(args[0]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -3814,7 +3814,7 @@ os_spawnve(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("spawnve", nargs, 4, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[0]);
|
||||
mode = PyLong_AsInt(args[0]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4023,7 +4023,7 @@ os_sched_get_priority_max(PyObject *module, PyObject *const *args, Py_ssize_t na
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
policy = _PyLong_AsInt(args[0]);
|
||||
policy = PyLong_AsInt(args[0]);
|
||||
if (policy == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4085,7 +4085,7 @@ os_sched_get_priority_min(PyObject *module, PyObject *const *args, Py_ssize_t na
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
policy = _PyLong_AsInt(args[0]);
|
||||
policy = PyLong_AsInt(args[0]);
|
||||
if (policy == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4644,7 +4644,7 @@ os_getgrouplist(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
PyErr_SetString(PyExc_ValueError, "embedded null character");
|
||||
goto exit;
|
||||
}
|
||||
basegid = _PyLong_AsInt(args[1]);
|
||||
basegid = PyLong_AsInt(args[1]);
|
||||
if (basegid == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4762,7 +4762,7 @@ os_initgroups(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!PyUnicode_FSConverter(args[0], &oname)) {
|
||||
goto exit;
|
||||
}
|
||||
gid = _PyLong_AsInt(args[1]);
|
||||
gid = PyLong_AsInt(args[1]);
|
||||
if (gid == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -5078,7 +5078,7 @@ os_plock(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int op;
|
||||
|
||||
op = _PyLong_AsInt(arg);
|
||||
op = PyLong_AsInt(arg);
|
||||
if (op == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -5356,7 +5356,7 @@ os_wait3(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
options = _PyLong_AsInt(args[0]);
|
||||
options = PyLong_AsInt(args[0]);
|
||||
if (options == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -5699,7 +5699,7 @@ os_setns(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
nstype = _PyLong_AsInt(args[1]);
|
||||
nstype = PyLong_AsInt(args[1]);
|
||||
if (nstype == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -5765,7 +5765,7 @@ os_unshare(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[0]);
|
||||
flags = PyLong_AsInt(args[0]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6092,7 +6092,7 @@ os_tcgetpgrp(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6198,7 +6198,7 @@ os_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn
|
|||
if (!path_converter(args[0], &path)) {
|
||||
goto exit;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6206,7 +6206,7 @@ os_open(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[2]) {
|
||||
mode = _PyLong_AsInt(args[2]);
|
||||
mode = PyLong_AsInt(args[2]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6283,7 +6283,7 @@ os_close(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6315,11 +6315,11 @@ os_closerange(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("closerange", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd_low = _PyLong_AsInt(args[0]);
|
||||
fd_low = PyLong_AsInt(args[0]);
|
||||
if (fd_low == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
fd_high = _PyLong_AsInt(args[1]);
|
||||
fd_high = PyLong_AsInt(args[1]);
|
||||
if (fd_high == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6348,7 +6348,7 @@ os_dup(PyObject *module, PyObject *arg)
|
|||
int fd;
|
||||
int _return_value;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6416,11 +6416,11 @@ os_dup2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
fd2 = _PyLong_AsInt(args[1]);
|
||||
fd2 = PyLong_AsInt(args[1]);
|
||||
if (fd2 == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6476,11 +6476,11 @@ os_lockf(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("lockf", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
command = _PyLong_AsInt(args[1]);
|
||||
command = PyLong_AsInt(args[1]);
|
||||
if (command == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6531,14 +6531,14 @@ os_lseek(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("lseek", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
if (!Py_off_t_converter(args[1], &position)) {
|
||||
goto exit;
|
||||
}
|
||||
how = _PyLong_AsInt(args[2]);
|
||||
how = PyLong_AsInt(args[2]);
|
||||
if (how == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6574,7 +6574,7 @@ os_read(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("read", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6629,7 +6629,7 @@ os_readv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("readv", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6674,7 +6674,7 @@ os_pread(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("pread", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6743,7 +6743,7 @@ os_preadv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("preadv", nargs, 3, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6754,7 +6754,7 @@ os_preadv(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 4) {
|
||||
goto skip_optional;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[3]);
|
||||
flags = PyLong_AsInt(args[3]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6794,7 +6794,7 @@ os_write(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("write", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6880,11 +6880,11 @@ os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
out_fd = _PyLong_AsInt(args[0]);
|
||||
out_fd = PyLong_AsInt(args[0]);
|
||||
if (out_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
in_fd = _PyLong_AsInt(args[1]);
|
||||
in_fd = PyLong_AsInt(args[1]);
|
||||
if (in_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6909,7 +6909,7 @@ os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
flags = _PyLong_AsInt(args[6]);
|
||||
flags = PyLong_AsInt(args[6]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -6982,11 +6982,11 @@ os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
out_fd = _PyLong_AsInt(args[0]);
|
||||
out_fd = PyLong_AsInt(args[0]);
|
||||
if (out_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
in_fd = _PyLong_AsInt(args[1]);
|
||||
in_fd = PyLong_AsInt(args[1]);
|
||||
if (in_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7020,7 +7020,7 @@ os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
flags = _PyLong_AsInt(args[6]);
|
||||
flags = PyLong_AsInt(args[6]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7087,11 +7087,11 @@ os_sendfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
out_fd = _PyLong_AsInt(args[0]);
|
||||
out_fd = PyLong_AsInt(args[0]);
|
||||
if (out_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
in_fd = _PyLong_AsInt(args[1]);
|
||||
in_fd = PyLong_AsInt(args[1]);
|
||||
if (in_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7141,15 +7141,15 @@ os__fcopyfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("_fcopyfile", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
in_fd = _PyLong_AsInt(args[0]);
|
||||
in_fd = PyLong_AsInt(args[0]);
|
||||
if (in_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
out_fd = _PyLong_AsInt(args[1]);
|
||||
out_fd = PyLong_AsInt(args[1]);
|
||||
if (out_fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[2]);
|
||||
flags = PyLong_AsInt(args[2]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7212,7 +7212,7 @@ os_fstat(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7244,7 +7244,7 @@ os_isatty(PyObject *module, PyObject *arg)
|
|||
int fd;
|
||||
int _return_value;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7309,7 +7309,7 @@ os_pipe2(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int flags;
|
||||
|
||||
flags = _PyLong_AsInt(arg);
|
||||
flags = PyLong_AsInt(arg);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7349,7 +7349,7 @@ os_writev(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("writev", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7396,7 +7396,7 @@ os_pwrite(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("pwrite", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7470,7 +7470,7 @@ os_pwritev(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("pwritev", nargs, 3, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7481,7 +7481,7 @@ os_pwritev(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 4) {
|
||||
goto skip_optional;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[3]);
|
||||
flags = PyLong_AsInt(args[3]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7569,11 +7569,11 @@ os_copy_file_range(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
src = _PyLong_AsInt(args[0]);
|
||||
src = PyLong_AsInt(args[0]);
|
||||
if (src == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
dst = _PyLong_AsInt(args[1]);
|
||||
dst = PyLong_AsInt(args[1]);
|
||||
if (dst == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7684,11 +7684,11 @@ os_splice(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
src = _PyLong_AsInt(args[0]);
|
||||
src = PyLong_AsInt(args[0]);
|
||||
if (src == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
dst = _PyLong_AsInt(args[1]);
|
||||
dst = PyLong_AsInt(args[1]);
|
||||
if (dst == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7796,7 +7796,7 @@ os_mkfifo(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *k
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[1]) {
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -7897,7 +7897,7 @@ os_mknod(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kw
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[1]) {
|
||||
mode = _PyLong_AsInt(args[1]);
|
||||
mode = PyLong_AsInt(args[1]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8029,11 +8029,11 @@ os_makedev(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("makedev", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
major = _PyLong_AsInt(args[0]);
|
||||
major = PyLong_AsInt(args[0]);
|
||||
if (major == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
minor = _PyLong_AsInt(args[1]);
|
||||
minor = PyLong_AsInt(args[1]);
|
||||
if (minor == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8073,7 +8073,7 @@ os_ftruncate(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("ftruncate", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8188,7 +8188,7 @@ os_posix_fallocate(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("posix_fallocate", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8241,7 +8241,7 @@ os_posix_fadvise(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("posix_fadvise", nargs, 4, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8251,7 +8251,7 @@ os_posix_fadvise(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!Py_off_t_converter(args[2], &length)) {
|
||||
goto exit;
|
||||
}
|
||||
advice = _PyLong_AsInt(args[3]);
|
||||
advice = PyLong_AsInt(args[3]);
|
||||
if (advice == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8433,7 +8433,7 @@ os_strerror(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int code;
|
||||
|
||||
code = _PyLong_AsInt(arg);
|
||||
code = PyLong_AsInt(arg);
|
||||
if (code == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8464,7 +8464,7 @@ os_WCOREDUMP(PyObject *module, PyObject *arg)
|
|||
int status;
|
||||
int _return_value;
|
||||
|
||||
status = _PyLong_AsInt(arg);
|
||||
status = PyLong_AsInt(arg);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8534,7 +8534,7 @@ os_WIFCONTINUED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8601,7 +8601,7 @@ os_WIFSTOPPED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8668,7 +8668,7 @@ os_WIFSIGNALED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8735,7 +8735,7 @@ os_WIFEXITED(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8802,7 +8802,7 @@ os_WEXITSTATUS(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8869,7 +8869,7 @@ os_WTERMSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8936,7 +8936,7 @@ os_WSTOPSIG(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
status = _PyLong_AsInt(args[0]);
|
||||
status = PyLong_AsInt(args[0]);
|
||||
if (status == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -8974,7 +8974,7 @@ os_fstatvfs(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -9451,7 +9451,7 @@ os_startfile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
show_cmd = _PyLong_AsInt(args[4]);
|
||||
show_cmd = PyLong_AsInt(args[4]);
|
||||
if (show_cmd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -9550,7 +9550,7 @@ os_device_encoding(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -9853,7 +9853,7 @@ os_setxattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[3]) {
|
||||
flags = _PyLong_AsInt(args[3]);
|
||||
flags = PyLong_AsInt(args[3]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10229,7 +10229,7 @@ os_eventfd(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10406,7 +10406,7 @@ os_get_terminal_size(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10460,7 +10460,7 @@ os_get_inheritable(PyObject *module, PyObject *arg)
|
|||
int fd;
|
||||
int _return_value;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10496,11 +10496,11 @@ os_set_inheritable(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("set_inheritable", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
inheritable = _PyLong_AsInt(args[1]);
|
||||
inheritable = PyLong_AsInt(args[1]);
|
||||
if (inheritable == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10601,7 +10601,7 @@ os_get_blocking(PyObject *module, PyObject *arg)
|
|||
int fd;
|
||||
int _return_value;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -10640,7 +10640,7 @@ os_set_blocking(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("set_blocking", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
fd = _PyLong_AsInt(args[0]);
|
||||
fd = PyLong_AsInt(args[0]);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -11153,7 +11153,7 @@ os_getrandom(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -11990,4 +11990,4 @@ exit:
|
|||
#ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF
|
||||
#define OS_WAITSTATUS_TO_EXITCODE_METHODDEF
|
||||
#endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */
|
||||
/*[clinic end generated code: output=9a5f78bb65470528 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=5e839ce21678ea66 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -288,7 +288,7 @@ pyexpat_xmlparser_SetParamEntityParsing(xmlparseobject *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int flag;
|
||||
|
||||
flag = _PyLong_AsInt(arg);
|
||||
flag = PyLong_AsInt(arg);
|
||||
if (flag == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -498,4 +498,4 @@ exit:
|
|||
#ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||
#define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF
|
||||
#endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */
|
||||
/*[clinic end generated code: output=63efc62e24a7b5a7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6b30852bfc778208 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -146,7 +146,7 @@ readline_append_history_file(PyObject *module, PyObject *const *args, Py_ssize_t
|
|||
if (!_PyArg_CheckPositional("append_history_file", nargs, 1, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
nelements = _PyLong_AsInt(args[0]);
|
||||
nelements = PyLong_AsInt(args[0]);
|
||||
if (nelements == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ readline_set_history_length(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int length;
|
||||
|
||||
length = _PyLong_AsInt(arg);
|
||||
length = PyLong_AsInt(arg);
|
||||
if (length == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -404,7 +404,7 @@ readline_remove_history_item(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int entry_number;
|
||||
|
||||
entry_number = _PyLong_AsInt(arg);
|
||||
entry_number = PyLong_AsInt(arg);
|
||||
if (entry_number == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -439,7 +439,7 @@ readline_replace_history_item(PyObject *module, PyObject *const *args, Py_ssize_
|
|||
if (!_PyArg_CheckPositional("replace_history_item", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
entry_number = _PyLong_AsInt(args[0]);
|
||||
entry_number = PyLong_AsInt(args[0]);
|
||||
if (entry_number == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -582,7 +582,7 @@ readline_get_history_item(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int idx;
|
||||
|
||||
idx = _PyLong_AsInt(arg);
|
||||
idx = PyLong_AsInt(arg);
|
||||
if (idx == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -688,4 +688,4 @@ readline_redisplay(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
#ifndef READLINE_CLEAR_HISTORY_METHODDEF
|
||||
#define READLINE_CLEAR_HISTORY_METHODDEF
|
||||
#endif /* !defined(READLINE_CLEAR_HISTORY_METHODDEF) */
|
||||
/*[clinic end generated code: output=d66c3df7e72f93c4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=2c9c5709b3e00c8b input=a9049054013a1b77]*/
|
||||
|
|
|
@ -27,7 +27,7 @@ resource_getrusage(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int who;
|
||||
|
||||
who = _PyLong_AsInt(arg);
|
||||
who = PyLong_AsInt(arg);
|
||||
if (who == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ resource_getrlimit(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int resource;
|
||||
|
||||
resource = _PyLong_AsInt(arg);
|
||||
resource = PyLong_AsInt(arg);
|
||||
if (resource == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ resource_setrlimit(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setrlimit", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
resource = _PyLong_AsInt(args[0]);
|
||||
resource = PyLong_AsInt(args[0]);
|
||||
if (resource == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ resource_prlimit(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (pid == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
resource = _PyLong_AsInt(args[1]);
|
||||
resource = PyLong_AsInt(args[1]);
|
||||
if (resource == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -178,4 +178,4 @@ exit:
|
|||
#ifndef RESOURCE_PRLIMIT_METHODDEF
|
||||
#define RESOURCE_PRLIMIT_METHODDEF
|
||||
#endif /* !defined(RESOURCE_PRLIMIT_METHODDEF) */
|
||||
/*[clinic end generated code: output=2fbec74335a57230 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=916ecf0eb1927c37 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -568,7 +568,7 @@ select_epoll(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (fastargs[0]) {
|
||||
sizehint = _PyLong_AsInt(fastargs[0]);
|
||||
sizehint = PyLong_AsInt(fastargs[0]);
|
||||
if (sizehint == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -576,7 +576,7 @@ select_epoll(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
flags = _PyLong_AsInt(fastargs[1]);
|
||||
flags = PyLong_AsInt(fastargs[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -655,7 +655,7 @@ select_epoll_fromfd(PyTypeObject *type, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -954,7 +954,7 @@ select_epoll_poll(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs,
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
maxevents = _PyLong_AsInt(args[1]);
|
||||
maxevents = PyLong_AsInt(args[1]);
|
||||
if (maxevents == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1145,7 +1145,7 @@ select_kqueue_fromfd(PyTypeObject *type, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int fd;
|
||||
|
||||
fd = _PyLong_AsInt(arg);
|
||||
fd = PyLong_AsInt(arg);
|
||||
if (fd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1193,7 +1193,7 @@ select_kqueue_control(kqueue_queue_Object *self, PyObject *const *args, Py_ssize
|
|||
goto exit;
|
||||
}
|
||||
changelist = args[0];
|
||||
maxevents = _PyLong_AsInt(args[1]);
|
||||
maxevents = PyLong_AsInt(args[1]);
|
||||
if (maxevents == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1309,4 +1309,4 @@ exit:
|
|||
#ifndef SELECT_KQUEUE_CONTROL_METHODDEF
|
||||
#define SELECT_KQUEUE_CONTROL_METHODDEF
|
||||
#endif /* !defined(SELECT_KQUEUE_CONTROL_METHODDEF) */
|
||||
/*[clinic end generated code: output=64516114287e894d input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=7521d757ef9e63e8 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -33,7 +33,7 @@ signal_default_int_handler(PyObject *module, PyObject *const *args, Py_ssize_t n
|
|||
if (!_PyArg_CheckPositional("default_int_handler", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
signalnum = _PyLong_AsInt(args[0]);
|
||||
signalnum = PyLong_AsInt(args[0]);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ signal_alarm(PyObject *module, PyObject *arg)
|
|||
int seconds;
|
||||
long _return_value;
|
||||
|
||||
seconds = _PyLong_AsInt(arg);
|
||||
seconds = PyLong_AsInt(arg);
|
||||
if (seconds == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ signal_raise_signal(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
||||
signalnum = _PyLong_AsInt(arg);
|
||||
signalnum = PyLong_AsInt(arg);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ signal_signal(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("signal", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
signalnum = _PyLong_AsInt(args[0]);
|
||||
signalnum = PyLong_AsInt(args[0]);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ signal_getsignal(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
||||
signalnum = _PyLong_AsInt(arg);
|
||||
signalnum = PyLong_AsInt(arg);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ signal_strsignal(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int signalnum;
|
||||
|
||||
signalnum = _PyLong_AsInt(arg);
|
||||
signalnum = PyLong_AsInt(arg);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -264,11 +264,11 @@ signal_siginterrupt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("siginterrupt", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
signalnum = _PyLong_AsInt(args[0]);
|
||||
signalnum = PyLong_AsInt(args[0]);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
flag = _PyLong_AsInt(args[1]);
|
||||
flag = PyLong_AsInt(args[1]);
|
||||
if (flag == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -311,7 +311,7 @@ signal_setitimer(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("setitimer", nargs, 2, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
which = _PyLong_AsInt(args[0]);
|
||||
which = PyLong_AsInt(args[0]);
|
||||
if (which == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -349,7 +349,7 @@ signal_getitimer(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int which;
|
||||
|
||||
which = _PyLong_AsInt(arg);
|
||||
which = PyLong_AsInt(arg);
|
||||
if (which == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -385,7 +385,7 @@ signal_pthread_sigmask(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
if (!_PyArg_CheckPositional("pthread_sigmask", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
how = _PyLong_AsInt(args[0]);
|
||||
how = PyLong_AsInt(args[0]);
|
||||
if (how == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ signal_pthread_kill(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
goto exit;
|
||||
}
|
||||
thread_id = PyLong_AsUnsignedLongMask(args[0]);
|
||||
signalnum = _PyLong_AsInt(args[1]);
|
||||
signalnum = PyLong_AsInt(args[1]);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -626,11 +626,11 @@ signal_pidfd_send_signal(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (!_PyArg_CheckPositional("pidfd_send_signal", nargs, 2, 4)) {
|
||||
goto exit;
|
||||
}
|
||||
pidfd = _PyLong_AsInt(args[0]);
|
||||
pidfd = PyLong_AsInt(args[0]);
|
||||
if (pidfd == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
signalnum = _PyLong_AsInt(args[1]);
|
||||
signalnum = PyLong_AsInt(args[1]);
|
||||
if (signalnum == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -641,7 +641,7 @@ signal_pidfd_send_signal(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
|||
if (nargs < 4) {
|
||||
goto skip_optional;
|
||||
}
|
||||
flags = _PyLong_AsInt(args[3]);
|
||||
flags = PyLong_AsInt(args[3]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -705,4 +705,4 @@ exit:
|
|||
#ifndef SIGNAL_PIDFD_SEND_SIGNAL_METHODDEF
|
||||
#define SIGNAL_PIDFD_SEND_SIGNAL_METHODDEF
|
||||
#endif /* !defined(SIGNAL_PIDFD_SEND_SIGNAL_METHODDEF) */
|
||||
/*[clinic end generated code: output=2b54dc607f6e3146 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=9903be3eba6cbc1c input=a9049054013a1b77]*/
|
||||
|
|
|
@ -58,7 +58,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (fastargs[0]) {
|
||||
family = _PyLong_AsInt(fastargs[0]);
|
||||
family = PyLong_AsInt(fastargs[0]);
|
||||
if (family == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
}
|
||||
if (fastargs[1]) {
|
||||
type = _PyLong_AsInt(fastargs[1]);
|
||||
type = PyLong_AsInt(fastargs[1]);
|
||||
if (type == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
}
|
||||
if (fastargs[2]) {
|
||||
proto = _PyLong_AsInt(fastargs[2]);
|
||||
proto = PyLong_AsInt(fastargs[2]);
|
||||
if (proto == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -91,4 +91,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=987155ac4b48a198 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=c44e3ac23999ac60 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -75,7 +75,7 @@ termios_tcsetattr(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
when = _PyLong_AsInt(args[1]);
|
||||
when = PyLong_AsInt(args[1]);
|
||||
if (when == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ termios_tcsendbreak(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
duration = _PyLong_AsInt(args[1]);
|
||||
duration = PyLong_AsInt(args[1]);
|
||||
if (duration == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ termios_tcflush(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
queue = _PyLong_AsInt(args[1]);
|
||||
queue = PyLong_AsInt(args[1]);
|
||||
if (queue == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ termios_tcflow(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyLong_FileDescriptor_Converter(args[0], &fd)) {
|
||||
goto exit;
|
||||
}
|
||||
action = _PyLong_AsInt(args[1]);
|
||||
action = PyLong_AsInt(args[1]);
|
||||
if (action == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -292,4 +292,4 @@ termios_tcsetwinsize(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d286a3906a051869 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=4c79a3bf87370275 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -77,7 +77,7 @@ zlib_compress(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[1]) {
|
||||
level = _PyLong_AsInt(args[1]);
|
||||
level = PyLong_AsInt(args[1]);
|
||||
if (level == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ zlib_compress(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
wbits = _PyLong_AsInt(args[2]);
|
||||
wbits = PyLong_AsInt(args[2]);
|
||||
if (wbits == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ zlib_decompress(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[1]) {
|
||||
wbits = _PyLong_AsInt(args[1]);
|
||||
wbits = PyLong_AsInt(args[1]);
|
||||
if (wbits == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[0]) {
|
||||
level = _PyLong_AsInt(args[0]);
|
||||
level = PyLong_AsInt(args[0]);
|
||||
if (level == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
}
|
||||
}
|
||||
if (args[1]) {
|
||||
method = _PyLong_AsInt(args[1]);
|
||||
method = PyLong_AsInt(args[1]);
|
||||
if (method == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -304,7 +304,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
}
|
||||
}
|
||||
if (args[2]) {
|
||||
wbits = _PyLong_AsInt(args[2]);
|
||||
wbits = PyLong_AsInt(args[2]);
|
||||
if (wbits == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -313,7 +313,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
}
|
||||
}
|
||||
if (args[3]) {
|
||||
memLevel = _PyLong_AsInt(args[3]);
|
||||
memLevel = PyLong_AsInt(args[3]);
|
||||
if (memLevel == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ zlib_compressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
}
|
||||
}
|
||||
if (args[4]) {
|
||||
strategy = _PyLong_AsInt(args[4]);
|
||||
strategy = PyLong_AsInt(args[4]);
|
||||
if (strategy == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -409,7 +409,7 @@ zlib_decompressobj(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[0]) {
|
||||
wbits = _PyLong_AsInt(args[0]);
|
||||
wbits = PyLong_AsInt(args[0]);
|
||||
if (wbits == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ zlib_Compress_flush(compobject *self, PyTypeObject *cls, PyObject *const *args,
|
|||
if (nargs < 1) {
|
||||
goto skip_optional_posonly;
|
||||
}
|
||||
mode = _PyLong_AsInt(args[0]);
|
||||
mode = PyLong_AsInt(args[0]);
|
||||
if (mode == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1129,4 +1129,4 @@ exit:
|
|||
#ifndef ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF
|
||||
#define ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF
|
||||
#endif /* !defined(ZLIB_DECOMPRESS___DEEPCOPY___METHODDEF) */
|
||||
/*[clinic end generated code: output=57ff7b511ab23132 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=3eccb3f7265d53ba input=a9049054013a1b77]*/
|
||||
|
|
|
@ -1203,7 +1203,7 @@ bytearray_hex(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t nargs,
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
bytes_per_sep = _PyLong_AsInt(args[1]);
|
||||
bytes_per_sep = PyLong_AsInt(args[1]);
|
||||
if (bytes_per_sep == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ bytearray_reduce_ex(PyByteArrayObject *self, PyObject *const *args, Py_ssize_t n
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
proto = _PyLong_AsInt(args[0]);
|
||||
proto = PyLong_AsInt(args[0]);
|
||||
if (proto == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1284,4 +1284,4 @@ bytearray_sizeof(PyByteArrayObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return bytearray_sizeof_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=0817195f176cd8e3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=cb94d7ac45f0a4b7 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -958,7 +958,7 @@ bytes_hex(PyBytesObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
bytes_per_sep = _PyLong_AsInt(args[1]);
|
||||
bytes_per_sep = PyLong_AsInt(args[1]);
|
||||
if (bytes_per_sep == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1060,4 +1060,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=bc4801bf1fa628f4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=f4e85363c79c64d3 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -57,27 +57,27 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 16, 18)) {
|
||||
goto exit;
|
||||
}
|
||||
argcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
argcount = PyLong_AsInt(PyTuple_GET_ITEM(args, 0));
|
||||
if (argcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
posonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 1));
|
||||
posonlyargcount = PyLong_AsInt(PyTuple_GET_ITEM(args, 1));
|
||||
if (posonlyargcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
kwonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 2));
|
||||
kwonlyargcount = PyLong_AsInt(PyTuple_GET_ITEM(args, 2));
|
||||
if (kwonlyargcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3));
|
||||
nlocals = PyLong_AsInt(PyTuple_GET_ITEM(args, 3));
|
||||
if (nlocals == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
stacksize = _PyLong_AsInt(PyTuple_GET_ITEM(args, 4));
|
||||
stacksize = PyLong_AsInt(PyTuple_GET_ITEM(args, 4));
|
||||
if (stacksize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
flags = _PyLong_AsInt(PyTuple_GET_ITEM(args, 5));
|
||||
flags = PyLong_AsInt(PyTuple_GET_ITEM(args, 5));
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
goto exit;
|
||||
}
|
||||
qualname = PyTuple_GET_ITEM(args, 12);
|
||||
firstlineno = _PyLong_AsInt(PyTuple_GET_ITEM(args, 13));
|
||||
firstlineno = PyLong_AsInt(PyTuple_GET_ITEM(args, 13));
|
||||
if (firstlineno == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
goto skip_optional_kwonly;
|
||||
}
|
||||
if (args[0]) {
|
||||
co_argcount = _PyLong_AsInt(args[0]);
|
||||
co_argcount = PyLong_AsInt(args[0]);
|
||||
if (co_argcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[1]) {
|
||||
co_posonlyargcount = _PyLong_AsInt(args[1]);
|
||||
co_posonlyargcount = PyLong_AsInt(args[1]);
|
||||
if (co_posonlyargcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[2]) {
|
||||
co_kwonlyargcount = _PyLong_AsInt(args[2]);
|
||||
co_kwonlyargcount = PyLong_AsInt(args[2]);
|
||||
if (co_kwonlyargcount == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[3]) {
|
||||
co_nlocals = _PyLong_AsInt(args[3]);
|
||||
co_nlocals = PyLong_AsInt(args[3]);
|
||||
if (co_nlocals == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[4]) {
|
||||
co_stacksize = _PyLong_AsInt(args[4]);
|
||||
co_stacksize = PyLong_AsInt(args[4]);
|
||||
if (co_stacksize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[5]) {
|
||||
co_flags = _PyLong_AsInt(args[5]);
|
||||
co_flags = PyLong_AsInt(args[5]);
|
||||
if (co_flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
}
|
||||
}
|
||||
if (args[6]) {
|
||||
co_firstlineno = _PyLong_AsInt(args[6]);
|
||||
co_firstlineno = PyLong_AsInt(args[6]);
|
||||
if (co_firstlineno == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -455,7 +455,7 @@ code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t n
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
oparg = _PyLong_AsInt(args[0]);
|
||||
oparg = PyLong_AsInt(args[0]);
|
||||
if (oparg == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -464,4 +464,4 @@ code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t n
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=16c95266bbc4bc03 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0446968a1fbd13b2 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -112,7 +112,7 @@ memoryview__from_flags(PyTypeObject *type, PyObject *const *args, Py_ssize_t nar
|
|||
goto exit;
|
||||
}
|
||||
object = args[0];
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -403,7 +403,7 @@ memoryview_hex(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
bytes_per_sep = _PyLong_AsInt(args[1]);
|
||||
bytes_per_sep = PyLong_AsInt(args[1]);
|
||||
if (bytes_per_sep == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -413,4 +413,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=a4f6992947bcaf25 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=28a632db32b44b63 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -190,7 +190,7 @@ object___reduce_ex__(PyObject *self, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int protocol;
|
||||
|
||||
protocol = _PyLong_AsInt(arg);
|
||||
protocol = PyLong_AsInt(arg);
|
||||
if (protocol == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -266,4 +266,4 @@ object___dir__(PyObject *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return object___dir___impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=43533e6981550e9e input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=baf5ec2093815a3f input=a9049054013a1b77]*/
|
||||
|
|
|
@ -289,7 +289,7 @@ unicode_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
tabsize = _PyLong_AsInt(args[0]);
|
||||
tabsize = PyLong_AsInt(args[0]);
|
||||
if (tabsize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1504,4 +1504,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=ee76a1b49cd4cbb3 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=2e1e1b136ef1b681 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -62,7 +62,7 @@ stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
tabsize = _PyLong_AsInt(args[0]);
|
||||
tabsize = PyLong_AsInt(args[0]);
|
||||
if (tabsize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -278,4 +278,4 @@ stringlib_zfill(PyObject *self, PyObject *arg)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=d44a269805f6739e input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=00e34c03331699fe input=a9049054013a1b77]*/
|
||||
|
|
|
@ -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]*/
|
||||
|
|
|
@ -401,7 +401,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[2]) {
|
||||
reserved = _PyLong_AsInt(args[2]);
|
||||
reserved = PyLong_AsInt(args[2]);
|
||||
if (reserved == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -409,7 +409,7 @@ winreg_CreateKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
access = _PyLong_AsInt(args[3]);
|
||||
access = PyLong_AsInt(args[3]);
|
||||
if (access == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -579,7 +579,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[2]) {
|
||||
access = _PyLong_AsInt(args[2]);
|
||||
access = PyLong_AsInt(args[2]);
|
||||
if (access == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ winreg_DeleteKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
reserved = _PyLong_AsInt(args[3]);
|
||||
reserved = PyLong_AsInt(args[3]);
|
||||
if (reserved == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -695,7 +695,7 @@ winreg_EnumKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!clinic_HKEY_converter(_PyModule_GetState(module), args[0], &key)) {
|
||||
goto exit;
|
||||
}
|
||||
index = _PyLong_AsInt(args[1]);
|
||||
index = PyLong_AsInt(args[1]);
|
||||
if (index == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -752,7 +752,7 @@ winreg_EnumValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!clinic_HKEY_converter(_PyModule_GetState(module), args[0], &key)) {
|
||||
goto exit;
|
||||
}
|
||||
index = _PyLong_AsInt(args[1]);
|
||||
index = PyLong_AsInt(args[1]);
|
||||
if (index == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1016,7 +1016,7 @@ winreg_OpenKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[2]) {
|
||||
reserved = _PyLong_AsInt(args[2]);
|
||||
reserved = PyLong_AsInt(args[2]);
|
||||
if (reserved == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1024,7 +1024,7 @@ winreg_OpenKey(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObje
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
access = _PyLong_AsInt(args[3]);
|
||||
access = PyLong_AsInt(args[3]);
|
||||
if (access == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1133,7 +1133,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[2]) {
|
||||
reserved = _PyLong_AsInt(args[2]);
|
||||
reserved = PyLong_AsInt(args[2]);
|
||||
if (reserved == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1141,7 +1141,7 @@ winreg_OpenKeyEx(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
access = _PyLong_AsInt(args[3]);
|
||||
access = PyLong_AsInt(args[3]);
|
||||
if (access == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1788,4 +1788,4 @@ exit:
|
|||
#ifndef WINREG_QUERYREFLECTIONKEY_METHODDEF
|
||||
#define WINREG_QUERYREFLECTIONKEY_METHODDEF
|
||||
#endif /* !defined(WINREG_QUERYREFLECTIONKEY_METHODDEF) */
|
||||
/*[clinic end generated code: output=d2bf1f58ad07e5f8 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=4d0ec3e43e1b28f4 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -63,7 +63,7 @@ winsound_PlaySound(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto exit;
|
||||
}
|
||||
sound = args[0];
|
||||
flags = _PyLong_AsInt(args[1]);
|
||||
flags = PyLong_AsInt(args[1]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -128,11 +128,11 @@ winsound_Beep(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObjec
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
frequency = _PyLong_AsInt(args[0]);
|
||||
frequency = PyLong_AsInt(args[0]);
|
||||
if (frequency == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
duration = _PyLong_AsInt(args[1]);
|
||||
duration = PyLong_AsInt(args[1]);
|
||||
if (duration == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ winsound_MessageBeep(PyObject *module, PyObject *const *args, Py_ssize_t nargs,
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
type = _PyLong_AsInt(args[0]);
|
||||
type = PyLong_AsInt(args[0]);
|
||||
if (type == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -206,4 +206,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=f70b7730127208d8 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=e63a6516d7a55cb8 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -194,7 +194,7 @@ warnings_warn_explicit(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
goto exit;
|
||||
}
|
||||
filename = args[2];
|
||||
lineno = _PyLong_AsInt(args[3]);
|
||||
lineno = PyLong_AsInt(args[3]);
|
||||
if (lineno == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -243,4 +243,4 @@ warnings_filters_mutated(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return warnings_filters_mutated_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=f8d67e0f75771c36 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0e2b367a662bf51b input=a9049054013a1b77]*/
|
||||
|
|
|
@ -99,7 +99,7 @@ builtin___import__(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
}
|
||||
level = _PyLong_AsInt(args[4]);
|
||||
level = PyLong_AsInt(args[4]);
|
||||
if (level == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ builtin_chr(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int i;
|
||||
|
||||
i = _PyLong_AsInt(arg);
|
||||
i = PyLong_AsInt(arg);
|
||||
if (i == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -342,7 +342,7 @@ builtin_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
goto skip_optional_pos;
|
||||
}
|
||||
if (args[3]) {
|
||||
flags = _PyLong_AsInt(args[3]);
|
||||
flags = PyLong_AsInt(args[3]);
|
||||
if (flags == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -360,7 +360,7 @@ builtin_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
|
|||
}
|
||||
}
|
||||
if (args[5]) {
|
||||
optimize = _PyLong_AsInt(args[5]);
|
||||
optimize = PyLong_AsInt(args[5]);
|
||||
if (optimize == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ skip_optional_pos:
|
|||
if (!noptargs) {
|
||||
goto skip_optional_kwonly;
|
||||
}
|
||||
feature_version = _PyLong_AsInt(args[6]);
|
||||
feature_version = PyLong_AsInt(args[6]);
|
||||
if (feature_version == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1212,4 +1212,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=daeee81b018824f4 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=bb2da8ccae4190e9 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -411,7 +411,7 @@ _imp__override_frozen_modules_for_tests(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int override;
|
||||
|
||||
override = _PyLong_AsInt(arg);
|
||||
override = PyLong_AsInt(arg);
|
||||
if (override == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -442,7 +442,7 @@ _imp__override_multi_interp_extensions_check(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int override;
|
||||
|
||||
override = _PyLong_AsInt(arg);
|
||||
override = PyLong_AsInt(arg);
|
||||
if (override == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -627,4 +627,4 @@ exit:
|
|||
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#define _IMP_EXEC_DYNAMIC_METHODDEF
|
||||
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
|
||||
/*[clinic end generated code: output=a95ec234672280a2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=d97b56ef622cb28a input=a9049054013a1b77]*/
|
||||
|
|
|
@ -29,7 +29,7 @@ monitoring_use_tool_id(PyObject *module, PyObject *const *args, Py_ssize_t nargs
|
|||
if (!_PyArg_CheckPositional("use_tool_id", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
tool_id = _PyLong_AsInt(args[0]);
|
||||
tool_id = PyLong_AsInt(args[0]);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ monitoring_free_tool_id(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int tool_id;
|
||||
|
||||
tool_id = _PyLong_AsInt(arg);
|
||||
tool_id = PyLong_AsInt(arg);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ monitoring_get_tool(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int tool_id;
|
||||
|
||||
tool_id = _PyLong_AsInt(arg);
|
||||
tool_id = PyLong_AsInt(arg);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -117,11 +117,11 @@ monitoring_register_callback(PyObject *module, PyObject *const *args, Py_ssize_t
|
|||
if (!_PyArg_CheckPositional("register_callback", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
tool_id = _PyLong_AsInt(args[0]);
|
||||
tool_id = PyLong_AsInt(args[0]);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
event = _PyLong_AsInt(args[1]);
|
||||
event = PyLong_AsInt(args[1]);
|
||||
if (event == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ monitoring_get_events(PyObject *module, PyObject *arg)
|
|||
int tool_id;
|
||||
int _return_value;
|
||||
|
||||
tool_id = _PyLong_AsInt(arg);
|
||||
tool_id = PyLong_AsInt(arg);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -185,11 +185,11 @@ monitoring_set_events(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (!_PyArg_CheckPositional("set_events", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
tool_id = _PyLong_AsInt(args[0]);
|
||||
tool_id = PyLong_AsInt(args[0]);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
event_set = _PyLong_AsInt(args[1]);
|
||||
event_set = PyLong_AsInt(args[1]);
|
||||
if (event_set == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ monitoring_get_local_events(PyObject *module, PyObject *const *args, Py_ssize_t
|
|||
if (!_PyArg_CheckPositional("get_local_events", nargs, 2, 2)) {
|
||||
goto exit;
|
||||
}
|
||||
tool_id = _PyLong_AsInt(args[0]);
|
||||
tool_id = PyLong_AsInt(args[0]);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -260,12 +260,12 @@ monitoring_set_local_events(PyObject *module, PyObject *const *args, Py_ssize_t
|
|||
if (!_PyArg_CheckPositional("set_local_events", nargs, 3, 3)) {
|
||||
goto exit;
|
||||
}
|
||||
tool_id = _PyLong_AsInt(args[0]);
|
||||
tool_id = PyLong_AsInt(args[0]);
|
||||
if (tool_id == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
code = args[1];
|
||||
event_set = _PyLong_AsInt(args[2]);
|
||||
event_set = PyLong_AsInt(args[2]);
|
||||
if (event_set == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -308,4 +308,4 @@ monitoring__all_events(PyObject *module, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return monitoring__all_events_impl(module);
|
||||
}
|
||||
/*[clinic end generated code: output=11cc0803875b3ffa input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=8baabc8341df3f0e input=a9049054013a1b77]*/
|
||||
|
|
|
@ -48,7 +48,7 @@ marshal_dump(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 3) {
|
||||
goto skip_optional;
|
||||
}
|
||||
version = _PyLong_AsInt(args[2]);
|
||||
version = PyLong_AsInt(args[2]);
|
||||
if (version == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ marshal_dumps(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 2) {
|
||||
goto skip_optional;
|
||||
}
|
||||
version = _PyLong_AsInt(args[1]);
|
||||
version = PyLong_AsInt(args[1]);
|
||||
if (version == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -161,4 +161,4 @@ exit:
|
|||
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=12082d61d2942473 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=0f4ecfd941293f67 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -444,7 +444,7 @@ sys_setrecursionlimit(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int new_limit;
|
||||
|
||||
new_limit = _PyLong_AsInt(arg);
|
||||
new_limit = PyLong_AsInt(arg);
|
||||
if (new_limit == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ sys_set_coroutine_origin_tracking_depth(PyObject *module, PyObject *const *args,
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
depth = _PyLong_AsInt(args[0]);
|
||||
depth = PyLong_AsInt(args[0]);
|
||||
if (depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -675,7 +675,7 @@ sys_setdlopenflags(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int new_val;
|
||||
|
||||
new_val = _PyLong_AsInt(arg);
|
||||
new_val = PyLong_AsInt(arg);
|
||||
if (new_val == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -730,7 +730,7 @@ sys_mdebug(PyObject *module, PyObject *arg)
|
|||
PyObject *return_value = NULL;
|
||||
int flag;
|
||||
|
||||
flag = _PyLong_AsInt(arg);
|
||||
flag = PyLong_AsInt(arg);
|
||||
if (flag == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -808,7 +808,7 @@ sys_set_int_max_str_digits(PyObject *module, PyObject *const *args, Py_ssize_t n
|
|||
if (!args) {
|
||||
goto exit;
|
||||
}
|
||||
maxdigits = _PyLong_AsInt(args[0]);
|
||||
maxdigits = PyLong_AsInt(args[0]);
|
||||
if (maxdigits == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -969,7 +969,7 @@ sys__getframe(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (nargs < 1) {
|
||||
goto skip_optional;
|
||||
}
|
||||
depth = _PyLong_AsInt(args[0]);
|
||||
depth = PyLong_AsInt(args[0]);
|
||||
if (depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1358,7 +1358,7 @@ sys__getframemodulename(PyObject *module, PyObject *const *args, Py_ssize_t narg
|
|||
if (!noptargs) {
|
||||
goto skip_optional_pos;
|
||||
}
|
||||
depth = _PyLong_AsInt(args[0]);
|
||||
depth = PyLong_AsInt(args[0]);
|
||||
if (depth == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -1412,4 +1412,4 @@ exit:
|
|||
#ifndef SYS_GETANDROIDAPILEVEL_METHODDEF
|
||||
#define SYS_GETANDROIDAPILEVEL_METHODDEF
|
||||
#endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */
|
||||
/*[clinic end generated code: output=41937e0843c68009 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6de02cd7d925d1de input=a9049054013a1b77]*/
|
||||
|
|
|
@ -65,11 +65,11 @@ tb_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
goto exit;
|
||||
}
|
||||
tb_frame = (PyFrameObject *)fastargs[1];
|
||||
tb_lasti = _PyLong_AsInt(fastargs[2]);
|
||||
tb_lasti = PyLong_AsInt(fastargs[2]);
|
||||
if (tb_lasti == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
tb_lineno = _PyLong_AsInt(fastargs[3]);
|
||||
tb_lineno = PyLong_AsInt(fastargs[3]);
|
||||
if (tb_lineno == -1 && PyErr_Occurred()) {
|
||||
goto exit;
|
||||
}
|
||||
|
@ -78,4 +78,4 @@ tb_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=7bc9927e362fdfb7 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6303f910c04227a4 input=a9049054013a1b77]*/
|
||||
|
|
|
@ -3398,7 +3398,7 @@ class bool_converter(CConverter):
|
|||
def parse_arg(self, argname: str, displayname: str) -> str | None:
|
||||
if self.format_unit == 'i':
|
||||
return """
|
||||
{paramname} = _PyLong_AsInt({argname});
|
||||
{paramname} = PyLong_AsInt({argname});
|
||||
if ({paramname} == -1 && PyErr_Occurred()) {{{{
|
||||
goto exit;
|
||||
}}}}
|
||||
|
@ -3586,7 +3586,7 @@ class int_converter(CConverter):
|
|||
def parse_arg(self, argname: str, displayname: str) -> str | None:
|
||||
if self.format_unit == 'i':
|
||||
return """
|
||||
{paramname} = _PyLong_AsInt({argname});
|
||||
{paramname} = PyLong_AsInt({argname});
|
||||
if ({paramname} == -1 && PyErr_Occurred()) {{{{
|
||||
goto exit;
|
||||
}}}}
|
||||
|
|
Loading…
Reference in New Issue