1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Declare struct sgml_parser_state above struct sgml_parser

... and describe the info member.
This commit is contained in:
Jonas Fonseca 2005-12-31 20:02:39 +01:00 committed by Jonas Fonseca
parent f0148c2ecf
commit 6b62e0cb77

View File

@ -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);