From 89a1be9a63aa4c7f4b9fb9a2a3041cf9270b6a79 Mon Sep 17 00:00:00 2001 From: DEC05EBA Date: Tue, 31 Dec 2019 09:55:47 +0100 Subject: Change name of StringView to prevent name conflicts with other projects --- include/HtmlParser.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/HtmlParser.h b/include/HtmlParser.h index 72de123..48660da 100644 --- a/include/HtmlParser.h +++ b/include/HtmlParser.h @@ -11,7 +11,7 @@ typedef struct { const char *data; size_t size; -} StringView; +} HtmlStringView; typedef struct HtmlParser HtmlParser; @@ -34,16 +34,16 @@ struct HtmlParser { HtmlParseCallback parse_callback; void *callback_userdata; - StringView tag_name; - StringView attribute_key; - StringView attribute_value; - StringView text; + HtmlStringView tag_name; + HtmlStringView attribute_key; + HtmlStringView attribute_value; + HtmlStringView text; int is_tag_void; int inside_script_tag; size_t unclosed_tags_offset; - StringView unclosed_tags[UNCLOSED_TAGS_SIZE]; + HtmlStringView unclosed_tags[UNCLOSED_TAGS_SIZE]; }; void html_parser_init(HtmlParser *self, const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata); -- cgit v1.2.3