X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fdata.h;fp=src%2Fdata.h;h=29d452c42afb8ae9f259962864017e01ad5175e7;hp=9f41936429df67418ea2e271f36e08207000e7a5;hb=f76cbab7698c988217d56a96f3ef68005cddd5ec;hpb=d4bd55e7d9b1cf63cd6fdc96b70010a0c2aca963 diff --git a/src/data.h b/src/data.h index 9f41936..29d452c 100644 --- a/src/data.h +++ b/src/data.h @@ -44,6 +44,14 @@ # 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;