summaryrefslogtreecommitdiff
path: root/c/_ffi_backend.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-06-16 08:12:45 +0200
committerArmin Rigo <arigo@tunes.org>2012-06-16 08:12:45 +0200
commitd4f7b8474202a2e469a1ac60a976dfc6c06d1f18 (patch)
treeaa114b68ac0d76135271b6ff3af908666dee9125 /c/_ffi_backend.c
parent6d74e7acb55f4b240760229371e3255df0e99c0d (diff)
downloadcffi-d4f7b8474202a2e469a1ac60a976dfc6c06d1f18.tar.gz
Uh, ffi_closure_alloc() and ffi_closure_free() are already defined
in recent versions of <ffi.h>, but of course not all of them. Rename.
Diffstat (limited to 'c/_ffi_backend.c')
-rw-r--r--c/_ffi_backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c
index 57e2c7c..d30f4b5 100644
--- a/c/_ffi_backend.c
+++ b/c/_ffi_backend.c
@@ -929,7 +929,7 @@ static void cdataowning_dealloc(CDataObject *cd)
ffi_closure *closure = (ffi_closure *)cd->c_data;
PyObject *args = (PyObject *)(closure->user_data);
Py_XDECREF(args);
- ffi_closure_free(closure);
+ cffi_closure_free(closure);
}
cdata_dealloc(cd);
}
@@ -2913,7 +2913,7 @@ static PyObject *b_callback(PyObject *self, PyObject *args)
return NULL;
}
- closure = ffi_closure_alloc();
+ closure = cffi_closure_alloc();
cd = PyObject_New(CDataObject, &CDataOwning_Type);
if (cd == NULL)
@@ -2941,7 +2941,7 @@ static PyObject *b_callback(PyObject *self, PyObject *args)
error:
closure->user_data = NULL;
if (cd == NULL)
- ffi_closure_free(closure);
+ cffi_closure_free(closure);
else
Py_DECREF(cd);
return NULL;