From aa3e33014c729b4bf5721dc00044e72ba1467171 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 19 Nov 2013 17:26:09 +0100 Subject: [PATCH] Remove traces of PyBlitzArray_API --- src/xbob.blitz | 2 +- xbob/io/include/xbob.io/api.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xbob.blitz b/src/xbob.blitz index c8c5a15..29f5770 160000 --- a/src/xbob.blitz +++ b/src/xbob.blitz @@ -1 +1 @@ -Subproject commit c8c5a15149af4fd3a33b53cf377402af660d5f9f +Subproject commit 29f577060a8b7b9bac6ef9655da374d0cef99e07 diff --git a/xbob/io/include/xbob.io/api.h b/xbob/io/include/xbob.io/api.h index 97c43d9..c7145c3 100644 --- a/xbob/io/include/xbob.io/api.h +++ b/xbob/io/include/xbob.io/api.h @@ -290,19 +290,19 @@ typedef struct { # if PY_VERSION_HEX >= 0x02070000 if (PyCapsule_CheckExact(c_api_object)) { - PyBlitzArray_API = (void **)PyCapsule_GetPointer(c_api_object, + PyXbobIo_API = (void **)PyCapsule_GetPointer(c_api_object, PyCapsule_GetName(c_api_object)); } # else if (PyCObject_Check(c_api_object)) { - PyBlitzArray_API = (void **)PyCObject_AsVoidPtr(c_api_object); + XbobIo_API = (void **)PyCObject_AsVoidPtr(c_api_object); } # endif Py_DECREF(c_api_object); Py_DECREF(module); - if (!PyBlitzArray_API) { + if (!XbobIo_API) { PyErr_Format(PyExc_ImportError, # if PY_VERSION_HEX >= 0x02070000 "cannot find C/C++ API capsule at `%s.%s'", -- GitLab