From 1ba5a7862d6ec13712345c54f8c84722f1670c0b Mon Sep 17 00:00:00 2001
From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org>
Date: Thu, 29 Jul 1999 18:41:35 +0200
Subject: [PATCH] removing debug stuff

Rev: src/modules/Parser/html.c:1.28
---
 src/modules/Parser/html.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/modules/Parser/html.c b/src/modules/Parser/html.c
index e9989e87e2..44074140a6 100644
--- a/src/modules/Parser/html.c
+++ b/src/modules/Parser/html.c
@@ -21,8 +21,8 @@ extern struct program *parser_html_program;
 
 /*
 #define SCAN_DEBUG
-*/
 #define DEBUG
+*/
 
 #ifdef DEBUG
 #undef DEBUG
@@ -1267,7 +1267,21 @@ static void do_callback(struct parser_html_storage *this,
       push_feed_range(start,cstart,end,cend);
    else 
       ref_push_string(empty_string);
-   apply_svalue(callback_function,2);  
+
+   if (this->extra_args)
+   {
+      this->extra_args->refs++;
+      push_array_items(this->extra_args);
+
+      DEBUG((stderr,"_-callback args=%d\n",2+this->extra_args->size));
+
+      apply_svalue(callback_function,2+this->extra_args->size);  
+   }
+   else
+   {
+      DEBUG((stderr,"_-callback args=%d\n",2));
+      apply_svalue(callback_function,2);  
+   }
 }
 
 static newstate entity_callback(struct parser_html_storage *this,
-- 
GitLab