Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(29713)

Delta Between Two Patch Sets: Include/objimpl.h

Issue 13390: Hunt memory allocations in addition to reference leaks
Left Patch Set: Created 6 years, 9 months ago
Right Patch Set: Created 6 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Doc/library/sys.rst ('k') | Lib/test/regrtest.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 /* The PyObject_ memory family: high-level object memory interfaces. 1 /* The PyObject_ memory family: high-level object memory interfaces.
2 See pymem.h for the low-level PyMem_ family. 2 See pymem.h for the low-level PyMem_ family.
3 */ 3 */
4 4
5 #ifndef Py_OBJIMPL_H 5 #ifndef Py_OBJIMPL_H
6 #define Py_OBJIMPL_H 6 #define Py_OBJIMPL_H
7 7
8 #include "pymem.h" 8 #include "pymem.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 /* Test if a type supports weak references */ 330 /* Test if a type supports weak references */
331 #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0) 331 #define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
332 332
333 #define PyObject_GET_WEAKREFS_LISTPTR(o) \ 333 #define PyObject_GET_WEAKREFS_LISTPTR(o) \
334 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset)) 334 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
335 335
336 #ifdef __cplusplus 336 #ifdef __cplusplus
337 } 337 }
338 #endif 338 #endif
339 #endif /* !Py_OBJIMPL_H */ 339 #endif /* !Py_OBJIMPL_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+