static PyObject * _cffi_f_cvCreateMat(PyObject *self, PyObject *args) { int x0; int x1; int x2; CvMat * result; PyObject *arg0; PyObject *arg1; PyObject *arg2; if (!PyArg_UnpackTuple(args, "cvCreateMat", 3, 3, &arg0, &arg1, &arg2)) return NULL; x0 = _cffi_to_c_int(arg0, int); if (x0 == (int)-1 && PyErr_Occurred()) return NULL; x1 = _cffi_to_c_int(arg1, int); if (x1 == (int)-1 && PyErr_Occurred()) return NULL; x2 = _cffi_to_c_int(arg2, int); if (x2 == (int)-1 && PyErr_Occurred()) return NULL; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = cvCreateMat(x0, x1, x2); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ return _cffi_from_c_pointer((char *)result, _cffi_type(12)); }
static PyObject * _cffi_f_fuzzy_new(PyObject *self, PyObject *no_arg) { struct fuzzy_state * result; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = fuzzy_new(); } _cffi_save_errno(); Py_END_ALLOW_THREADS return _cffi_from_c_pointer((char *)result, _cffi_type(3)); }
static PyObject * _cffi_f_new_test_class(PyObject *self, PyObject *noarg) { TestClass * result; Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = new_test_class(); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ (void)noarg; /* unused */ return _cffi_from_c_pointer((char *)result, _cffi_type(3)); }
static PyObject * _cffi_f_create(PyObject *self, PyObject *args) { int x0; wchar_t const * x1; Py_ssize_t datasize; board_t * result; PyObject *arg0; PyObject *arg1; PyObject **aa; aa = _cffi_unpack_args(args, 2, "create"); if (aa == NULL) return NULL; arg0 = aa[0]; arg1 = aa[1]; x0 = _cffi_to_c_int(arg0, int); if (x0 == (int)-1 && PyErr_Occurred()) return NULL; datasize = _cffi_prepare_pointer_call_argument( _cffi_type(2), arg1, (char **)&x1); if (datasize != 0) { if (datasize < 0) return NULL; x1 = (wchar_t const *)alloca((size_t)datasize); memset((void *)x1, 0, (size_t)datasize); if (_cffi_convert_array_from_object((char *)x1, _cffi_type(2), arg1) < 0) return NULL; } Py_BEGIN_ALLOW_THREADS _cffi_restore_errno(); { result = create(x0, x1); } _cffi_save_errno(); Py_END_ALLOW_THREADS (void)self; /* unused */ return _cffi_from_c_pointer((char *)result, _cffi_type(5)); }