[pypy-commit] cffi cffi-1.0: fix

arigo noreply at buildbot.pypy.org
Wed Apr 22 16:10:02 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1776:9972564d7f2c
Date: 2015-04-22 16:10 +0200
http://bitbucket.org/cffi/cffi/changeset/9972564d7f2c/

Log:	fix

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -572,12 +572,11 @@
     pending_completion = []
     for name, tp in sorted(ffi._parser._declarations.items()):
         if name.startswith('struct '):
-            tp.check_not_partial()
             basename = name[7:]
             BType = _cffi1_backend.new_struct_type(basename)
             struct_unions.append(basename)
             struct_unions.append(BType)
-            if tp.fldtypes is not None:
+            if not tp.partial and tp.fldtypes is not None:
                 pending_completion.append((tp, BType))
     #
     ffi.__set_types(struct_unions)


More information about the pypy-commit mailing list