[pypy-commit] pypy default: Support cffi's "auto-types" branch
arigo
noreply at buildbot.pypy.org
Wed Feb 13 11:27:01 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r61165:22420672392e
Date: 2013-02-13 10:26 +0100
http://bitbucket.org/pypy/pypy/changeset/22420672392e/
Log: Support cffi's "auto-types" branch
diff --git a/pypy/module/_cffi_backend/ctypeptr.py b/pypy/module/_cffi_backend/ctypeptr.py
--- a/pypy/module/_cffi_backend/ctypeptr.py
+++ b/pypy/module/_cffi_backend/ctypeptr.py
@@ -186,7 +186,8 @@
extra = "(*)" # obscure case: see test_array_add
else:
extra = " *"
- self.is_file = (ctitem.name == "struct _IO_FILE")
+ self.is_file = (ctitem.name == "struct _IO_FILE" or
+ ctitem.name == "struct $FILE")
W_CTypePtrBase.__init__(self, space, size, extra, 2, ctitem)
def newp(self, w_init):
More information about the pypy-commit
mailing list