Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7f7f90b9
Commit
7f7f90b9
authored
May 15, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, another forgotten renaming: varobject -> PyVarObject.
parent
e1b6ab74
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
Include/object.h
Include/object.h
+1
-1
Include/objimpl.h
Include/objimpl.h
+3
-3
Include/rename2.h
Include/rename2.h
+1
-0
Misc/RENAME
Misc/RENAME
+1
-0
Objects/object.c
Objects/object.c
+5
-5
No files found.
Include/object.h
View file @
7f7f90b9
...
...
@@ -117,7 +117,7 @@ typedef struct _object {
typedef
struct
{
PyObject_VAR_HEAD
}
varo
bject
;
}
PyVarO
bject
;
/*
...
...
Include/objimpl.h
View file @
7f7f90b9
...
...
@@ -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
varo
bject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
));
extern
PyVarO
bject
*
_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
,
varo
bject
*
));
extern
PyVarObject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
,
PyVarO
bject
*
));
#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, (
varo
bject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize)))
#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n, (
PyVarO
bject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize)))
#endif
/* MS_COREDLL */
...
...
Include/rename2.h
View file @
7f7f90b9
...
...
@@ -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
...
...
Misc/RENAME
View file @
7f7f90b9
...
...
@@ -79,6 +79,7 @@ intobject PyIntObject
longobject PyLongObject
noobject PyNothingObject
object PyObject
varobject PyVarObject
stringobject PyStringObject
typeobject PyTypeObject
listobject PyListObject
...
...
Objects/object.c
View file @
7f7f90b9
...
...
@@ -129,24 +129,24 @@ _PyObject_New(tp,op)
}
#ifndef MS_COREDLL
varo
bject
*
PyVarO
bject
*
_PyObject_NewVar
(
tp
,
size
)
PyTypeObject
*
tp
;
int
size
;
#else
varo
bject
*
PyVarO
bject
*
_PyObject_NewVar
(
tp
,
size
,
op
)
PyTypeObject
*
tp
;
int
size
;
varo
bject
*
op
;
PyVarO
bject
*
op
;
#endif
{
#ifndef MS_COREDLL
varobject
*
op
=
(
varo
bject
*
)
PyVarObject
*
op
=
(
PyVarO
bject
*
)
malloc
(
tp
->
tp_basicsize
+
size
*
tp
->
tp_itemsize
);
#endif
if
(
op
==
NULL
)
return
(
varo
bject
*
)
PyErr_NoMemory
();
return
(
PyVarO
bject
*
)
PyErr_NoMemory
();
op
->
ob_type
=
tp
;
op
->
ob_size
=
size
;
_Py_NewReference
(
op
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment