diff options
Diffstat (limited to 'include/dom/core/text.h')
-rw-r--r-- | include/dom/core/text.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/dom/core/text.h b/include/dom/core/text.h index 5e38d13..61e1c4c 100644 --- a/include/dom/core/text.h +++ b/include/dom/core/text.h @@ -14,7 +14,6 @@ #include <dom/core/characterdata.h> struct dom_characterdata; -struct dom_string; typedef struct dom_text dom_text; @@ -26,9 +25,9 @@ typedef struct dom_text_vtable { dom_exception (*dom_text_get_is_element_content_whitespace)( struct dom_text *text, bool *result); dom_exception (*dom_text_get_whole_text)(struct dom_text *text, - struct dom_string **result); + dom_string **result); dom_exception (*dom_text_replace_whole_text)(struct dom_text *text, - struct dom_string *content, struct dom_text **result); + dom_string *content, struct dom_text **result); } dom_text_vtable; static inline dom_exception dom_text_split_text(struct dom_text *text, @@ -52,21 +51,21 @@ static inline dom_exception dom_text_get_is_element_content_whitespace( (bool *) (r)) static inline dom_exception dom_text_get_whole_text(struct dom_text *text, - struct dom_string **result) + dom_string **result) { return ((dom_text_vtable *) ((dom_node *) text)->vtable)-> dom_text_get_whole_text(text, result); } #define dom_text_get_whole_text(t, r) dom_text_get_whole_text((dom_text *) (t),\ - (struct dom_string **) (r)) + (dom_string **) (r)) static inline dom_exception dom_text_replace_whole_text(struct dom_text *text, - struct dom_string *content, struct dom_text **result) + dom_string *content, struct dom_text **result) { return ((dom_text_vtable *) ((dom_node *) text)->vtable)-> dom_text_replace_whole_text(text, content, result); } #define dom_text_replace_whole_text(t, c, r) dom_text_replace_whole_text( \ - (dom_text *) (t), (struct dom_string *) (c), (dom_text **) (r)) + (dom_text *) (t), (dom_string *) (c), (dom_text **) (r)) #endif |