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
23683ef2
Commit
23683ef2
authored
Jan 04, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #10333: Remove ancient GC API, which has been deprecated since
Python 2.2.
parent
cae969e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
21 deletions
+7
-21
Include/objimpl.h
Include/objimpl.h
+0
-12
Misc/NEWS
Misc/NEWS
+6
-0
Modules/gcmodule.c
Modules/gcmodule.c
+0
-8
Modules/pyexpat.c
Modules/pyexpat.c
+1
-1
No files found.
Include/objimpl.h
View file @
23683ef2
...
...
@@ -242,9 +242,6 @@ PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
#define PyObject_GC_Resize(type, op, n) \
( (type *) _PyObject_GC_Resize((PyVarObject *)(op), (n)) )
/* for source compatibility with 2.2 */
#define _PyObject_GC_Del PyObject_GC_Del
/* GC information is stored BEFORE the object structure. */
#ifndef Py_LIMITED_API
typedef
union
_gc_head
{
...
...
@@ -328,15 +325,6 @@ PyAPI_FUNC(void) PyObject_GC_Del(void *);
} \
} while (0)
/* This is here for the sake of backwards compatibility. Extensions that
* use the old GC API will still compile but the objects will not be
* tracked by the GC. */
#define PyGC_HEAD_SIZE 0
#define PyObject_GC_Init(op)
#define PyObject_GC_Fini(op)
#define PyObject_AS_GC(op) (op)
#define PyObject_FROM_GC(op) (op)
/* Test if a type supports weak references */
#define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
...
...
Misc/NEWS
View file @
23683ef2
...
...
@@ -101,6 +101,12 @@ Library
- Deprecated assertDictContainsSubset() in the unittest module.
C-API
-----
- Issue #10333: Remove ancient GC API, which has been deprecated since
Python 2.2.
Build
-----
...
...
Modules/gcmodule.c
View file @
23683ef2
...
...
@@ -1511,11 +1511,3 @@ PyObject_GC_Del(void *op)
}
PyObject_FREE
(
g
);
}
/* for binary compatibility with 2.2 */
#undef _PyObject_GC_Del
void
_PyObject_GC_Del
(
PyObject
*
op
)
{
PyObject_GC_Del
(
op
);
}
Modules/pyexpat.c
View file @
23683ef2
...
...
@@ -1522,7 +1522,7 @@ PyDoc_STRVAR(Xmlparsetype__doc__, "XML parser");
static
PyTypeObject
Xmlparsetype
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
"pyexpat.xmlparser"
,
/*tp_name*/
sizeof
(
xmlparseobject
)
+
PyGC_HEAD_SIZE
,
/*tp_basicsize*/
sizeof
(
xmlparseobject
)
,
/*tp_basicsize*/
0
,
/*tp_itemsize*/
/* methods */
(
destructor
)
xmlparse_dealloc
,
/*tp_dealloc*/
...
...
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