build cleanup
[m6w6/ext-psi] / src / data.h
index 9f41936429df67418ea2e271f36e08207000e7a5..37658cc1f1794c82c94c38aeda74745e9e45441c 100644 (file)
 # define RTLD_DEFAULT ((void *) 0)
 #endif
 
+#if PSI_THREADED_PARSER
+zend_string *psi_string_init_interned(const char *buf, size_t len, int p);
+zend_string *psi_new_interned_string(zend_string *str);
+#else
+# define psi_string_init_interned zend_string_init_interned
+# define psi_new_interned_string zend_new_interned_string
+#endif
+
 static inline void *psi_dlsym(struct psi_plist *dllist, const char *name, const char *redir)
 {
        void *dl, *sym = NULL;
@@ -90,7 +98,7 @@ union psi_dump_arg {
        void *hn;
        int fd;
 };
-typedef void (*psi_dump_cb)(union psi_dump_arg, const char *msg, ...);
+typedef int (*psi_dump_cb)(union psi_dump_arg, const char *msg, ...);
 struct psi_dump {
        union psi_dump_arg ctx;
        psi_dump_cb fun;