projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
build: PHP<7.2 compatibility
[m6w6/ext-psi]
/
src
/
types.h
diff --git
a/src/types.h
b/src/types.h
index 0c0ca497ea023647e07abee61b802886f13e06d5..5497880fb60b7c1f99ffc936dde6dd592477ab87 100644
(file)
--- 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/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"
#include "types/num_exp.h"
#include "types/decl_enum_item.h"
#include "types/decl_enum.h"
@@
-59,6
+60,7
@@
#include "types/decl_file.h"
#include "types/free_exp.h"
#include "types/free_stmt.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"
static inline impl_val *deref_impl_val(impl_val *ret_val, struct psi_decl_var *var) {
#include "types/layout.h"
static inline impl_val *deref_impl_val(impl_val *ret_val, struct psi_decl_var *var) {
@@
-93,7
+95,8
@@
static inline impl_val *enref_impl_val(void *ptr, struct psi_decl_var *var) {
return ptr;
}
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");
for (i = !var->arg->var->array_size; i < var->pointer_level; ++i) {
#if 0
fprintf(stderr, "++\n");