Home
last modified time | relevance | path

Searched refs:capsule (Results 1 – 2 of 2) sorted by relevance

/petsc/src/binding/petsc4py/src/
H A Dcython.h6 PyObject *capi = NULL, *capsule = NULL; void *p = NULL; in Cython_ImportFunction() local
10 capsule = PyDict_GetItemString(capi, (char *)funcname); in Cython_ImportFunction()
11 if (!capsule) { in Cython_ImportFunction()
18 if (PyCObject_Check(capsule)) { in Cython_ImportFunction()
20 desc = (const char *)PyCObject_GetDesc(capsule); in Cython_ImportFunction()
32 p = PyCObject_AsVoidPtr(capsule); in Cython_ImportFunction()
36 if (PyCapsule_CheckExact(capsule)) { in Cython_ImportFunction()
37 if (!PyCapsule_IsValid(capsule, signature)) { in Cython_ImportFunction()
38 const char *desc = PyCapsule_GetName(capsule); in Cython_ImportFunction()
45 p = PyCapsule_GetPointer(capsule, signature); in Cython_ImportFunction()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Ddlpack.pxi66 # we do not call a used capsule's deleter