From 5339525f1daae248acfb08a665d8acfec9fbc834 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 9 Jan 2006 01:40:16 +0100 Subject: [PATCH] Oops, kill_html_stack_top() -> pop_html_element() --- src/document/html/parser.c | 4 ++-- src/document/html/parser/forms.c | 8 ++++---- src/document/html/parser/general.c | 2 +- src/document/html/parser/link.c | 10 +++++----- src/document/html/parser/parse.c | 2 +- src/document/html/parser/stack.h | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/document/html/parser.c b/src/document/html/parser.c index 349003702..17803bdbe 100644 --- a/src/document/html/parser.c +++ b/src/document/html/parser.c @@ -692,7 +692,7 @@ done_html_parser_state(struct html_context *html_context, html_context->line_breax = 1; while (html_top != element) { - kill_html_stack_item(html_context, html_top); + pop_html_element(html_context); #if 0 /* I've preserved this bit to show an example of the Old Code * of the Mikulas days (I _HOPE_ it's by Mikulas, at least ;-). @@ -704,7 +704,7 @@ done_html_parser_state(struct html_context *html_context, } html_top->type = ELEMENT_KILLABLE; - kill_html_stack_item(html_context, html_top); + pop_html_element(html_context); } diff --git a/src/document/html/parser/forms.c b/src/document/html/parser/forms.c index d204fe4d0..5e464b387 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -254,7 +254,7 @@ html_input_format(struct html_context *html_context, unsigned char *a, case FC_HIDDEN: INTERNAL("bad control type"); } - kill_html_stack_top(html_context); + pop_html_element(html_context); put_chrs(html_context, " ", 1); } @@ -498,7 +498,7 @@ end_parse: for (i = 0; i < max_width; i++) put_chrs(html_context, "_", 1); - kill_html_stack_top(html_context); + pop_html_element(html_context); put_chrs(html_context, "]", 1); html_context->special_f(html_context, SP_CONTROL, fc); } @@ -603,7 +603,7 @@ end_parse: format.form = fc; format.style.attr |= AT_BOLD; put_chrs(html_context, "[ ]", 3); - kill_html_stack_top(html_context); + pop_html_element(html_context); put_chrs(html_context, " ", 1); html_context->special_f(html_context, SP_CONTROL, fc); } @@ -709,7 +709,7 @@ pp: ln_break(html_context, 1); } - kill_html_stack_top(html_context); + pop_html_element(html_context); if (rows > 1) ln_break(html_context, 1); else diff --git a/src/document/html/parser/general.c b/src/document/html/parser/general.c index 6f947ee91..f34cf0081 100644 --- a/src/document/html/parser/general.c +++ b/src/document/html/parser/general.c @@ -586,7 +586,7 @@ html_hr(struct html_context *html_context, unsigned char *a, } html_context->special_f(html_context, SP_NOWRAP, 0); ln_break(html_context, 2); - kill_html_stack_top(html_context); + pop_html_element(html_context); } void diff --git a/src/document/html/parser/link.c b/src/document/html/parser/link.c index 3025f8a7d..f415573aa 100644 --- a/src/document/html/parser/link.c +++ b/src/document/html/parser/link.c @@ -89,7 +89,7 @@ html_a(struct html_context *html_context, unsigned char *a, html_focusable(html_context, a); } else { - kill_html_stack_top(html_context); + pop_html_element(html_context); } set_fragment_identifier(html_context, a, "name"); @@ -269,7 +269,7 @@ html_img_do(unsigned char *a, unsigned char *object_src, * If not, just exit now. */ if (!options->images && !format.link) { mem_free_if(src); - if (usemap) kill_html_stack_top(html_context); + if (usemap) pop_html_element(html_context); return; } @@ -332,7 +332,7 @@ html_img_do(unsigned char *a, unsigned char *object_src, put_image_label(a, label, html_context); - if (ismap) kill_html_stack_top(html_context); + if (ismap) pop_html_element(html_context); mem_free_set(&format.image, NULL); mem_free_set(&format.title, NULL); } @@ -341,7 +341,7 @@ html_img_do(unsigned char *a, unsigned char *object_src, } mem_free_if(src); - if (usemap) kill_html_stack_top(html_context); + if (usemap) pop_html_element(html_context); } void @@ -369,7 +369,7 @@ put_link_line(unsigned char *prefix, unsigned char *linkname, format.style.fg = format.clink; put_chrs(html_context, linkname, strlen(linkname)); ln_break(html_context, 1); - kill_html_stack_top(html_context); + pop_html_element(html_context); } diff --git a/src/document/html/parser/parse.c b/src/document/html/parser/parse.c index 67d0a7509..0fafd0475 100644 --- a/src/document/html/parser/parse.c +++ b/src/document/html/parser/parse.c @@ -767,7 +767,7 @@ start_element(struct element_info *ei, #endif if (html_top->type == ELEMENT_WEAK) { - kill_html_stack_top(html_context); + pop_html_element(html_context); } /* We try to process nested