8415e49c80e3ec1abe5722e5999c5a8f6edacb28
1 #ifndef _PSI_TYPES_LET_STMT_H
2 #define _PSI_TYPES_LET_STMT_H
4 typedef struct let_stmt
{
9 static inline let_stmt
*init_let_stmt(decl_var
*var
, let_val
*val
) {
10 let_stmt
*let
= calloc(1, sizeof(*let
));
16 static inline void free_let_stmt(let_stmt
*stmt
) {
18 if (stmt
->val
->kind
== PSI_LET_TMP
&& stmt
->var
->arg
) {
19 free_decl_arg(stmt
->var
->arg
);
21 free_let_val(stmt
->val
);
23 free_decl_var(stmt
->var
);