From 14ac620bc343dd9a38ba78b0e617569ee096e6d1 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Mon, 14 Jun 1999 22:49:34 +0200 Subject: [PATCH] it all works Rev: src/modules/Parser/html.c:1.21 Rev: src/modules/Parser/module.pmod.in:1.6 --- src/modules/Parser/html.c | 4 ++-- src/modules/Parser/module.pmod.in | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/Parser/html.c b/src/modules/Parser/html.c index f2c1694249..919850dd47 100644 --- a/src/modules/Parser/html.c +++ b/src/modules/Parser/html.c @@ -1254,8 +1254,8 @@ static void do_callback(struct parser_html_storage *this, if (start) push_feed_range(start,cstart,end,cend); else - ref_push_string(empty_string);; - apply_svalue(callback_function,2); + ref_push_string(empty_string); + apply_svalue(callback_function,2); } static newstate entity_callback(struct parser_html_storage *this, diff --git a/src/modules/Parser/module.pmod.in b/src/modules/Parser/module.pmod.in index a6469d3528..ec0ad6a23f 100644 --- a/src/modules/Parser/module.pmod.in +++ b/src/modules/Parser/module.pmod.in @@ -1,5 +1,5 @@ /* - * $Id: module.pmod.in,v 1.5 1999/06/12 19:51:38 mirar Exp $ + * $Id: module.pmod.in,v 1.6 1999/06/14 20:49:34 mirar Exp $ * */ @@ -133,11 +133,14 @@ class SGML //! note: //! No, it doesn't read the file itself. See <ref>feed</ref>. + int i; + void create(void|string _file) { file=_file; p->_set_tag_callback(got_tag); +// p->_set_tag_callback(lambda() { i++; sleep(0); return ({}); }); p->_set_data_callback(lambda(object g,string data) { if (data!="") res[0]+=({data}); return ({}); }); } @@ -163,6 +166,7 @@ class SGML p->finish(); data=res[0]; res=0; + werror("i=%O\n",i); return data; } -- GitLab