1
#ifndef __PYX_HAVE_API__bzrlib___simple_set_pyx
2
#define __PYX_HAVE_API__bzrlib___simple_set_pyx
4
#include "_simple_set_pyx.h"
6
static PyTypeObject *__pyx_ptype_6bzrlib_15_simple_set_pyx_SimpleSet;
7
#define SimpleSet_Type (*__pyx_ptype_6bzrlib_15_simple_set_pyx_SimpleSet)
9
static struct SimpleSetObject *(*SimpleSet_New)(void);
10
static PyObject *(*SimpleSet_Add)(PyObject *,PyObject *);
11
static int (*SimpleSet_Contains)(PyObject *,PyObject *);
12
static int (*SimpleSet_Discard)(PyObject *,PyObject *);
13
static PyObject *(*SimpleSet_Get)(struct SimpleSetObject *,PyObject *);
14
static Py_ssize_t (*SimpleSet_Size)(PyObject *);
15
static int (*SimpleSet_Next)(PyObject *,Py_ssize_t *,PyObject **);
16
static PyObject **(*_SimpleSet_Lookup)(PyObject *,PyObject *);
18
#ifndef __PYX_HAVE_API_FUNC_import_module
19
#define __PYX_HAVE_API_FUNC_import_module
21
#ifndef __PYX_HAVE_RT_ImportModule
22
#define __PYX_HAVE_RT_ImportModule
23
static PyObject *__Pyx_ImportModule(char *name) {
24
PyObject *py_name = 0;
26
py_name = PyString_FromString(name);
29
return PyImport_Import(py_name);
39
#ifndef __PYX_HAVE_RT_ImportFunction
40
#define __PYX_HAVE_RT_ImportFunction
41
static int __Pyx_ImportFunction(PyObject *module, char *funcname, void **f, char *sig) {
46
d = PyObject_GetAttrString(module, "__pyx_capi__");
49
cobj = PyDict_GetItemString(d, funcname);
51
PyErr_Format(PyExc_ImportError,
52
"%s does not export expected C function %s",
53
PyModule_GetName(module), funcname);
56
desc = (char *)PyCObject_GetDesc(cobj);
59
if (strcmp(desc, sig) != 0) {
60
PyErr_Format(PyExc_TypeError,
61
"C function %s.%s has wrong signature (expected %s, got %s)",
62
PyModule_GetName(module), funcname, sig, desc);
65
*f = PyCObject_AsVoidPtr(cobj);
75
#ifndef __PYX_HAVE_RT_ImportType
76
#define __PYX_HAVE_RT_ImportType
77
static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name,
80
PyObject *py_module = 0;
83
py_module = __Pyx_ImportModule(module_name);
86
result = PyObject_GetAttrString(py_module, class_name);
89
if (!PyType_Check(result)) {
90
PyErr_Format(PyExc_TypeError,
91
"%s.%s is not a type object",
92
module_name, class_name);
95
if (((PyTypeObject *)result)->tp_basicsize != size) {
96
PyErr_Format(PyExc_ValueError,
97
"%s.%s does not appear to be the correct type object",
98
module_name, class_name);
101
return (PyTypeObject *)result;
108
static int import_bzrlib___simple_set_pyx(void) {
109
PyObject *module = 0;
110
module = __Pyx_ImportModule("bzrlib._simple_set_pyx");
111
if (!module) goto bad;
112
if (__Pyx_ImportFunction(module, "SimpleSet_New", (void**)&SimpleSet_New, "struct SimpleSetObject *(void)") < 0) goto bad;
113
if (__Pyx_ImportFunction(module, "SimpleSet_Add", (void**)&SimpleSet_Add, "PyObject *(PyObject *,PyObject *)") < 0) goto bad;
114
if (__Pyx_ImportFunction(module, "SimpleSet_Contains", (void**)&SimpleSet_Contains, "int (PyObject *,PyObject *)") < 0) goto bad;
115
if (__Pyx_ImportFunction(module, "SimpleSet_Discard", (void**)&SimpleSet_Discard, "int (PyObject *,PyObject *)") < 0) goto bad;
116
if (__Pyx_ImportFunction(module, "SimpleSet_Get", (void**)&SimpleSet_Get, "PyObject *(struct SimpleSetObject *,PyObject *)") < 0) goto bad;
117
if (__Pyx_ImportFunction(module, "SimpleSet_Size", (void**)&SimpleSet_Size, "Py_ssize_t (PyObject *)") < 0) goto bad;
118
if (__Pyx_ImportFunction(module, "SimpleSet_Next", (void**)&SimpleSet_Next, "int (PyObject *,Py_ssize_t *,PyObject **)") < 0) goto bad;
119
if (__Pyx_ImportFunction(module, "_SimpleSet_Lookup", (void**)&_SimpleSet_Lookup, "PyObject **(PyObject *,PyObject *)") < 0) goto bad;
120
Py_DECREF(module); module = 0;
121
__pyx_ptype_6bzrlib_15_simple_set_pyx_SimpleSet = __Pyx_ImportType("bzrlib._simple_set_pyx", "SimpleSet", sizeof(struct SimpleSetObject)); if (!__pyx_ptype_6bzrlib_15_simple_set_pyx_SimpleSet) goto bad;