OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
usr
/
include
/
python3.12
/
cpython
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
abstract.h
7.69 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
bytearrayobject.h
1.14 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
bytesobject.h
4.32 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
cellobject.h
1.05 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
ceval.h
1.61 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
classobject.h
2.19 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
code.h
15.81 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
compile.h
2.6 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
complexobject.h
1.22 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
context.h
1.92 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
descrobject.h
1.6 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
dictobject.h
4.58 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
fileobject.h
818 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
fileutils.h
232 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
floatobject.h
900 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
frameobject.h
1.08 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
funcobject.h
6.98 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
genobject.h
3.24 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
import.h
1.58 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
initconfig.h
7.64 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
interpreteridobject.h
387 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
listobject.h
1.59 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
longintrepr.h
4.77 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
longobject.h
4.57 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
memoryobject.h
2.22 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
methodobject.h
2.22 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
modsupport.h
4.23 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
object.h
20.71 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
objimpl.h
3.24 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
odictobject.h
1.28 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
picklebufobject.h
848 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
pthread_stubs.h
3.42 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pyctype.h
1.35 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pydebug.h
1.38 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pyerrors.h
4.18 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pyfpe.h
444 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
pyframe.h
1.44 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pylifecycle.h
3.34 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pymem.h
3.3 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pystate.h
16.82 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pythonrun.h
4.79 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pythread.h
1.39 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
pytime.h
12.08 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
setobject.h
2.1 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
sysmodule.h
489 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
traceback.h
444 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
tupleobject.h
1.34 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
unicodeobject.h
33.66 KB
02/04/2025 02:48:35 PM
rw-r--r--
📄
warnings.h
564 bytes
02/04/2025 02:48:35 PM
rw-r--r--
📄
weakrefobject.h
1.98 KB
02/04/2025 02:48:35 PM
rw-r--r--
Editing: objimpl.h
Close
#ifndef Py_CPYTHON_OBJIMPL_H # error "this header file must not be included directly" #endif static inline size_t _PyObject_SIZE(PyTypeObject *type) { return _Py_STATIC_CAST(size_t, type->tp_basicsize); } /* _PyObject_VAR_SIZE returns the number of bytes (as size_t) allocated for a vrbl-size object with nitems items, exclusive of gc overhead (if any). The value is rounded up to the closest multiple of sizeof(void *), in order to ensure that pointer fields at the end of the object are correctly aligned for the platform (this is of special importance for subclasses of, e.g., str or int, so that pointers can be stored after the embedded data). Note that there's no memory wastage in doing this, as malloc has to return (at worst) pointer-aligned memory anyway. */ #if ((SIZEOF_VOID_P - 1) & SIZEOF_VOID_P) != 0 # error "_PyObject_VAR_SIZE requires SIZEOF_VOID_P be a power of 2" #endif static inline size_t _PyObject_VAR_SIZE(PyTypeObject *type, Py_ssize_t nitems) { size_t size = _Py_STATIC_CAST(size_t, type->tp_basicsize); size += _Py_STATIC_CAST(size_t, nitems) * _Py_STATIC_CAST(size_t, type->tp_itemsize); return _Py_SIZE_ROUND_UP(size, SIZEOF_VOID_P); } /* This example code implements an object constructor with a custom allocator, where PyObject_New is inlined, and shows the important distinction between two steps (at least): 1) the actual allocation of the object storage; 2) the initialization of the Python specific fields in this storage with PyObject_{Init, InitVar}. PyObject * YourObject_New(...) { PyObject *op; op = (PyObject *) Your_Allocator(_PyObject_SIZE(YourTypeStruct)); if (op == NULL) { return PyErr_NoMemory(); } PyObject_Init(op, &YourTypeStruct); op->ob_field = value; ... return op; } Note that in C++, the use of the new operator usually implies that the 1st step is performed automatically for you, so in a C++ class constructor you would start directly with PyObject_Init/InitVar. */ typedef struct { /* user context passed as the first argument to the 2 functions */ void *ctx; /* allocate an arena of size bytes */ void* (*alloc) (void *ctx, size_t size); /* free an arena */ void (*free) (void *ctx, void *ptr, size_t size); } PyObjectArenaAllocator; /* Get the arena allocator. */ PyAPI_FUNC(void) PyObject_GetArenaAllocator(PyObjectArenaAllocator *allocator); /* Set the arena allocator. */ PyAPI_FUNC(void) PyObject_SetArenaAllocator(PyObjectArenaAllocator *allocator); /* Test if an object implements the garbage collector protocol */ PyAPI_FUNC(int) PyObject_IS_GC(PyObject *obj); /* Code built with Py_BUILD_CORE must include pycore_gc.h instead which defines a different _PyGC_FINALIZED() macro. */ #ifndef Py_BUILD_CORE // Kept for backward compatibility with Python 3.8 # define _PyGC_FINALIZED(o) PyObject_GC_IsFinalized(o) #endif // Test if a type supports weak references PyAPI_FUNC(int) PyType_SUPPORTS_WEAKREFS(PyTypeObject *type); PyAPI_FUNC(PyObject **) PyObject_GET_WEAKREFS_LISTPTR(PyObject *op); PyAPI_FUNC(PyObject *) PyUnstable_Object_GC_NewWithExtraData(PyTypeObject *, size_t);