X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fparser_scan.re;h=f4ae1fdcd9c566e26625c0272f8ef1a6e82b6002;hb=69da9075d8a72c094e0bb977226d975365431f55;hp=043243fd81e12c91052f792a8570c441e288a993;hpb=d2e0af1718294569a84c3c15616c74e4d55ea579;p=m6w6%2Fext-psi diff --git a/src/parser_scan.re b/src/parser_scan.re index 043243f..f4ae1fd 100644 --- a/src/parser_scan.re +++ b/src/parser_scan.re @@ -31,6 +31,7 @@ #include "parser.h" #include "plist.h" +#include "debug.h" /*!max:re2c*/ #ifndef YYMAXFILL @@ -52,8 +53,10 @@ size_t psi_parser_maxfill(void) { token = psi_token_init(t, tok, cur - tok, tok - eol + 1, I->lines, I->file); \ } \ tokens = psi_plist_add(tokens, &token); \ + psi_debug_lock(PSI_DATA(P)); \ PSI_DEBUG_PRINT(P, "PSI: scanned < "); \ PSI_DEBUG_DUMP(P, psi_token_dump, token); \ + psi_debug_unlock(PSI_DATA(P)); \ } while(0) #define CHECKEOF() if (cur >= lim - YYMAXFILL) goto done