| /third_party/python/Modules/ |
| D | _weakref.c | 149 if (PyModule_AddObject(module, "ref", (PyObject *) &_PyWeakref_RefType) < 0) { in weakref_exec() 154 if (PyModule_AddObject(module, "ReferenceType", in weakref_exec() 160 if (PyModule_AddObject(module, "ProxyType", in weakref_exec() 166 if (PyModule_AddObject(module, "CallableProxyType", in weakref_exec()
|
| D | xxlimited_35.c | 259 if (PyModule_AddObject(m, "error", ErrorObject) < 0) { in xx_modexec() 269 if (PyModule_AddObject(m, "Xxo", Xxo_Type) < 0) { in xx_modexec() 279 if (PyModule_AddObject(m, "Str", o) < 0) { in xx_modexec() 289 if (PyModule_AddObject(m, "Null", o) < 0) { in xx_modexec()
|
| D | _testcapimodule.c | 8019 PyModule_AddObject(m, "_test_structmembersType", (PyObject *)&test_structmembersType); in PyInit__testcapi() 8023 PyModule_AddObject(m, "matmulType", (PyObject *)&matmulType); in PyInit__testcapi() 8028 PyModule_AddObject(m, "ipowType", (PyObject *)&ipowType); in PyInit__testcapi() 8033 PyModule_AddObject(m, "awaitType", (PyObject *)&awaitType); in PyInit__testcapi() 8039 PyModule_AddObject(m, "MyList", (PyObject *)&MyList_Type); in PyInit__testcapi() 8044 PyModule_AddObject(m, "MethodDescriptorBase", (PyObject *)&MethodDescriptorBase_Type); in PyInit__testcapi() 8050 PyModule_AddObject(m, "MethodDescriptorDerived", (PyObject *)&MethodDescriptorDerived_Type); in PyInit__testcapi() 8056 PyModule_AddObject(m, "MethodDescriptorNopGet", (PyObject *)&MethodDescriptorNopGet_Type); in PyInit__testcapi() 8062 PyModule_AddObject(m, "MethodDescriptor2", (PyObject *)&MethodDescriptor2_Type); in PyInit__testcapi() 8067 PyModule_AddObject(m, "GenericAlias", (PyObject *)&GenericAlias_Type); in PyInit__testcapi() [all …]
|
| D | _stat.c | 595 if (PyModule_AddObject(module, "IO_REPARSE_TAG_SYMLINK", in stat_exec() 599 if (PyModule_AddObject(module, "IO_REPARSE_TAG_MOUNT_POINT", in stat_exec() 603 if (PyModule_AddObject(module, "IO_REPARSE_TAG_APPEXECLINK", in stat_exec()
|
| D | _testmultiphase.c | 392 if (PyModule_AddObject(m, "Example", temp) != 0) { in execfunc() 403 if (PyModule_AddObject(m, "error", temp) != 0) { in execfunc() 413 if (PyModule_AddObject(m, "Str", temp) != 0) { in execfunc() 840 if (PyModule_AddObject(m, "StateAccessType", temp) != 0) { in meth_state_access_exec()
|
| D | xxsubtype.c | 283 if (PyModule_AddObject(m, "spamlist", in xxsubtype_exec() 288 if (PyModule_AddObject(m, "spamdict", in xxsubtype_exec()
|
| D | resource.c | 367 if (PyModule_AddObject(module, "error", PyExc_OSError) < 0) { in resource_exec() 500 if (PyModule_AddObject(module, "RLIM_INFINITY", v) < 0) { in resource_exec()
|
| D | cmathmodule.c | 1267 if (PyModule_AddObject(mod, "pi", PyFloat_FromDouble(Py_MATH_PI)) < 0) { in cmath_exec() 1270 if (PyModule_AddObject(mod, "e", PyFloat_FromDouble(Py_MATH_E)) < 0) { in cmath_exec() 1274 if (PyModule_AddObject(mod, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) { in cmath_exec() 1277 if (PyModule_AddObject(mod, "inf", PyFloat_FromDouble(m_inf())) < 0) { in cmath_exec() 1281 if (PyModule_AddObject(mod, "infj", in cmath_exec() 1286 if (PyModule_AddObject(mod, "nan", PyFloat_FromDouble(m_nan())) < 0) { in cmath_exec() 1289 if (PyModule_AddObject(mod, "nanj", in cmath_exec()
|
| D | ossaudiodev.c | 1088 if (PyModule_AddObject(module, "control_labels", labels) == -1) in build_namelists() 1090 if (PyModule_AddObject(module, "control_names", names) == -1) in build_namelists() 1143 PyModule_AddObject(m, "error", OSSAudioError); in PyInit_ossaudiodev() 1144 PyModule_AddObject(m, "OSSAudioError", OSSAudioError); in PyInit_ossaudiodev()
|
| D | pyexpat.c | 1646 if (PyModule_AddObject(mod, name, submodule) < 0) { in add_submodule() 1800 if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) { in add_errors_module() 1807 if (PyModule_AddObject(errors_module, "messages", rev_codes_dict) < 0) { in add_errors_module() 1878 if (PyModule_AddObject(mod, "features", list) < 0) { in add_features() 1938 if (PyModule_AddObject(mod, "version_info", versionInfo) < 0) { in pyexpat_exec() 2013 if (PyModule_AddObject(mod, "expat_CAPI", capi_object) < 0) { in pyexpat_exec()
|
| D | binascii.c | 1278 result = PyModule_AddObject(module, "Error", state->Error); in binascii_exec() 1289 result = PyModule_AddObject(module, "Incomplete", state->Incomplete); in binascii_exec()
|
| D | mathmodule.c | 3828 if (PyModule_AddObject(module, "pi", PyFloat_FromDouble(Py_MATH_PI)) < 0) { in math_exec() 3831 if (PyModule_AddObject(module, "e", PyFloat_FromDouble(Py_MATH_E)) < 0) { in math_exec() 3835 if (PyModule_AddObject(module, "tau", PyFloat_FromDouble(Py_MATH_TAU)) < 0) { in math_exec() 3838 if (PyModule_AddObject(module, "inf", PyFloat_FromDouble(m_inf())) < 0) { in math_exec() 3842 if (PyModule_AddObject(module, "nan", PyFloat_FromDouble(m_nan())) < 0) { in math_exec()
|
| /third_party/protobuf/python/google/protobuf/pyext/ |
| D | message.cc | 2931 PyModule_AddObject(m, "MessageMeta", in InitProto2MessageModule() 2949 PyModule_AddObject(m, "Message", reinterpret_cast<PyObject*>(CMessage_Type)); in InitProto2MessageModule() 2957 PyModule_AddObject(m, "RepeatedScalarContainer", in InitProto2MessageModule() 2965 PyModule_AddObject( in InitProto2MessageModule() 3000 PyModule_AddObject(m, "UnknownFieldSet", in InitProto2MessageModule() 3008 PyModule_AddObject(m, "UnknownField", in InitProto2MessageModule() 3016 PyModule_AddObject(m, "ScalarMapContainer", in InitProto2MessageModule() 3018 PyModule_AddObject(m, "MessageMapContainer", in InitProto2MessageModule() 3020 PyModule_AddObject(m, "MapIterator", in InitProto2MessageModule() 3026 PyModule_AddObject( in InitProto2MessageModule() [all …]
|
| D | message_module.cc | 116 PyModule_AddObject(m, "proto_API", api); in INITFUNC()
|
| /third_party/python/Doc/includes/ |
| D | custom.c | 38 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom()
|
| D | sublist.c | 62 if (PyModule_AddObject(m, "SubList", (PyObject *) &SubListType) < 0) { in PyInit_sublist()
|
| D | custom2.c | 131 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom2()
|
| D | custom3.c | 182 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom3()
|
| D | custom4.c | 196 if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) { in PyInit_custom4()
|
| /third_party/skia/third_party/externals/brotli/python/ |
| D | _brotli.cc | 728 PyModule_AddObject(m, "error", BrotliError); in INIT_BROTLI() 735 PyModule_AddObject(m, "Compressor", (PyObject *)&brotli_CompressorType); in INIT_BROTLI() 741 PyModule_AddObject(m, "Decompressor", (PyObject *)&brotli_DecompressorType); in INIT_BROTLI()
|
| /third_party/python/Doc/c-api/ |
| D | module.rst | 489 .. c:function:: int PyModule_AddObject(PyObject *module, const char *name, PyObject *value) 496 :c:func:`PyModule_AddObject` function. 500 Unlike other functions that steal references, ``PyModule_AddObject()`` 515 if (PyModule_AddObject(module, "spam", obj) < 0) { 519 // PyModule_AddObject() stole a reference to obj: 531 if (PyModule_AddObject(module, "spam", obj) < 0) { 535 // PyModule_AddObject() stole a reference to obj:
|
| /third_party/python/Include/ |
| D | modsupport.h | 51 PyAPI_FUNC(int) PyModule_AddObject(PyObject *mod, const char *, PyObject *value);
|
| /third_party/python/Modules/_multiprocessing/ |
| D | multiprocessing.c | 255 if (PyModule_AddObject(module, "flags", flags) < 0) { in multiprocessing_exec()
|
| /third_party/python/Modules/_decimal/ |
| D | _decimal.c | 5922 CHECK_INT(PyModule_AddObject(m, "Decimal", (PyObject *)&PyDec_Type)); in PyInit__decimal() 5924 CHECK_INT(PyModule_AddObject(m, "Context", in PyInit__decimal() 5927 CHECK_INT(PyModule_AddObject(m, "DecimalTuple", (PyObject *)DecimalTuple)); in PyInit__decimal() 5935 CHECK_INT(PyModule_AddObject(m, "DecimalException", DecimalException)); in PyInit__decimal() 5976 CHECK_INT(PyModule_AddObject(m, cm->name, cm->ex)); in PyInit__decimal() 6007 CHECK_INT(PyModule_AddObject(m, cm->name, cm->ex)); in PyInit__decimal() 6015 CHECK_INT(PyModule_AddObject(m, "DefaultContext", in PyInit__decimal() 6021 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_False)); in PyInit__decimal() 6025 CHECK_INT(PyModule_AddObject(m, "HAVE_CONTEXTVAR", Py_True)); in PyInit__decimal() 6028 CHECK_INT(PyModule_AddObject(m, "HAVE_THREADS", Py_True)); in PyInit__decimal() [all …]
|
| /third_party/python/PC/ |
| D | msvcrtmodule.c | 636 st = PyModule_AddObject(m, "CRT_ASSEMBLY_VERSION", version); in PyInit_msvcrt()
|