- align = align_decl_arg(darg, &pos, &len);
- darg->layout = init_decl_struct_layout(pos, len);
-
+ align = psi_decl_arg_align(darg, &pos, &len);
+
+ if (darg->layout) {
+ if (darg->layout->pos != 0) {
+ data->error(data, darg->token, PSI_WARNING,
+ "Offset of %s.%s should be 0", u->name->val,
+ darg->var->name->val);
+ darg->layout->pos = 0;
+ }
+ darg->layout->len = len;
+ } else {
+ darg->layout = psi_layout_init(pos, len, NULL);
+ }