1 #ifndef _PSI_TYPES_DECL_STRUCTS_H
2 #define _PSI_TYPES_DECL_STRUCTS_H
4 typedef struct decl_structs
{
9 static inline decl_structs
*add_decl_struct(decl_structs
*ss
, decl_struct
*s
) {
11 ss
= calloc(1, sizeof(*ss
));
13 ss
->list
= realloc(ss
->list
, ++ss
->count
* sizeof(*ss
->list
));
14 ss
->list
[ss
->count
-1] = s
;
18 static inline void free_decl_structs(decl_structs
*ss
) {
21 for (i
= 0; i
< ss
->count
; ++i
) {
22 free_decl_struct(ss
->list
[i
]);