X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fnumber.h;h=9f3363c6c0f29401c203ba0f92c73d42f88ae540;hp=b691a7a331222cf36a939608d058d2fc34417137;hb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;hpb=35ae2559447092572209f8b237460ceb551293ff diff --git a/src/types/number.h b/src/types/number.h index b691a7a..9f3363c 100644 --- a/src/types/number.h +++ b/src/types/number.h @@ -36,6 +36,7 @@ struct psi_let_exp; struct psi_set_exp; struct psi_call_frame; struct psi_cpp_macro_call; +struct psi_validate_scope; enum psi_number_suffix { PSI_NUMBER_U = 0x0100, @@ -62,7 +63,7 @@ struct psi_number { token_t type; unsigned flags; union { - char *numb; + zend_string *numb; impl_val ival; struct psi_const *cnst; struct psi_decl_var *dvar; @@ -78,11 +79,13 @@ void psi_number_free(struct psi_number **exp_ptr); void psi_number_dump(int fd, struct psi_number *exp); bool psi_number_validate(struct psi_data *data, struct psi_number *exp, - struct psi_impl *impl, struct psi_decl *cb_decl, - struct psi_let_exp *current_let, struct psi_set_exp *current_set, - struct psi_decl_enum *current_enum); + struct psi_validate_scope *scope); token_t psi_number_eval(struct psi_number *exp, impl_val *res, - struct psi_call_frame *frame, HashTable *defs); + struct psi_call_frame *frame, HashTable *defs, + struct psi_num_exp *rec_guard); + +struct psi_plist *psi_number_tokens(struct psi_number *exp, + struct psi_plist *list); #endif