[pypy-commit] cffi default: Bah, handle_t is some kind of keyword on Windows. Can't use it in the
arigo
noreply at buildbot.pypy.org
Sat Aug 11 21:22:15 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r801:a9e784979795
Date: 2012-08-11 21:21 +0200
http://bitbucket.org/cffi/cffi/changeset/a9e784979795/
Log: Bah, handle_t is some kind of keyword on Windows. Can't use it in
the test.
diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -750,12 +750,12 @@
# anyway. XXX think about something better :-(
ffi = FFI()
ffi.cdef("""
- typedef struct { ...; } handle_t;
- handle_t foo(void);
+ typedef struct { ...; } myhandle_t;
+ myhandle_t foo(void);
""")
lib = ffi.verify("""
- typedef short handle_t;
- handle_t foo(void) { return 42; }
+ typedef short myhandle_t;
+ myhandle_t foo(void) { return 42; }
""")
h = lib.foo()
assert ffi.sizeof(h) == ffi.sizeof("short")
More information about the pypy-commit
mailing list