85e467b7da403022bb59c13221a091898ef54668
1 #ifndef _PSI_TYPES_CONSTANT_H
2 #define _PSI_TYPES_CONSTANT_H
4 typedef struct constant
{
10 static inline constant
*init_constant(const_type
*type
, const char *name
, impl_def_val
*val
) {
11 constant
*c
= calloc(1, sizeof(*c
));
13 c
->name
= strdup(name
);
18 static inline void free_constant(constant
*constant
) {
19 free_const_type(constant
->type
);
21 free_impl_def_val(constant
->val
);