[pypy-commit] cffi verifier2: test_verify.test_varargs
arigo
noreply at buildbot.pypy.org
Fri Jul 27 17:04:18 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: verifier2
Changeset: r722:b4ddf1350615
Date: 2012-07-27 15:58 +0200
http://bitbucket.org/cffi/cffi/changeset/b4ddf1350615/
Log: test_verify.test_varargs
diff --git a/cffi/verifier.py b/cffi/verifier.py
--- a/cffi/verifier.py
+++ b/cffi/verifier.py
@@ -337,10 +337,12 @@
def _loaded_cpy_function(self, tp, name, module, library):
if tp.ellipsis:
- return
- BFunc = self.ffi._get_cached_btype(tp)
- wrappername = '_cffi_f_%s' % name
- setattr(library, name, module.load_function(BFunc, wrappername))
+ newfunction = self._load_constant(False, tp, name, module)
+ else:
+ BFunc = self.ffi._get_cached_btype(tp)
+ wrappername = '_cffi_f_%s' % name
+ newfunction = module.load_function(BFunc, wrappername)
+ setattr(library, name, newfunction)
# ----------
# named structs
@@ -661,6 +663,7 @@
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdarg.h>
#include <errno.h>
#include <sys/types.h> /* XXX for ssize_t */
More information about the pypy-commit
mailing list