add counter for in ParseBlock

This commit is contained in:
Geoff McLane 2015-05-12 17:14:09 +02:00
parent c1a3100cb9
commit 963caf0741
1 changed files with 3 additions and 1 deletions

View File

@ -854,6 +854,7 @@ void TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode)
{
#if !defined(NDEBUG) && defined(_MSC_VER)
static int in_parse_block = 0;
static int parse_block_cnt = 0;
#endif
Lexer* lexer = doc->lexer;
Node *node;
@ -861,7 +862,8 @@ void TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode)
uint istackbase = 0;
#if !defined(NDEBUG) && defined(_MSC_VER)
in_parse_block++;
SPRTF("Entering ParseBlock %d...\n",in_parse_block);
parse_block_cnt++;
SPRTF("Entering ParseBlock %d... %d\n",in_parse_block,parse_block_cnt);
#endif
if ( element->tag->model & CM_EMPTY ) {