summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyisda/optim_api.h86
1 files changed, 0 insertions, 86 deletions
diff --git a/pyisda/optim_api.h b/pyisda/optim_api.h
deleted file mode 100644
index 9a7d8c3..0000000
--- a/pyisda/optim_api.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Generated by Cython 0.29.1 */
-
-#ifndef __PYX_HAVE_API__pyisda__optim
-#define __PYX_HAVE_API__pyisda__optim
-#ifdef __MINGW64__
-#define MS_WIN64
-#endif
-#include "Python.h"
-
-static double (*__pyx_api_f_6pyisda_5optim_pv)(double, void *) = 0;
-#define pv __pyx_api_f_6pyisda_5optim_pv
-#if !defined(__Pyx_PyIdentifier_FromString)
-#if PY_MAJOR_VERSION < 3
- #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
-#else
- #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
-#endif
-#endif
-
-#ifndef __PYX_HAVE_RT_ImportFunction
-#define __PYX_HAVE_RT_ImportFunction
-static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
- PyObject *d = 0;
- PyObject *cobj = 0;
- union {
- void (*fp)(void);
- void *p;
- } tmp;
- d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
- if (!d)
- goto bad;
- cobj = PyDict_GetItemString(d, funcname);
- if (!cobj) {
- PyErr_Format(PyExc_ImportError,
- "%.200s does not export expected C function %.200s",
- PyModule_GetName(module), funcname);
- goto bad;
- }
-#if PY_VERSION_HEX >= 0x02070000
- if (!PyCapsule_IsValid(cobj, sig)) {
- PyErr_Format(PyExc_TypeError,
- "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
- PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
- goto bad;
- }
- tmp.p = PyCapsule_GetPointer(cobj, sig);
-#else
- {const char *desc, *s1, *s2;
- desc = (const char *)PyCObject_GetDesc(cobj);
- if (!desc)
- goto bad;
- s1 = desc; s2 = sig;
- while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
- if (*s1 != *s2) {
- PyErr_Format(PyExc_TypeError,
- "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
- PyModule_GetName(module), funcname, sig, desc);
- goto bad;
- }
- tmp.p = PyCObject_AsVoidPtr(cobj);}
-#endif
- *f = tmp.fp;
- if (!(*f))
- goto bad;
- Py_DECREF(d);
- return 0;
-bad:
- Py_XDECREF(d);
- return -1;
-}
-#endif
-
-
-static int import_pyisda__optim(void) {
- PyObject *module = 0;
- module = PyImport_ImportModule("pyisda.optim");
- if (!module) goto bad;
- if (__Pyx_ImportFunction(module, "pv", (void (**)(void))&__pyx_api_f_6pyisda_5optim_pv, "double (double, void *)") < 0) goto bad;
- Py_DECREF(module); module = 0;
- return 0;
- bad:
- Py_XDECREF(module);
- return -1;
-}
-
-#endif /* !__PYX_HAVE_API__pyisda__optim */