GRAYBYTE WORDPRESS FILE MANAGER4761

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python313/include/python3.13/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python313/include/python3.13//objimpl.h
// The PyObject_ memory family:  high-level object memory interfaces.
// See pymem.h for the low-level PyMem_ family.

#ifndef Py_OBJIMPL_H
#define Py_OBJIMPL_H
#ifdef __cplusplus
extern "C" {
#endif

/* BEWARE:

   Each interface exports both functions and macros.  Extension modules should
   use the functions, to ensure binary compatibility across Python versions.
   Because the Python implementation is free to change internal details, and
   the macros may (or may not) expose details for speed, if you do use the
   macros you must recompile your extensions with each Python release.

   Never mix calls to PyObject_ memory functions with calls to the platform
   malloc/realloc/ calloc/free, or with calls to PyMem_.
*/

/*
Functions and macros for modules that implement new object types.

 - PyObject_New(type, typeobj) allocates memory for a new object of the given
   type, and initializes part of it.  'type' must be the C structure type used
   to represent the object, and 'typeobj' the address of the corresponding
   type object.  Reference count and type pointer are filled in; the rest of
   the bytes of the object are *undefined*!  The resulting expression type is
   'type *'.  The size of the object is determined by the tp_basicsize field
   of the type object.

 - PyObject_NewVar(type, typeobj, n) is similar but allocates a variable-size
   object with room for n items.  In addition to the refcount and type pointer
   fields, this also fills in the ob_size field.

 - PyObject_Free(op) releases the memory allocated for an object.  It does not
   run a destructor -- it only frees the memory.

 - PyObject_Init(op, typeobj) and PyObject_InitVar(op, typeobj, n) don't
   allocate memory.  Instead of a 'type' parameter, they take a pointer to a
   new object (allocated by an arbitrary allocator), and initialize its object
   header fields.

Note that objects created with PyObject_{New, NewVar} are allocated using the
specialized Python allocator (implemented in obmalloc.c), if WITH_PYMALLOC is
enabled.  In addition, a special debugging allocator is used if Py_DEBUG
macro is also defined.

In case a specific form of memory management is needed (for example, if you
must use the platform malloc heap(s), or shared memory, or C++ local storage or
operator new), you must first allocate the object with your custom allocator,
then pass its pointer to PyObject_{Init, InitVar} for filling in its Python-
specific fields:  reference count, type pointer, possibly others.  You should
be aware that Python has no control over these objects because they don't
cooperate with the Python memory manager.  Such objects may not be eligible
for automatic garbage collection and you have to make sure that they are
released accordingly whenever their destructor gets called (cf. the specific
form of memory management you're using).

Unless you have specific memory management requirements, use
PyObject_{New, NewVar, Del}.
*/

/*
 * Raw object memory interface
 * ===========================
 */

/* Functions to call the same malloc/realloc/free as used by Python's
   object allocator.  If WITH_PYMALLOC is enabled, these may differ from
   the platform malloc/realloc/free.  The Python object allocator is
   designed for fast, cache-conscious allocation of many "small" objects,
   and with low hidden memory overhead.

   PyObject_Malloc(0) returns a unique non-NULL pointer if possible.

   PyObject_Realloc(NULL, n) acts like PyObject_Malloc(n).
   PyObject_Realloc(p != NULL, 0) does not return  NULL, or free the memory
   at p.

   Returned pointers must be checked for NULL explicitly; no action is
   performed on failure other than to return NULL (no warning it printed, no
   exception is set, etc).

   For allocating objects, use PyObject_{New, NewVar} instead whenever
   possible.  The PyObject_{Malloc, Realloc, Free} family is exposed
   so that you can exploit Python's small-block allocator for non-object
   uses.  If you must use these routines to allocate object memory, make sure
   the object gets initialized via PyObject_{Init, InitVar} after obtaining
   the raw memory.
*/
PyAPI_FUNC(void *) PyObject_Malloc(size_t size);
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize);
#endif
PyAPI_FUNC(void *) PyObject_Realloc(void *ptr, size_t new_size);
PyAPI_FUNC(void) PyObject_Free(void *ptr);


// Deprecated aliases only kept for backward compatibility.
// PyObject_Del and PyObject_DEL are defined with no parameter to be able to
// use them as function pointers (ex: tp_free = PyObject_Del).
#define PyObject_MALLOC         PyObject_Malloc
#define PyObject_REALLOC        PyObject_Realloc
#define PyObject_FREE           PyObject_Free
#define PyObject_Del            PyObject_Free
#define PyObject_DEL            PyObject_Free


/*
 * Generic object allocator interface
 * ==================================
 */

/* Functions */
PyAPI_FUNC(PyObject *) PyObject_Init(PyObject *, PyTypeObject *);
PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
                                           PyTypeObject *, Py_ssize_t);

#define PyObject_INIT(op, typeobj) \
    PyObject_Init(_PyObject_CAST(op), (typeobj))
#define PyObject_INIT_VAR(op, typeobj, size) \
    PyObject_InitVar(_PyVarObject_CAST(op), (typeobj), (size))


PyAPI_FUNC(PyObject *) _PyObject_New(PyTypeObject *);
PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);

#define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj))

// Alias to PyObject_New(). In Python 3.8, PyObject_NEW() called directly
// PyObject_MALLOC() with _PyObject_SIZE().
#define PyObject_NEW(type, typeobj) PyObject_New(type, (typeobj))

#define PyObject_NewVar(type, typeobj, n) \
                ( (type *) _PyObject_NewVar((typeobj), (n)) )

// Alias to PyObject_NewVar(). In Python 3.8, PyObject_NEW_VAR() called
// directly PyObject_MALLOC() with _PyObject_VAR_SIZE().
#define PyObject_NEW_VAR(type, typeobj, n) PyObject_NewVar(type, (typeobj), (n))


/*
 * Garbage Collection Support
 * ==========================
 */

/* C equivalent of gc.collect(). */
PyAPI_FUNC(Py_ssize_t) PyGC_Collect(void);
/* C API for controlling the state of the garbage collector */
PyAPI_FUNC(int) PyGC_Enable(void);
PyAPI_FUNC(int) PyGC_Disable(void);
PyAPI_FUNC(int) PyGC_IsEnabled(void);

/* Test if a type has a GC head */
#define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)

PyAPI_FUNC(PyVarObject *) _PyObject_GC_Resize(PyVarObject *, Py_ssize_t);
#define PyObject_GC_Resize(type, op, n) \
                ( (type *) _PyObject_GC_Resize(_PyVarObject_CAST(op), (n)) )



PyAPI_FUNC(PyObject *) _PyObject_GC_New(PyTypeObject *);
PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);

/* Tell the GC to track this object.
 *
 * See also private _PyObject_GC_TRACK() macro. */
PyAPI_FUNC(void) PyObject_GC_Track(void *);

/* Tell the GC to stop tracking this object.
 *
 * See also private _PyObject_GC_UNTRACK() macro. */
PyAPI_FUNC(void) PyObject_GC_UnTrack(void *);

PyAPI_FUNC(void) PyObject_GC_Del(void *);

#define PyObject_GC_New(type, typeobj) \
    _Py_CAST(type*, _PyObject_GC_New(typeobj))
#define PyObject_GC_NewVar(type, typeobj, n) \
    _Py_CAST(type*, _PyObject_GC_NewVar((typeobj), (n)))

PyAPI_FUNC(int) PyObject_GC_IsTracked(PyObject *);
PyAPI_FUNC(int) PyObject_GC_IsFinalized(PyObject *);

/* Utility macro to help write tp_traverse functions.
 * To use this macro, the tp_traverse function must name its arguments
 * "visit" and "arg".  This is intended to keep tp_traverse functions
 * looking as much alike as possible.
 */
#define Py_VISIT(op)                                                    \
    do {                                                                \
        if (op) {                                                       \
            int vret = visit(_PyObject_CAST(op), arg);                  \
            if (vret)                                                   \
                return vret;                                            \
        }                                                               \
    } while (0)

#ifndef Py_LIMITED_API
#  define Py_CPYTHON_OBJIMPL_H
#  include "cpython/objimpl.h"
#  undef Py_CPYTHON_OBJIMPL_H
#endif

#ifdef __cplusplus
}
#endif
#endif   // !Py_OBJIMPL_H

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 15 2025 09:39:57
root / root
0755
cpython
--
May 13 2025 08:38:47
root / linksafe
0755
internal
--
May 13 2025 08:38:47
root / linksafe
0755
Python.h
3.867 KB
April 08 2025 13:54:08
root / linksafe
0644
abstract.h
31.588 KB
April 08 2025 13:54:08
root / linksafe
0644
bltinmodule.h
0.258 KB
April 08 2025 13:54:08
root / linksafe
0644
boolobject.h
1.304 KB
April 08 2025 13:54:08
root / linksafe
0644
bytearrayobject.h
1.432 KB
April 08 2025 13:54:08
root / linksafe
0644
bytesobject.h
2.509 KB
April 08 2025 13:54:08
root / linksafe
0644
ceval.h
4.999 KB
April 08 2025 13:54:08
root / linksafe
0644
codecs.h
5.308 KB
April 08 2025 13:54:08
root / linksafe
0644
compile.h
0.438 KB
April 08 2025 13:54:08
root / linksafe
0644
complexobject.h
0.711 KB
April 08 2025 13:54:08
root / linksafe
0644
critical_section.h
0.307 KB
April 08 2025 13:54:08
root / linksafe
0644
datetime.h
9.54 KB
April 08 2025 13:54:08
root / linksafe
0644
descrobject.h
3.008 KB
April 08 2025 13:54:08
root / linksafe
0644
dictobject.h
4.278 KB
April 08 2025 13:54:08
root / linksafe
0644
dynamic_annotations.h
21.944 KB
April 08 2025 13:54:08
root / linksafe
0644
enumobject.h
0.247 KB
April 08 2025 13:54:08
root / linksafe
0644
errcode.h
1.928 KB
April 08 2025 13:54:08
root / linksafe
0644
exports.h
4.487 KB
April 08 2025 13:54:08
root / linksafe
0644
fileobject.h
1.325 KB
April 08 2025 13:54:08
root / linksafe
0644
fileutils.h
1.386 KB
April 08 2025 13:54:08
root / linksafe
0644
floatobject.h
1.496 KB
April 08 2025 13:54:08
root / linksafe
0644
frameobject.h
0.328 KB
April 08 2025 13:54:08
root / linksafe
0644
genericaliasobject.h
0.326 KB
April 08 2025 13:54:08
root / linksafe
0644
import.h
3.159 KB
April 08 2025 13:54:08
root / linksafe
0644
intrcheck.h
0.522 KB
April 08 2025 13:54:08
root / linksafe
0644
iterobject.h
0.513 KB
April 08 2025 13:54:08
root / linksafe
0644
listobject.h
1.873 KB
April 08 2025 13:54:08
root / linksafe
0644
lock.h
0.236 KB
April 08 2025 13:54:08
root / linksafe
0644
longobject.h
3.802 KB
April 08 2025 13:54:08
root / linksafe
0644
marshal.h
0.808 KB
April 08 2025 13:54:08
root / linksafe
0644
memoryobject.h
1.056 KB
April 08 2025 13:54:08
root / linksafe
0644
methodobject.h
5.215 KB
April 08 2025 13:54:08
root / linksafe
0644
modsupport.h
5.504 KB
April 08 2025 13:54:08
root / linksafe
0644
moduleobject.h
3.593 KB
April 08 2025 13:54:08
root / linksafe
0644
monitoring.h
0.323 KB
April 08 2025 13:54:08
root / linksafe
0644
object.h
46.328 KB
April 08 2025 13:54:08
root / linksafe
0644
objimpl.h
8.184 KB
April 08 2025 13:54:08
root / linksafe
0644
opcode.h
1.503 KB
April 08 2025 13:54:08
root / linksafe
0644
opcode_ids.h
11.567 KB
April 08 2025 13:54:08
root / linksafe
0644
osdefs.h
0.828 KB
April 08 2025 13:54:08
root / linksafe
0644
osmodule.h
0.284 KB
April 08 2025 13:54:08
root / linksafe
0644
patchlevel.h
1.269 KB
April 08 2025 13:54:08
root / linksafe
0644
py_curses.h
3.368 KB
April 08 2025 13:54:08
root / linksafe
0644
pyatomic.h
0.251 KB
April 08 2025 13:54:08
root / linksafe
0644
pybuffer.h
5.158 KB
April 08 2025 13:54:08
root / linksafe
0644
pycapsule.h
1.686 KB
April 08 2025 13:54:08
root / linksafe
0644
pyconfig-64.h
56.712 KB
April 25 2025 15:06:15
root / linksafe
0644
pyconfig.h
0.158 KB
April 25 2025 15:10:10
root / linksafe
0644
pydtrace.h
2.348 KB
April 08 2025 13:54:08
root / linksafe
0644
pyerrors.h
12.664 KB
April 08 2025 13:54:08
root / linksafe
0644
pyexpat.h
2.512 KB
April 08 2025 13:54:08
root / linksafe
0644
pyframe.h
0.538 KB
April 08 2025 13:54:08
root / linksafe
0644
pyhash.h
1.617 KB
April 08 2025 13:54:08
root / linksafe
0644
pylifecycle.h
2.355 KB
April 08 2025 13:54:08
root / linksafe
0644
pymacconfig.h
2.438 KB
April 08 2025 13:54:08
root / linksafe
0644
pymacro.h
7.183 KB
April 08 2025 13:54:08
root / linksafe
0644
pymath.h
1.648 KB
April 08 2025 13:54:08
root / linksafe
0644
pymem.h
4.334 KB
April 08 2025 13:54:08
root / linksafe
0644
pyport.h
19.146 KB
April 08 2025 13:54:08
root / linksafe
0644
pystate.h
4.525 KB
April 08 2025 13:54:08
root / linksafe
0644
pystats.h
0.582 KB
April 08 2025 13:54:08
root / linksafe
0644
pystrcmp.h
0.426 KB
April 08 2025 13:54:08
root / linksafe
0644
pystrtod.h
1.218 KB
April 08 2025 13:54:08
root / linksafe
0644
pythonrun.h
1.282 KB
April 08 2025 13:54:08
root / linksafe
0644
pythread.h
3.908 KB
April 08 2025 13:54:08
root / linksafe
0644
pytypedefs.h
0.831 KB
April 08 2025 13:54:08
root / linksafe
0644
rangeobject.h
0.615 KB
April 08 2025 13:54:08
root / linksafe
0644
setobject.h
1.521 KB
April 08 2025 13:54:08
root / linksafe
0644
sliceobject.h
2.6 KB
April 08 2025 13:54:08
root / linksafe
0644
structmember.h
1.606 KB
April 08 2025 13:54:08
root / linksafe
0644
structseq.h
1.277 KB
April 08 2025 13:54:08
root / linksafe
0644
sysmodule.h
1.222 KB
April 08 2025 13:54:08
root / linksafe
0644
traceback.h
0.571 KB
April 08 2025 13:54:08
root / linksafe
0644
tupleobject.h
1.577 KB
April 08 2025 13:54:08
root / linksafe
0644
typeslots.h
2.287 KB
April 08 2025 13:54:08
root / linksafe
0644
unicodeobject.h
34.591 KB
April 08 2025 13:54:08
root / linksafe
0644
warnings.h
1.103 KB
April 08 2025 13:54:08
root / linksafe
0644
weakrefobject.h
1.358 KB
April 08 2025 13:54:08
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF