From 963caf074145a34c7a1c0192d09dccee9648d2f7 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 12 May 2015 17:14:09 +0200 Subject: [PATCH] add counter for in ParseBlock --- src/parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 706b1e2..7b97ccb 100644 --- a/src/parser.c +++ b/src/parser.c @@ -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 ) {