-#define PSI_DEBUG_PRINT(ctx, ...) do { \
- if ((ctx) && (PSI_DATA(ctx)->flags & PSI_DEBUG)) { \
- dprintf(PSI_DATA(ctx)->debug_fd, __VA_ARGS__); \
- } \
-} while(0)
-#define PSI_DEBUG_PRINTV(ctx, msg, argv) do { \
- if ((ctx) && (PSI_DATA(ctx)->flags & PSI_DEBUG)) { \
- vdprintf(PSI_DATA(ctx)->debug_fd, msg, argv); \
- } \
-} while(0)
-#define PSI_DEBUG_DUMP(ctx, dump_func, ...) do { \
- if ((ctx) && (PSI_DATA(ctx)->flags & PSI_DEBUG)) { \
- dump_func(PSI_DATA(ctx)->debug_fd, __VA_ARGS__); \
- } \
-} while (0)
+#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