[libxml2] Cleanup a couple of weirdness in HTML parser



commit ef9c636ac1494d7ead7461bbe9e18d4270224851
Author: Eugene Pimenov <libc me com>
Date:   Mon Mar 15 11:37:48 2010 +0100

    Cleanup a couple of weirdness in HTML parser

 HTMLparser.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index da3b173..2b569ca 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -267,8 +267,6 @@ htmlnamePop(htmlParserCtxtPtr ctxt)
 #define NEXT xmlNextChar(ctxt)
 
 #define RAW (ctxt->token ? -1 : (*ctxt->input->cur))
-#define NXT(val) ctxt->input->cur[(val)]
-#define CUR_PTR ctxt->input->cur
 
 
 #define NEXTL(l) do {							\
@@ -4428,7 +4426,7 @@ htmlInitParserCtxt(htmlParserCtxtPtr ctxt)
     if (ctxt->nameTab == NULL) {
         htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n");
 	ctxt->nameNr = 0;
-	ctxt->nameMax = 10;
+	ctxt->nameMax = 0;
 	ctxt->name = NULL;
 	ctxt->nodeNr = 0;
 	ctxt->nodeMax = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]