X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=php_psi.h;h=8bac82658ba70b42261bd7d915479dee286af5c4;hp=f5859e3dacbe155f84a8672e1cc4bcd17f485803;hb=77a446cbcdce6558c00066e5f13e43e8b1b18ff7;hpb=e16c15d5936c3b57b05e49570fb9526920de8188 diff --git a/php_psi.h b/php_psi.h index f5859e3..8bac826 100644 --- 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); @@ -53,6 +55,7 @@ void psi_to_bool(zval *return_value, set_value *set, impl_val *ret_val); void psi_to_int(zval *return_value, set_value *set, impl_val *ret_val); void psi_to_double(zval *return_value, set_value *set, impl_val *ret_val); void psi_to_string(zval *return_value, set_value *set, impl_val *ret_val); +void psi_to_recursive(zval *return_value, set_value *set, impl_val *r_val); void psi_to_array(zval *return_value, set_value *set, impl_val *ret_val); void psi_to_object(zval *return_value, set_value *set, impl_val *ret_val);