X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fimpl_def_val.h;h=66884642d514f2672e082b582a2de56103564f31;hp=07c02cd1b92db1ac0c6acaef7d70c8c692f0eaf1;hb=f74ce3f29e2dadd9f839c33ad5292e56e9203efd;hpb=2f5af21b263403997e154658635d6b6e6eaab453 diff --git a/src/types/impl_def_val.h b/src/types/impl_def_val.h index 07c02cd..6688464 100644 --- a/src/types/impl_def_val.h +++ b/src/types/impl_def_val.h @@ -27,14 +27,21 @@ #define PSI_TYPES_IMPL_DEF_VAL_H #include "token.h" +#include "types/impl_val.h" -typedef struct impl_def_val { +struct psi_data; +struct psi_impl_type; + +struct psi_impl_def_val { + struct psi_token *token; token_t type; char *text; -} impl_def_val; + impl_val ival; +}; -impl_def_val *init_impl_def_val(token_t t, const char *text); -void free_impl_def_val(impl_def_val *def); -void dump_impl_def_val(int fd, impl_def_val *val); +struct psi_impl_def_val *psi_impl_def_val_init(token_t t, const char *text); +void psi_impl_def_val_free(struct psi_impl_def_val **def_ptr); +void psi_impl_def_val_dump(int fd, struct psi_impl_def_val *val); +bool psi_impl_def_val_validate(struct psi_data *data, struct psi_impl_def_val *def, token_t i_type_t, const char *i_type_n); #endif