diff options
author | Guido van Rossum <guido@python.org> | 1997-05-15 21:31:03 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-15 21:31:03 (GMT) |
commit | d0c87ee6c4204864984a8bf0f90eba8a5e4f9471 (patch) | |
tree | cadda681170954a0d6db7ac063a1e8135ab45d95 /Include | |
parent | fe28fa05e9c08978fa6e162ddf64e873c84cdc9a (diff) | |
download | cpython-d0c87ee6c4204864984a8bf0f90eba8a5e4f9471.zip cpython-d0c87ee6c4204864984a8bf0f90eba8a5e4f9471.tar.gz cpython-d0c87ee6c4204864984a8bf0f90eba8a5e4f9471.tar.bz2 |
Oops, another forgotten renaming: varobject -> PyVarObject.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 2 | ||||
-rw-r--r-- | Include/objimpl.h | 6 | ||||
-rw-r--r-- | Include/rename2.h | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/Include/object.h b/Include/object.h index 45bb41e..45e0f02 100644 --- a/Include/object.h +++ b/Include/object.h @@ -117,7 +117,7 @@ typedef struct _object { typedef struct { PyObject_VAR_HEAD -} varobject; +} PyVarObject; /* diff --git a/Include/objimpl.h b/Include/objimpl.h index 5e1fa28..77177d0 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -56,7 +56,7 @@ n * tp_itemsize. This fills in the ob_size field as well. #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 @@ extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int)); 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 */ diff --git a/Include/rename2.h b/Include/rename2.h index 3489f14..b571cd4 100644 --- a/Include/rename2.h +++ b/Include/rename2.h @@ -115,6 +115,7 @@ PERFORMANCE OF THIS SOFTWARE. #define longobject PyLongObject #define noobject PyNothingObject #define object PyObject +#define varobject PyVarObject #define stringobject PyStringObject #define typeobject PyTypeObject #define listobject PyListObject |