better errors
[m6w6/ext-psi] / php_psi.h
index f5859e3dacbe155f84a8672e1cc4bcd17f485803..31e65652e697f8b4bda7e63b040c937f2f693592 100644 (file)
--- a/php_psi.h
+++ b/php_psi.h
@@ -20,7 +20,9 @@ extern zend_module_entry psi_module_entry;
 
 #include "context.h"
 
-void psi_error(int type, const char *msg, ...);
+void psi_error_wrapper(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);
 
 static inline int psi_check_env(const char *var) {
        char *set = getenv(var);