aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDEC05EBA <dec05eba@protonmail.com>2019-12-31 09:55:47 +0100
committerDEC05EBA <dec05eba@protonmail.com>2019-12-31 09:55:47 +0100
commit89a1be9a63aa4c7f4b9fb9a2a3041cf9270b6a79 (patch)
treec346eb6a281dc5c0db3dbaa8d4b2fe76d6c239cc /include
parent0ecbffb885254f5abfc6abfe837852ec0f3ba81c (diff)
Change name of StringView to prevent name conflicts with other projects
Diffstat (limited to 'include')
-rw-r--r--include/HtmlParser.h12
1 files changed, 6 insertions, 6 deletions
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);