X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes.h;h=4e29a4577dfa3bb18e2934c2098934c09728c9da;hp=0c0ca497ea023647e07abee61b802886f13e06d5;hb=de9b3ba972626195328a82bb108cac86312bd288;hpb=9bcb1df0786a8193d65949c857baaba2f4296e84 diff --git a/src/types.h b/src/types.h index 0c0ca49..4e29a45 100644 --- a/src/types.h +++ b/src/types.h @@ -42,6 +42,7 @@ #include "types/const.h" #include "types/impl_arg.h" #include "types/impl_func.h" +#include "types/number.h" #include "types/num_exp.h" #include "types/decl_enum_item.h" #include "types/decl_enum.h" @@ -54,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; @@ -93,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");