mirror of https://github.com/python/cpython
remove unconvincing use of Py_LOCAL
This commit is contained in:
parent
0d441d7d59
commit
6cb526e54d
|
@ -549,7 +549,7 @@ type_get_bases(PyTypeObject *type, void *context)
|
||||||
|
|
||||||
static PyTypeObject *best_base(PyObject *);
|
static PyTypeObject *best_base(PyObject *);
|
||||||
static int mro_internal(PyTypeObject *, PyObject **);
|
static int mro_internal(PyTypeObject *, PyObject **);
|
||||||
Py_LOCAL_INLINE(int) type_is_subtype_base_chain(PyTypeObject *, PyTypeObject *);
|
static int type_is_subtype_base_chain(PyTypeObject *, PyTypeObject *);
|
||||||
static int compatible_for_assignment(PyTypeObject *, PyTypeObject *, const char *);
|
static int compatible_for_assignment(PyTypeObject *, PyTypeObject *, const char *);
|
||||||
static int add_subclass(PyTypeObject*, PyTypeObject*);
|
static int add_subclass(PyTypeObject*, PyTypeObject*);
|
||||||
static int add_all_subclasses(PyTypeObject *type, PyObject *bases);
|
static int add_all_subclasses(PyTypeObject *type, PyObject *bases);
|
||||||
|
@ -1333,7 +1333,7 @@ static PyTypeObject *solid_base(PyTypeObject *type);
|
||||||
|
|
||||||
/* type test with subclassing support */
|
/* type test with subclassing support */
|
||||||
|
|
||||||
Py_LOCAL_INLINE(int)
|
static int
|
||||||
type_is_subtype_base_chain(PyTypeObject *a, PyTypeObject *b)
|
type_is_subtype_base_chain(PyTypeObject *a, PyTypeObject *b)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
|
@ -3805,7 +3805,7 @@ import_copyreg(void)
|
||||||
return PyImport_Import(copyreg_str);
|
return PyImport_Import(copyreg_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_LOCAL(PyObject *)
|
static PyObject *
|
||||||
_PyType_GetSlotNames(PyTypeObject *cls)
|
_PyType_GetSlotNames(PyTypeObject *cls)
|
||||||
{
|
{
|
||||||
PyObject *copyreg;
|
PyObject *copyreg;
|
||||||
|
@ -3858,7 +3858,7 @@ _PyType_GetSlotNames(PyTypeObject *cls)
|
||||||
return slotnames;
|
return slotnames;
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_LOCAL(PyObject *)
|
static PyObject *
|
||||||
_PyObject_GetState(PyObject *obj, int required)
|
_PyObject_GetState(PyObject *obj, int required)
|
||||||
{
|
{
|
||||||
PyObject *state;
|
PyObject *state;
|
||||||
|
@ -4004,7 +4004,7 @@ _PyObject_GetState(PyObject *obj, int required)
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_LOCAL(int)
|
static int
|
||||||
_PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
|
_PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
|
||||||
{
|
{
|
||||||
PyObject *getnewargs, *getnewargs_ex;
|
PyObject *getnewargs, *getnewargs_ex;
|
||||||
|
@ -4100,7 +4100,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_LOCAL(int)
|
static int
|
||||||
_PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
|
_PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
|
||||||
PyObject **dictitems)
|
PyObject **dictitems)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue