OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
-#include <php_psi_stdinc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "php_config.h"
+#endif
#include "parser.h"
#include "plist.h"
+#include "debug.h"
/*!max:re2c*/
#ifndef YYMAXFILL
token = psi_token_init(t, tok, cur - tok, tok - eol + 1, I->lines, I->file); \
} \
tokens = psi_plist_add(tokens, &token); \
- PSI_DEBUG_PRINT(P, "PSI: scanned < "); \
- PSI_DEBUG_DUMP(P, psi_token_dump, token); \
+ PSI_DEBUG_LOCK(P, \
+ PSI_DEBUG_PRINT(P, "PSI: scanned < "); \
+ PSI_DEBUG_DUMP(P, psi_token_dump, token); \
+ ); \
} while(0)
#define CHECKEOF() if (cur >= lim - YYMAXFILL) goto done