cpp: sizeof, anon decls, etc
[m6w6/ext-psi] / src / error.h
index 2c66d88f1f8762f030f86e98053a014b171e0170..3f64f1ffe6c8ce6072854baba89cbc5de214a158 100644 (file)
 
 #include <stdarg.h>
 
-#include "token.h"
-
 #define PSI_ERROR 16
 #define PSI_WARNING 32
 
-typedef void (*psi_error_cb)(void *context, struct psi_token *token, int type, const char *msg, ...);
+struct psi_data;
+struct psi_token;
+
+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 */