@@ -449,7 +449,7 @@ static void set_frameset_not_ok(GumboParser* parser) {
449
449
parser -> _parser_state -> _frameset_ok = false;
450
450
}
451
451
452
- static GumboNode * create_node (GumboNodeType type ) {
452
+ GumboNode * gumbo_create_node (GumboNodeType type ) {
453
453
GumboNode * node = gumbo_malloc (sizeof (GumboNode ));
454
454
node -> parent = NULL ;
455
455
node -> index_within_parent = -1 ;
@@ -459,7 +459,7 @@ static GumboNode* create_node(GumboNodeType type) {
459
459
}
460
460
461
461
static GumboNode * new_document_node (void ) {
462
- GumboNode * document_node = create_node (GUMBO_NODE_DOCUMENT );
462
+ GumboNode * document_node = gumbo_create_node (GUMBO_NODE_DOCUMENT );
463
463
document_node -> parse_flags = GUMBO_INSERTION_BY_PARSER ;
464
464
gumbo_vector_init (1 , & document_node -> v .document .children );
465
465
@@ -881,7 +881,7 @@ static void maybe_flush_text_node_buffer(GumboParser* parser) {
881
881
assert (buffer_state -> _type == GUMBO_NODE_WHITESPACE ||
882
882
buffer_state -> _type == GUMBO_NODE_TEXT ||
883
883
buffer_state -> _type == GUMBO_NODE_CDATA );
884
- GumboNode * text_node = create_node (buffer_state -> _type );
884
+ GumboNode * text_node = gumbo_create_node (buffer_state -> _type );
885
885
GumboText * text_node_data = & text_node -> v .text ;
886
886
text_node_data -> text = gumbo_string_buffer_to_string (& buffer_state -> _buffer );
887
887
text_node_data -> original_text .data = buffer_state -> _start_original_text ;
@@ -948,7 +948,7 @@ static GumboNode* pop_current_node(GumboParser* parser) {
948
948
static void append_comment_node (
949
949
GumboParser * parser , GumboNode * node , const GumboToken * token ) {
950
950
maybe_flush_text_node_buffer (parser );
951
- GumboNode * comment = create_node (GUMBO_NODE_COMMENT );
951
+ GumboNode * comment = gumbo_create_node (GUMBO_NODE_COMMENT );
952
952
comment -> type = GUMBO_NODE_COMMENT ;
953
953
comment -> parse_flags = GUMBO_INSERTION_NORMAL ;
954
954
comment -> v .text .text = token -> v .text ;
@@ -981,7 +981,7 @@ void clear_stack_to_table_body_context(GumboParser* parser) {
981
981
982
982
// Creates a parser-inserted element in the HTML namespace and returns it.
983
983
static GumboNode * create_element (GumboParser * parser , GumboTag tag ) {
984
- GumboNode * node = create_node (GUMBO_NODE_ELEMENT );
984
+ GumboNode * node = gumbo_create_node (GUMBO_NODE_ELEMENT );
985
985
GumboElement * element = & node -> v .element ;
986
986
gumbo_vector_init (1 , & element -> children );
987
987
gumbo_vector_init (0 , & element -> attributes );
@@ -1006,7 +1006,7 @@ static GumboNode* create_element_from_token(
1006
1006
start_tag -> tag == GUMBO_TAG_TEMPLATE )
1007
1007
? GUMBO_NODE_TEMPLATE : GUMBO_NODE_ELEMENT ;
1008
1008
1009
- GumboNode * node = create_node (type );
1009
+ GumboNode * node = gumbo_create_node (type );
1010
1010
GumboElement * element = & node -> v .element ;
1011
1011
gumbo_vector_init (1 , & element -> children );
1012
1012
element -> attributes = start_tag -> attributes ;
0 commit comments