[pypy-commit] cffi cffi-1.0: in-progress
arigo
noreply at buildbot.pypy.org
Mon May 11 17:24:06 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1973:45d8b5f1fbd0
Date: 2015-05-11 15:00 +0200
http://bitbucket.org/cffi/cffi/changeset/45d8b5f1fbd0/
Log: in-progress
diff --git a/TODO b/TODO
--- a/TODO
+++ b/TODO
@@ -13,3 +13,6 @@
* mention todo: ffi.new("xyz") makes {"xyz": <ctype>} always immortal
* mention todo: dlopen(), by "compiling" a cdef()-only FFI into a .py module
+
+* ffi.set_source() produces a C file that is entirely independent on
+ the OS, what is installed, and the current Python version
diff --git a/_cffi1/cdlopen.c b/_cffi1/cdlopen.c
--- a/_cffi1/cdlopen.c
+++ b/_cffi1/cdlopen.c
@@ -10,6 +10,7 @@
return NULL;
}
+ dlerror(); /* clear error condition */
address = dlsym(libhandle, symbol);
if (address == NULL) {
const char *error = dlerror();
More information about the pypy-commit
mailing list