mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Cleanup a couple of weirdness in HTML parser
This commit is contained in:
committed by
Daniel Veillard
parent
9543aee99b
commit
ef9c636ac1
@ -267,8 +267,6 @@ htmlnamePop(htmlParserCtxtPtr ctxt)
|
|||||||
#define NEXT xmlNextChar(ctxt)
|
#define NEXT xmlNextChar(ctxt)
|
||||||
|
|
||||||
#define RAW (ctxt->token ? -1 : (*ctxt->input->cur))
|
#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 { \
|
#define NEXTL(l) do { \
|
||||||
@ -4428,7 +4426,7 @@ htmlInitParserCtxt(htmlParserCtxtPtr ctxt)
|
|||||||
if (ctxt->nameTab == NULL) {
|
if (ctxt->nameTab == NULL) {
|
||||||
htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n");
|
htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n");
|
||||||
ctxt->nameNr = 0;
|
ctxt->nameNr = 0;
|
||||||
ctxt->nameMax = 10;
|
ctxt->nameMax = 0;
|
||||||
ctxt->name = NULL;
|
ctxt->name = NULL;
|
||||||
ctxt->nodeNr = 0;
|
ctxt->nodeNr = 0;
|
||||||
ctxt->nodeMax = 0;
|
ctxt->nodeMax = 0;
|
||||||
|
Reference in New Issue
Block a user