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

Keep struct sgml_parsing_state private to the parser

This commit is contained in:
Jonas Fonseca 2005-12-31 19:59:11 +01:00 committed by Jonas Fonseca
parent 4a766f350b
commit f0148c2ecf
2 changed files with 10 additions and 10 deletions

View File

@ -19,6 +19,16 @@
#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;
};
static struct sgml_parsing_state *
init_sgml_parsing_state(struct sgml_parser *parser, struct dom_string *buffer);

View File

@ -22,16 +22,6 @@ enum sgml_parser_type {
SGML_PARSER_STREAM,
};
/* 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;
};
struct sgml_parser {
enum sgml_parser_type type; /* Stream or tree */