python-2.7.6/include/objimpl.h File Reference
|
#define | PyObject_MALLOC PyMem_MALLOC |
|
#define | PyObject_REALLOC PyMem_REALLOC |
|
#define | PyObject_FREE PyMem_FREE |
|
#define | PyObject_Del PyObject_Free |
|
#define | PyObject_DEL PyObject_FREE |
|
#define | _PyObject_Del PyObject_Free |
|
#define | PyObject_New(type, typeobj) ( (type *) _PyObject_New(typeobj) ) |
|
#define | PyObject_NewVar(type, typeobj, n) ( (type *) _PyObject_NewVar((typeobj), (n)) ) |
|
#define | PyObject_INIT(op, typeobj) ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) |
|
#define | PyObject_INIT_VAR(op, typeobj, size) ( Py_SIZE(op) = (size), PyObject_INIT((op), (typeobj)) ) |
|
#define | _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) |
|
#define | _PyObject_VAR_SIZE(typeobj, nitems) |
|
#define | PyObject_NEW(type, typeobj) |
|
#define | PyObject_NEW_VAR(type, typeobj, n) |
|
#define | PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC) |
|
#define | PyObject_IS_GC(o) |
|
#define | PyObject_GC_Resize(type, op, n) ( (type *) _PyObject_GC_Resize((PyVarObject *)(op), (n)) ) |
|
#define | _PyObject_GC_Del PyObject_GC_Del |
|
#define | _Py_AS_GC(o) ((PyGC_Head *)(o)-1) |
|
#define | _PyGC_REFS_UNTRACKED (-2) |
|
#define | _PyGC_REFS_REACHABLE (-3) |
|
#define | _PyGC_REFS_TENTATIVELY_UNREACHABLE (-4) |
|
#define | _PyObject_GC_TRACK(o) |
|
#define | _PyObject_GC_UNTRACK(o) |
|
#define | _PyObject_GC_IS_TRACKED(o) ((_Py_AS_GC(o))->gc.gc_refs != _PyGC_REFS_UNTRACKED) |
|
#define | _PyObject_GC_MAY_BE_TRACKED(obj) |
|
#define | PyObject_GC_New(type, typeobj) ( (type *) _PyObject_GC_New(typeobj) ) |
|
#define | PyObject_GC_NewVar(type, typeobj, n) ( (type *) _PyObject_GC_NewVar((typeobj), (n)) ) |
|
#define | Py_VISIT(op) |
|
#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) |
|
#define | PyType_SUPPORTS_WEAKREFS(t) |
|
#define | PyObject_GET_WEAKREFS_LISTPTR(o) ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset)) |
|
#define _PyGC_REFS_REACHABLE (-3) |
#define _PyGC_REFS_TENTATIVELY_UNREACHABLE (-4) |
#define _PyGC_REFS_UNTRACKED (-2) |
#define _PyObject_GC_MAY_BE_TRACKED |
( |
|
obj | ) |
|
Value:
#define PyTuple_CheckExact(op)
#define PyObject_IS_GC(o)
#define _PyObject_GC_IS_TRACKED(o)
Definition at line 301 of file objimpl.h.
#define _PyObject_GC_TRACK |
( |
|
o | ) |
|
Value:do { \
Py_FatalError("GC object already tracked"); \
} while (0);
PyGC_Head * _PyGC_generation0
#define _PyGC_REFS_REACHABLE
#define _PyGC_REFS_UNTRACKED
Definition at line 271 of file objimpl.h.
#define _PyObject_GC_UNTRACK |
( |
|
o | ) |
|
Value:do { \
g->gc.gc_prev->gc.gc_next = g->gc.gc_next; \
g->gc.gc_next->gc.gc_prev = g->gc.gc_prev; \
} while (0);
#define _PyGC_REFS_UNTRACKED
Definition at line 286 of file objimpl.h.
#define _PyObject_SIZE |
( |
|
typeobj | ) |
( (typeobj)->tp_basicsize ) |
#define _PyObject_VAR_SIZE |
( |
|
typeobj, |
|
|
|
nitems |
|
) |
| |
Value:
( ( (typeobj)->tp_basicsize + \
(nitems)*(typeobj)->tp_itemsize + \
)
Definition at line 184 of file objimpl.h.
Value:do { \
if (op) { \
if (vret) \
return vret; \
} \
} while (0)
Definition at line 324 of file objimpl.h.
#define PyObject_AS_GC |
( |
|
op | ) |
(op) |
#define PyObject_FROM_GC |
( |
|
op | ) |
(op) |
#define PyObject_GC_Fini |
( |
|
op | ) |
|
#define PyObject_GC_Init |
( |
|
op | ) |
|
#define PyObject_GET_WEAKREFS_LISTPTR |
( |
|
o | ) |
((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset)) |
#define PyObject_IS_GC |
( |
|
o | ) |
|
#define PyObject_NEW |
( |
|
type, |
|
|
|
typeobj |
|
) |
| |
Value:
#define _PyObject_SIZE(typeobj)
PyObject * PyObject_Init(PyObject *, PyTypeObject *)
Definition at line 192 of file objimpl.h.
#define PyObject_NEW_VAR |
( |
|
type, |
|
|
|
typeobj, |
|
|
|
n |
|
) |
| |
Value:
#define _PyObject_VAR_SIZE(typeobj, nitems)
PyVarObject * PyObject_InitVar(PyVarObject *, PyTypeObject *, Py_ssize_t)
Definition at line 196 of file objimpl.h.
#define PyType_SUPPORTS_WEAKREFS |
( |
|
t | ) |
|
Value:
&& ((t)->tp_weaklistoffset > 0))
#define PyType_HasFeature(t, f)
#define Py_TPFLAGS_HAVE_WEAKREFS
Definition at line 344 of file objimpl.h.
void PyObject_Free |
( |
void * |
| ) |
|
void PyObject_GC_Del |
( |
void * |
| ) |
|
void PyObject_GC_Track |
( |
void * |
| ) |
|
void PyObject_GC_UnTrack |
( |
void * |
| ) |
|
void* PyObject_Malloc |
( |
size_t |
| ) |
|
void* PyObject_Realloc |
( |
void * |
, |
|
|
size_t |
|
|
) |
| |
Go to the source code of this file.