1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Move struct sgml_parsing_state near the parsing state managing

This commit is contained in:
Jonas Fonseca 2006-01-14 12:11:35 +01:00 committed by Jonas Fonseca
parent e70b779366
commit c8aa6c2360

View File

@ -19,16 +19,6 @@
#include "util/memory.h"
/* This holds info about a chunk of text being parsed. The SGML parser uses
* these to keep track of possible nested calls to parse_sgml(). This can be
* used to feed output of stuff like ECMAScripts document.write() from
* <script>-elements back to the SGML parser. */
struct sgml_parsing_state {
struct dom_scanner scanner;
struct dom_node *node;
size_t depth;
};
/* When getting the sgml_parser struct it is _always_ assumed that the parser
* is the first to add it's context, which it is since it initializes the
* stack. */
@ -429,6 +419,13 @@ parse_sgml(struct sgml_parser *parser, unsigned char *buf, size_t bufsize,
* example this can allows output of the document.write() from DOM scripting
* interface to be parsed. */
/* This holds info about a chunk of text being parsed. */
struct sgml_parsing_state {
struct dom_scanner scanner;
struct dom_node *node;
size_t depth;
};
static void
sgml_parsing_push(struct dom_stack *stack, struct dom_node *node, void *data)
{