mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Declare struct sgml_parser_state above struct sgml_parser
... and describe the info member.
This commit is contained in:
parent
f0148c2ecf
commit
6b62e0cb77
@ -22,6 +22,16 @@ enum sgml_parser_type {
|
||||
SGML_PARSER_STREAM,
|
||||
};
|
||||
|
||||
struct sgml_parser_state {
|
||||
/* Info about the properties of the node contained by state.
|
||||
* This is only meaningful to element and attribute nodes. For
|
||||
* unknown nodes it points to the common 'unknown node' info. */
|
||||
struct sgml_node_info *info;
|
||||
/* This is used by the DOM source renderer for highlighting the
|
||||
* end-tag of an element. */
|
||||
struct dom_scanner_token end_token;
|
||||
};
|
||||
|
||||
struct sgml_parser {
|
||||
enum sgml_parser_type type; /* Stream or tree */
|
||||
|
||||
@ -34,13 +44,6 @@ struct sgml_parser {
|
||||
struct dom_stack parsing; /* Used for tracking parsing states */
|
||||
};
|
||||
|
||||
struct sgml_parser_state {
|
||||
struct sgml_node_info *info;
|
||||
/* This is used by the DOM source renderer for highlighting the
|
||||
* end-tag of an element. */
|
||||
struct dom_scanner_token end_token;
|
||||
};
|
||||
|
||||
struct sgml_parser *
|
||||
init_sgml_parser(enum sgml_parser_type type, enum sgml_document_type doctype,
|
||||
struct dom_string *uri);
|
||||
|
Loading…
x
Reference in New Issue
Block a user