/external/libxml2/python/ |
D | types.c | 234 ret = PyCapsule_New((void *) doc, (char *) "xmlDocPtr", NULL); in libxml_xmlDocPtrWrap() 250 ret = PyCapsule_New((void *) node, (char *) "xmlNodePtr", NULL); in libxml_xmlNodePtrWrap() 266 ret = PyCapsule_New((void *) uri, (char *) "xmlURIPtr", NULL); in libxml_xmlURIPtrWrap() 282 ret = PyCapsule_New((void *) ns, (char *) "xmlNsPtr", NULL); in libxml_xmlNsPtrWrap() 298 ret = PyCapsule_New((void *) attr, (char *) "xmlAttrPtr", NULL); in libxml_xmlAttrPtrWrap() 314 ret = PyCapsule_New((void *) attr, (char *) "xmlAttributePtr", NULL); in libxml_xmlAttributePtrWrap() 330 ret = PyCapsule_New((void *) elem, (char *) "xmlElementPtr", NULL); in libxml_xmlElementPtrWrap() 346 ret = PyCapsule_New((void *) ctxt, (char *) "xmlXPathContextPtr", NULL); in libxml_xmlXPathContextPtrWrap() 362 ret = PyCapsule_New((void *)ctxt, (char *)"xmlXPathParserContextPtr", NULL); in libxml_xmlXPathParserContextPtrWrap() 379 ret = PyCapsule_New((void *) ctxt, (char *) "xmlParserCtxtPtr", NULL); in libxml_xmlParserCtxtPtrWrap() [all …]
|
D | libxml_wrap.h | 38 #ifndef PyCapsule_New 39 #define PyCapsule_New PyCObject_FromVoidPtrAndDesc macro
|
/external/llvm-project/mlir/include/mlir-c/Bindings/Python/ |
D | Interop.h | 78 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(attribute), in mlirPythonAttributeToCapsule() 97 return PyCapsule_New(context.ptr, MLIR_PYTHON_CAPSULE_CONTEXT, NULL); in mlirPythonContextToCapsule() 114 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(loc), in mlirPythonLocationToCapsule() 132 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(module), in mlirPythonModuleToCapsule() 150 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(pm), in mlirPythonPassManagerToCapsule() 169 return PyCapsule_New(operation.ptr, MLIR_PYTHON_CAPSULE_OPERATION, NULL); in mlirPythonOperationToCapsule() 187 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(type), in mlirPythonTypeToCapsule()
|
/external/tensorflow/tensorflow/python/eager/ |
D | custom_device_testutil.cc | 56 PyCapsule_New(arrived_flag, "flag", &CallDelete_Flag)); in PYBIND11_MODULE() 58 PyCapsule_New(executed_flag, "flag", &CallDelete_Flag)); in PYBIND11_MODULE() 64 PyCapsule_New(device, "TFE_CustomDevice", &CallDelete_Device)); in PYBIND11_MODULE() 65 tensorflow::Safe_PyObjectPtr device_info_capsule(PyCapsule_New( in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | custom_call_for_test.pyx | 7 from cpython.pycapsule cimport PyCapsule_New 20 cpu_custom_call_targets[fn_name] = PyCapsule_New(fn, name, NULL)
|
/external/tensorflow/tensorflow/python/distribute/parallel_device/ |
D | pywrap_parallel_device.cc | 53 PyCapsule_New(device, "TFE_CustomDevice", &CallDelete_Device)); in PYBIND11_MODULE() 60 PyCapsule_New(device_info, "TFE_CustomDevice_DeviceInfo", in PYBIND11_MODULE()
|
/external/python/cpython2/Include/ |
D | pycapsule.h | 28 PyAPI_FUNC(PyObject *) PyCapsule_New(
|
/external/python/cpython3/Include/ |
D | pycapsule.h | 28 PyAPI_FUNC(PyObject *) PyCapsule_New(
|
/external/protobuf/python/google/protobuf/pyext/ |
D | message_module.cc | 111 PyCapsule_New(new ApiImplementation(), in INITFUNC()
|
/external/python/cffi/c/ |
D | file_emulator.h | 74 ob_capsule = PyCapsule_New(f, "FILE", _close_file_capsule); in PyFile_AsFile()
|
/external/python/cpython2/Doc/includes/ |
D | capsulethunk.h | 27 #define PyCapsule_New(pointer, name, destructor) \ macro
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | cjkcodecs.h | 285 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec() 310 PyCapsule_New((void *)h, PyMultibyteCodec_CAPSULE_NAME, NULL)); in register_maps()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | cjkcodecs.h | 290 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec() 315 PyCapsule_New((void *)h, PyMultibyteCodec_CAPSULE_NAME, NULL)); in register_maps()
|
/external/python/cpython3/Doc/c-api/ |
D | capsule.rst | 31 See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor 40 .. c:function:: PyObject* PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destr…
|
/external/python/cpython2/Doc/c-api/ |
D | capsule.rst | 31 See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor 40 .. c:function:: PyObject* PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destr…
|
/external/python/cpython3/Objects/ |
D | capsule.c | 44 PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destructor) in PyCapsule_New() function
|
/external/python/cpython2/Objects/ |
D | capsule.c | 44 PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destructor) in PyCapsule_New() function
|
/external/python/cpython2/PC/os2vacpp/ |
D | python.def | 100 PyCapsule_New
|
/external/python/cpython2/Modules/_ctypes/ |
D | ctypes.h | 466 (PyCapsule_New(pointer, name, capsule_destructor_ ## name))
|
/external/python/pybind11/include/pybind11/ |
D | pytypes.h | 1202 : object(PyCapsule_New(const_cast<void *>(value), name, destructor), stolen_t{}) { in object() 1209 : object(PyCapsule_New(const_cast<void*>(value), nullptr, destruct), stolen_t{}) { in capsule() 1215 m_ptr = PyCapsule_New(const_cast<void *>(value), nullptr, [](PyObject *o) { in capsule() 1229 m_ptr = PyCapsule_New(reinterpret_cast<void *>(destructor), nullptr, [](PyObject *o) { in capsule()
|
/external/python/cpython2/Doc/data/ |
D | refcounts.dat | 75 PyCapsule_New:PyObject*::+1: 76 PyCapsule_New:void*:pointer:: 77 PyCapsule_New:const char *:name:: 78 PyCapsule_New::void (* destructor)(PyObject* )::
|
/external/python/cpython2/Doc/howto/ |
D | cporting.rst | 228 * The name parameter passed in to :c:func:`PyCapsule_New` is ignored.
|
/external/python/cpython2/Modules/ |
D | cStringIO.c | 769 v = PyCapsule_New(&CAPI, PycStringIO_CAPSULE_NAME, NULL); in initcStringIO()
|
/external/python/cpython3/PC/ |
D | python3.def | 53 PyCapsule_New=python39.PyCapsule_New
|
/external/python/cpython3/Modules/_ctypes/ |
D | callproc.c | 168 errobj = PyCapsule_New(space, CTYPES_CAPSULE_NAME_PYMEM, pymem_destructor); in _ctypes_get_errobj() 724 pa->keep = PyCapsule_New(pa->value.p, CTYPES_CAPSULE_NAME_PYMEM, pymem_destructor); in ConvParam()
|