projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
made the real decl_type a union
[m6w6/ext-psi]
/
src
/
engine.c
diff --git
a/src/engine.c
b/src/engine.c
index aa4feeb87d1e0e5ef66e0cede6d1fe1c76bf2ab3..a4bf0d7aced6d50e3cce84b58bf85914bd204855 100644
(file)
--- a/
src/engine.c
+++ b/
src/engine.c
@@
-339,7
+339,7
@@
static inline void psi_clean_array_struct(let_stmt *let, decl_arg *darg) {
decl_type *type = real_decl_type(darg->type);
if (type->type == PSI_T_STRUCT) {
decl_type *type = real_decl_type(darg->type);
if (type->type == PSI_T_STRUCT) {
- void **ptr = (void **) ((char *) darg->mem + type->strct->size);
+ void **ptr = (void **) ((char *) darg->mem + type->
real.
strct->size);
while (*ptr) {
efree(*ptr++);
while (*ptr) {
efree(*ptr++);
@@
-427,7
+427,7
@@
static inline void psi_do_args(impl *impl) {
switch (real->type) {
case PSI_T_STRUCT:
switch (real->type) {
case PSI_T_STRUCT:
- impl->decl->func->ptr = psi_array_to_struct(real->strct, NULL);
+ impl->decl->func->ptr = psi_array_to_struct(real->
real.
strct, NULL);
break;
}
}
break;
}
}