Mercurial > cpython-lru_cache-weakref
diff Include/objimpl.h @ 5535:20c2b715188e legacy-trunk
Oops, another forgotten renaming: varobject -> PyVarObject.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 15 May 1997 21:31:03 +0000 |
| parents | 65d2d8e67da3 |
| children | 60fdb1db1175 |
line wrap: on
line diff
--- a/Include/objimpl.h Thu May 15 19:09:26 1997 +0000 +++ b/Include/objimpl.h Thu May 15 21:31:03 1997 +0000 @@ -56,7 +56,7 @@ #ifndef MS_COREDLL extern PyObject *_PyObject_New Py_PROTO((PyTypeObject *)); -extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int)); +extern PyVarObject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int)); #define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj)) #define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n)) @@ -67,10 +67,10 @@ no guarantee they will use the same heap */ extern PyObject *_PyObject_New Py_PROTO((PyTypeObject *, PyObject *)); -extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int, varobject *)); +extern PyVarObject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int, PyVarObject *)); #define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj,(PyObject *)malloc((typeobj)->tp_basicsize))) -#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n, (varobject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize))) +#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n, (PyVarObject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize))) #endif /* MS_COREDLL */
