build administrativa
[m6w6/ext-psi] / src / data.h
index 9f41936429df67418ea2e271f36e08207000e7a5..57ef1d619788a99977c6a831dd2d2311e72af957 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <stdarg.h>
 #include <dlfcn.h>
+#include <unistd.h>
 
 #define PSI_DEBUG 0x1
 #define PSI_SILENT 0x2
 # 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 +99,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;