#include "context.h"
-void psi_error_wrapper(void *context, 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);
return (set && *set && '0' != *set);
ZEND_BEGIN_MODULE_GLOBALS(psi)
char *engine;
char *directory;
- PSI_Context context;
+ struct psi_context context;
ZEND_END_MODULE_GLOBALS(psi);
ZEND_EXTERN_MODULE_GLOBALS(psi);