validation and marshaling of structs/unions
[m6w6/ext-psi] / src / types / free_stmt.h
1 #ifndef _PSI_TYPES_FREE_STMT_H
2 #define _PSI_TYPES_FREE_STMT_H
3
4 typedef struct free_stmt {
5 free_calls *calls;
6 } free_stmt;
7
8 static inline free_stmt *init_free_stmt(free_calls *calls) {
9 free_stmt *f = calloc(1, sizeof(*f));
10 f->calls = calls;
11 return f;
12 }
13
14 static inline void free_free_stmt(free_stmt *f) {
15 free_free_calls(f->calls);
16 free(f);
17 }
18
19 #endif