File: | /tmp/pyrefcon/scipy/scipy/optimize/_minpackmodule.c |
Warning: | line 32, column 9 PyObject ownership leak with reference count of 1 |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* | |||
2 | Multipack project. | |||
3 | This file is generated by setmodules.py. Do not modify it. | |||
4 | */ | |||
5 | #include "minpack.h" | |||
6 | static PyObject *minpack_error; | |||
7 | #include "__minpack.h" | |||
8 | static struct PyMethodDef minpack_module_methods[] = { | |||
9 | {"_hybrd", minpack_hybrd, METH_VARARGS0x0001, doc_hybrd}, | |||
10 | {"_hybrj", minpack_hybrj, METH_VARARGS0x0001, doc_hybrj}, | |||
11 | {"_lmdif", minpack_lmdif, METH_VARARGS0x0001, doc_lmdif}, | |||
12 | {"_lmder", minpack_lmder, METH_VARARGS0x0001, doc_lmder}, | |||
13 | {"_chkder", minpack_chkder, METH_VARARGS0x0001, doc_chkder}, | |||
14 | {NULL((void*)0), NULL((void*)0), 0, NULL((void*)0)} | |||
15 | }; | |||
16 | ||||
17 | static struct PyModuleDef moduledef = { | |||
18 | PyModuleDef_HEAD_INIT{ { 1, ((void*)0) }, ((void*)0), 0, ((void*)0), }, | |||
19 | "_minpack", | |||
20 | NULL((void*)0), | |||
21 | -1, | |||
22 | minpack_module_methods, | |||
23 | NULL((void*)0), | |||
24 | NULL((void*)0), | |||
25 | NULL((void*)0), | |||
26 | NULL((void*)0) | |||
27 | }; | |||
28 | PyObject *PyInit__minpack(void) | |||
29 | { | |||
30 | PyObject *m, *d, *s; | |||
31 | ||||
32 | m = PyModule_Create(&moduledef)PyModule_Create2(&moduledef, 1013); | |||
| ||||
| ||||
33 | import_array(){if (_import_array() < 0) {PyErr_Print(); PyErr_SetString( PyExc_ImportError, "numpy.core.multiarray failed to import"); return ((void*)0); } }; | |||
34 | ||||
35 | d = PyModule_GetDict(m); | |||
36 | ||||
37 | s = PyUnicode_FromString(" 1.10 "); | |||
38 | PyDict_SetItemString(d, "__version__", s); | |||
39 | Py_DECREF(s)_Py_DECREF(((PyObject*)(s))); | |||
40 | minpack_error = PyErr_NewException ("minpack.error", NULL((void*)0), NULL((void*)0)); | |||
41 | PyDict_SetItemString(d, "error", minpack_error); | |||
42 | if (PyErr_Occurred()) | |||
43 | Py_FatalError("can't initialize module minpack"); | |||
44 | ||||
45 | return m; | |||
46 | } |
1 | #ifndef PyModule_Create2 |
2 | struct _object; |
3 | typedef struct _object PyObject; |
4 | PyObject* clang_analyzer_PyObject_New_Reference(); |
5 | PyObject* PyModule_Create2(PyModuleDef *def, int module_api_version) { |
6 | return clang_analyzer_PyObject_New_Reference(); |
7 | } |
8 | #else |
9 | #warning "API PyModule_Create2 is defined as a macro." |
10 | #endif |