add counter for in ParseBlock

This commit is contained in:
Geoff McLane 2015-05-12 17:14:09 +02:00
parent c1a3100cb9
commit 963caf0741

View file

@ -854,6 +854,7 @@ void TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode)
{ {
#if !defined(NDEBUG) && defined(_MSC_VER) #if !defined(NDEBUG) && defined(_MSC_VER)
static int in_parse_block = 0; static int in_parse_block = 0;
static int parse_block_cnt = 0;
#endif #endif
Lexer* lexer = doc->lexer; Lexer* lexer = doc->lexer;
Node *node; Node *node;
@ -861,7 +862,8 @@ void TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode)
uint istackbase = 0; uint istackbase = 0;
#if !defined(NDEBUG) && defined(_MSC_VER) #if !defined(NDEBUG) && defined(_MSC_VER)
in_parse_block++; 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 #endif
if ( element->tag->model & CM_EMPTY ) { if ( element->tag->model & CM_EMPTY ) {