projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
cpp
[m6w6/ext-psi]
/
src
/
types
/
num_exp.h
diff --git
a/src/types/num_exp.h
b/src/types/num_exp.h
index ba44807020a44edbcf28febacc2648bd927cba2a..6e122bb867d665aacdc1f507a7fae7148e15aa3b 100644
(file)
--- 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);
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 <assert.h>
#include <assert.h>
-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};
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;
case PSI_T_UINT8: return val.u8;
case PSI_T_UINT16: return val.u16;
case PSI_T_UINT32: return val.u32;