mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +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
|
|
@ -46,13 +46,13 @@ used for special class methods; variants without leading and trailing\n\
|
|||
PyObject *a1, *a2; long r; \
|
||||
if(! PyArg_UnpackTuple(a,#OP,2,2,&a1,&a2)) return NULL; \
|
||||
if(-1 == (r=AOP(a1,a2))) return NULL; \
|
||||
return PyInt_FromLong(r); }
|
||||
return PyLong_FromLong(r); }
|
||||
|
||||
#define spamn2(OP,AOP) static PyObject *OP(PyObject *s, PyObject *a) { \
|
||||
PyObject *a1, *a2; Py_ssize_t r; \
|
||||
if(! PyArg_UnpackTuple(a,#OP,2,2,&a1,&a2)) return NULL; \
|
||||
if(-1 == (r=AOP(a1,a2))) return NULL; \
|
||||
return PyInt_FromSsize_t(r); }
|
||||
return PyLong_FromSsize_t(r); }
|
||||
|
||||
#define spami2b(OP,AOP) static PyObject *OP(PyObject *s, PyObject *a) { \
|
||||
PyObject *a1, *a2; long r; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue