526265b9cbf0c9ec44c8e91b59e7f864b1b1d627
1 #ifndef _PSI_TYPES_LET_FUNC_H
2 #define _PSI_TYPES_LET_FUNC_H
4 typedef impl_val
*(*let_func_handler
)(impl_val
*tmp
, decl_type
*type
, impl_arg
*iarg
, void **to_free
);
6 typedef struct let_func
{
10 let_func_handler handler
;
13 static inline let_func
*init_let_func(token_t type
, const char *name
, impl_var
*var
) {
14 let_func
*func
= calloc(1, sizeof(*func
));
16 func
->name
= strdup(name
);
21 static inline void free_let_func(let_func
*func
) {
22 free_impl_var(func
->var
);