X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.h;h=a9060bd5a67d5973edeae5b486935ce751fa52f2;hp=84de6e8d53689bc96b4edac0af8436f406c3ca56;hb=e32a2cebb5fef59de8c202fc2ff936b51945744a;hpb=d9a7378b795f32b91e110bd163c019aa30e79084 diff --git a/src/parser.h b/src/parser.h index 84de6e8..a9060bd 100644 --- a/src/parser.h +++ b/src/parser.h @@ -573,6 +573,7 @@ static inline void free_let_stmt(let_stmt *stmt) { typedef struct set_func { token_t type; char *name; + void (*handler)(zval *, token_t, impl_val *, decl_var *); } set_func; static inline set_func *init_set_func(token_t type, const char *name) { @@ -639,13 +640,12 @@ static inline void free_set_stmt(set_stmt *set) { typedef struct return_stmt { set_value *set; - decl_var *decl; + decl_arg *decl; } return_stmt; static inline return_stmt *init_return_stmt(set_value *val) { return_stmt *ret = calloc(1, sizeof(*ret)); ret->set = val; - ret->decl = val->vars->vars[0]; return ret; }