mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
This commit is contained in:
parent
1a3284ed69
commit
217cfd1c86
123 changed files with 888 additions and 885 deletions
|
@ -156,7 +156,7 @@ xx_foo(PyObject *self, PyObject *args)
|
|||
if (!PyArg_ParseTuple(args, "ll:foo", &i, &j))
|
||||
return NULL;
|
||||
res = i+j; /* XXX Do something here */
|
||||
return PyInt_FromLong(res);
|
||||
return PyLong_FromLong(res);
|
||||
}
|
||||
|
||||
|
||||
|
@ -187,7 +187,7 @@ xx_bug(PyObject *self, PyObject *args)
|
|||
|
||||
item = PyList_GetItem(list, 0);
|
||||
/* Py_INCREF(item); */
|
||||
PyList_SetItem(list, 1, PyInt_FromLong(0L));
|
||||
PyList_SetItem(list, 1, PyLong_FromLong(0L));
|
||||
PyObject_Print(item, stdout, 0);
|
||||
printf("\n");
|
||||
/* Py_DECREF(item); */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue