Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1733:d06845968a47
Date: 2015-04-16 15:29 +0200
http://bitbucket.org/cffi/cffi/changeset/d06845968a47/
Log: comments
diff --git a/new/realize_c_type.c b/new/realize_c_type.c
--- a/new/realize_c_type.c
+++ b/new/realize_c_type.c
@@ -155,9 +155,16 @@
Py_INCREF(x);
}
else {
+ x = new_struct_or_union_type(s->name, CT_STRUCT);
+ /* We are going to update the "primary" OP_STRUCT_OR_UNION
+ slot below, which may be the same or a different one as
+ the "current" slot. If it is a different one, the
+ current slot is not updated. But in this case, the
+ next time we walk the same current slot, we'll find the
+ 'x' object in the primary slot (op2, above) and then we
+ will update the current slot. */
opcodes = ctx->types;
index = s->type_index;
- x = new_struct_or_union_type(s->name, CT_STRUCT);
}
break;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit