X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=src%2Fparser.h;h=c9e9f752bb8f8747693229f4b79751f68f7aa1fa;hb=98d971f89db2431ef24dac508cf9797ef93646c6;hp=34e849e712dc38a4ed4e90f90ce3df985592b4db;hpb=c264e2866e9d509e4ed73e2542e80d4c7fb0a92b;p=m6w6%2Fext-psi diff --git a/src/parser.h b/src/parser.h index 34e849e..c9e9f75 100644 --- a/src/parser.h +++ b/src/parser.h @@ -919,11 +919,13 @@ static inline void free_let_callback(let_callback *cb) { free(cb); } +typedef impl_val *(*let_func_handler)(impl_val *tmp, decl_type *type, impl_arg *iarg, void **to_free); + typedef struct let_func { token_t type; char *name; impl_var *var; - impl_val *(*handler)(impl_val *tmp, decl_type *type, impl_arg *iarg, void **to_free); + let_func_handler handler; } let_func; static inline let_func *init_let_func(token_t type, const char *name, impl_var *var) {