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:
parent
4a766f350b
commit
f0148c2ecf
@ -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);
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user