X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser.h;fp=src%2Fparser.h;h=c9e9f752bb8f8747693229f4b79751f68f7aa1fa;hp=34e849e712dc38a4ed4e90f90ce3df985592b4db;hb=98d971f89db2431ef24dac508cf9797ef93646c6;hpb=af9a6396ef56648e10905597ec6c09f64d8ea46d 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) {