X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes.h;h=220793c902652f9f1bb78ea8dd84623fb9d17ac5;hp=17c07198a71f1a43be025fc8caa8bc62a791af77;hb=c9384515a81cb64d345b299908b2852f51bb8e6e;hpb=3b0b651ea1b555d8d023e45b43e5eb93b23d00a1 diff --git a/src/types.h b/src/types.h index 17c0719..220793c 100644 --- a/src/types.h +++ b/src/types.h @@ -33,12 +33,12 @@ #include "types/decl_arg.h" #include "types/decl_abi.h" #include "types/decl.h" +#include "types/decl_extvar.h" #include "types/decl_struct.h" #include "types/decl_union.h" #include "types/impl_type.h" #include "types/impl_var.h" #include "types/impl_def_val.h" -#include "types/const_type.h" #include "types/const.h" #include "types/impl_arg.h" #include "types/impl_func.h" @@ -55,12 +55,17 @@ #include "types/set_exp.h" #include "types/set_stmt.h" #include "types/return_stmt.h" +#include "types/return_exp.h" #include "types/free_stmt.h" #include "types/impl.h" #include "types/decl_file.h" #include "types/free_exp.h" #include "types/free_stmt.h" +#include "types/assert_stmt.h" #include "types/layout.h" +#include "types/cpp_exp.h" +#include "types/cpp_macro_call.h" +#include "types/cpp_macro_decl.h" static inline impl_val *deref_impl_val(impl_val *ret_val, struct psi_decl_var *var) { unsigned i; @@ -94,7 +99,8 @@ static inline impl_val *enref_impl_val(void *ptr, struct psi_decl_var *var) { return ptr; } - val = val_ptr = calloc(var->pointer_level + 1, sizeof(void *)); + val = calloc(var->pointer_level + 1, sizeof(void *)); + val_ptr = val; for (i = !var->arg->var->array_size; i < var->pointer_level; ++i) { #if 0 fprintf(stderr, "++\n");