allow full numeric expressions as impl_def_vals
[m6w6/ext-psi] / src / types.h
index 17c07198a71f1a43be025fc8caa8bc62a791af77..58a50f55e4697d60d4bf9a9831bdfa12889f6b3a 100644 (file)
 #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 +98,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");