X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ferror.h;h=c155d391b913cee189776bddba8c7e1d63b96159;hp=2c66d88f1f8762f030f86e98053a014b171e0170;hb=f077a911ab3d74c43a6316d745e885446820e7bf;hpb=2f5af21b263403997e154658635d6b6e6eaab453 diff --git a/src/error.h b/src/error.h index 2c66d88..c155d39 100644 --- a/src/error.h +++ b/src/error.h @@ -28,15 +28,17 @@ #include -#include "token.h" - #define PSI_ERROR 16 #define PSI_WARNING 32 +#define PSI_NOTICE 1024 + +struct psi_data; +struct psi_token; -typedef void (*psi_error_cb)(void *context, struct psi_token *token, int type, const char *msg, ...); +typedef void (*psi_error_cb)(struct psi_data *context, struct psi_token *token, int type, const char *msg, ...); -void psi_error_wrapper(void *context, struct psi_token *t, int type, const char *msg, ...); +void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, const char *msg, ...); void psi_error(int type, const char *fn, unsigned ln, const char *msg, ...); void psi_verror(int type, const char *fn, unsigned ln, const char *msg, va_list argv); -#endif /* EXT_PSI_SRC_ERROR_H */ +#endif /* PSI_ERROR_H */