Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit