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
f6d1ea17
Commit
f6d1ea17
authored
Apr 12, 2002
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the type of the tp_free from 'destructor' to 'freefunc'.
parent
2bbdba3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Include/object.h
Include/object.h
+2
-1
No files found.
Include/object.h
View file @
f6d1ea17
...
...
@@ -199,6 +199,7 @@ typedef struct {
}
PyBufferProcs
;
typedef
void
(
*
freefunc
)(
void
*
);
typedef
void
(
*
destructor
)(
PyObject
*
);
typedef
int
(
*
printfunc
)(
PyObject
*
,
FILE
*
,
int
);
typedef
PyObject
*
(
*
getattrfunc
)(
PyObject
*
,
char
*
);
...
...
@@ -284,7 +285,7 @@ typedef struct _typeobject {
initproc
tp_init
;
allocfunc
tp_alloc
;
newfunc
tp_new
;
destructor
tp_free
;
/* Low-level free-memory routine */
freefunc
tp_free
;
/* Low-level free-memory routine */
inquiry
tp_is_gc
;
/* For PyObject_IS_GC */
PyObject
*
tp_bases
;
PyObject
*
tp_mro
;
/* method resolution order */
...
...
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