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
e36dce69
Commit
e36dce69
authored
Mar 01, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ob_refcnt and tp_maxalloc (and friends) Py_ssize_t.
parent
68bc4f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Include/object.h
Include/object.h
+4
-4
No files found.
Include/object.h
View file @
e36dce69
...
...
@@ -77,7 +77,7 @@ whose size is determined when the object is allocated.
/* PyObject_HEAD defines the initial segment of every PyObject. */
#define PyObject_HEAD \
_PyObject_HEAD_EXTRA \
int ob_refcnt;
\
Py_ssize_t ob_refcnt;
\
struct _typeobject *ob_type;
#define PyObject_HEAD_INIT(type) \
...
...
@@ -333,9 +333,9 @@ typedef struct _typeobject {
#ifdef COUNT_ALLOCS
/* these must be last and never explicitly initialized */
in
t
tp_allocs
;
in
t
tp_frees
;
in
t
tp_maxalloc
;
Py_ssize_
t
tp_allocs
;
Py_ssize_
t
tp_frees
;
Py_ssize_
t
tp_maxalloc
;
struct
_typeobject
*
tp_next
;
#endif
}
PyTypeObject
;
...
...
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