X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fimpl_func.h;h=52c4a66f3637248111d9f9c3cf67b76dedb7fc36;hp=740a7aa77217e271d8f9afb6ffa62bc08cbaf786;hb=9bcb1df0786a8193d65949c857baaba2f4296e84;hpb=2f5af21b263403997e154658635d6b6e6eaab453 diff --git a/src/types/impl_func.h b/src/types/impl_func.h index 740a7aa..52c4a66 100644 --- a/src/types/impl_func.h +++ b/src/types/impl_func.h @@ -26,20 +26,26 @@ #ifndef PSI_TYPES_IMPL_FUNC_H #define PSI_TYPES_IMPL_FUNC_H -#include "impl_args.h" -#include "impl_type.h" - -typedef struct impl_func { +struct psi_data; +struct psi_token; +struct psi_plist; +struct psi_impl; +struct psi_impl_arg; +struct psi_impl_type; + +struct psi_impl_func { struct psi_token *token; char *name; - impl_args *args; - impl_type *return_type; + struct psi_plist *args; + struct psi_impl_arg *vararg; + struct psi_impl_type *return_type; unsigned return_reference:1; -} impl_func; + unsigned static_memory:1; +}; -impl_func *init_impl_func(char *name, impl_args *args, impl_type *type, - int ret_reference); -void free_impl_func(impl_func *f); -void dump_impl_func(int fd, impl_func *func); +struct psi_impl_func *psi_impl_func_init(const char *name, struct psi_plist *args, struct psi_impl_type *return_type); +void psi_impl_func_free(struct psi_impl_func **f_ptr); +void psi_impl_func_dump(int fd, struct psi_impl_func *func); +bool psi_impl_func_validate(struct psi_data *data, struct psi_impl_func *func); #endif