X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.h;h=d1322569999d5b6b6b234db11a43d2d39763cd35;hp=d2ff1b31736028474f911547564d1b5e5f38c563;hb=3fa287dfd76814b2ec54991c0208a019845a3dc0;hpb=5359ad5c181e5772f350fe1cba060cbed3a05b91 diff --git a/src/context.h b/src/context.h index d2ff1b3..d132256 100644 --- a/src/context.h +++ b/src/context.h @@ -7,11 +7,6 @@ struct psi_parser; struct decl_callinfo; struct impl_vararg; -#define PSI_ERROR 16 -#define PSI_WARNING 32 -typedef void (*psi_context_error_func)(void *context, struct psi_token *token, int type, const char *msg, ...); - - struct psi_context_ops { void (*init)(struct psi_context *C); void (*dtor)(struct psi_context *C); @@ -30,7 +25,7 @@ struct psi_context { size_t count; }; -struct psi_context *psi_context_init(struct psi_context *C, struct psi_context_ops *ops, psi_context_error_func error, unsigned flags); +struct psi_context *psi_context_init(struct psi_context *C, struct psi_context_ops *ops, psi_error_cb error, unsigned flags); void psi_context_build(struct psi_context *C, const char *path); int psi_context_validate(struct psi_context *C, struct psi_parser *P); int psi_context_validate_data(struct psi_data *C, struct psi_data *D);