X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fnum_exp.h;h=6e122bb867d665aacdc1f507a7fae7148e15aa3b;hp=ba44807020a44edbcf28febacc2648bd927cba2a;hb=6509a2053456d0e63b6f383b757289d3016ed1a5;hpb=ef48feab1da9d7a419980294bcbf03ceefd81d1c diff --git a/src/types/num_exp.h b/src/types/num_exp.h index ba44807..6e122bb 100644 --- a/src/types/num_exp.h +++ b/src/types/num_exp.h @@ -66,14 +66,16 @@ bool psi_num_exp_validate(struct psi_data *data, struct psi_num_exp *exp, struct psi_let_exp *current_let, struct psi_set_exp *current_set, struct psi_decl_enum *current_enum); -token_t psi_num_exp_exec(struct psi_num_exp *exp, impl_val *res, struct psi_call_frame *frame); +token_t psi_num_exp_exec(struct psi_num_exp *exp, impl_val *res, + struct psi_call_frame *frame, HashTable *defs); #include -static inline zend_long psi_long_num_exp(struct psi_num_exp *exp, struct psi_call_frame *frame) { +static inline zend_long psi_long_num_exp(struct psi_num_exp *exp, + struct psi_call_frame *frame, HashTable *defs) { impl_val val = {0}; - switch (psi_num_exp_exec(exp, &val, frame)) { + switch (psi_num_exp_exec(exp, &val, frame, defs)) { case PSI_T_UINT8: return val.u8; case PSI_T_UINT16: return val.u16; case PSI_T_UINT32: return val.u32;