summaryrefslogtreecommitdiff
path: root/include/dom/core/element.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-28 20:41:01 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2012-03-28 20:41:01 +0000
commitf57213206237c62ced97638a665f10c986c64137 (patch)
tree7dc3d87784439db9ada9ea0f6b04210be26f9825 /include/dom/core/element.h
parent896be5bbd25299833957e51473656ffcf7b61318 (diff)
downloadlibdom-f57213206237c62ced97638a665f10c986c64137.tar.gz
libdom-f57213206237c62ced97638a665f10c986c64137.tar.bz2
Remove casts related to dom_string in API macros because they were hiding errors such as the one fixed in r13764
svn path=/trunk/libdom/; revision=13765
Diffstat (limited to 'include/dom/core/element.h')
-rw-r--r--include/dom/core/element.h38
1 files changed, 15 insertions, 23 deletions
diff --git a/include/dom/core/element.h b/include/dom/core/element.h
index 91b763f..3e0fcb3 100644
--- a/include/dom/core/element.h
+++ b/include/dom/core/element.h
@@ -104,7 +104,7 @@ static inline dom_exception dom_element_get_tag_name(
dom_element_get_tag_name(element, name);
}
#define dom_element_get_tag_name(e, n) dom_element_get_tag_name( \
- (dom_element *) (e), (dom_string **) (n))
+ (dom_element *) (e), (n))
static inline dom_exception dom_element_get_attribute(
struct dom_element *element, dom_string *name,
@@ -114,8 +114,7 @@ static inline dom_exception dom_element_get_attribute(
dom_element_get_attribute(element, name, value);
}
#define dom_element_get_attribute(e, n, v) dom_element_get_attribute( \
- (dom_element *) (e), (dom_string *) (n), \
- (dom_string **) (v))
+ (dom_element *) (e), (n), (v))
static inline dom_exception dom_element_set_attribute(
struct dom_element *element, dom_string *name,
@@ -125,8 +124,7 @@ static inline dom_exception dom_element_set_attribute(
dom_element_set_attribute(element, name, value);
}
#define dom_element_set_attribute(e, n, v) dom_element_set_attribute( \
- (dom_element *) (e), (dom_string *) (n), \
- (dom_string *) (v))
+ (dom_element *) (e), (n), (v))
static inline dom_exception dom_element_remove_attribute(
struct dom_element *element, dom_string *name)
@@ -135,7 +133,7 @@ static inline dom_exception dom_element_remove_attribute(
dom_element_remove_attribute(element, name);
}
#define dom_element_remove_attribute(e, n) dom_element_remove_attribute( \
- (dom_element *) (e), (dom_string *) (n))
+ (dom_element *) (e), (n))
static inline dom_exception dom_element_get_attribute_node(
struct dom_element *element, dom_string *name,
@@ -146,7 +144,7 @@ static inline dom_exception dom_element_get_attribute_node(
}
#define dom_element_get_attribute_node(e, n, r) \
dom_element_get_attribute_node((dom_element *) (e), \
- (dom_string *) (n), (struct dom_attr **) (r))
+ (n), (struct dom_attr **) (r))
static inline dom_exception dom_element_set_attribute_node(
struct dom_element *element, struct dom_attr *attr,
@@ -182,7 +180,7 @@ static inline dom_exception dom_element_get_elements_by_tag_name(
}
#define dom_element_get_elements_by_tag_name(e, n, r) \
dom_element_get_elements_by_tag_name((dom_element *) (e), \
- (dom_string *) (n), (struct dom_nodelist **) (r))
+ (n), (struct dom_nodelist **) (r))
static inline dom_exception dom_element_get_attribute_ns(
struct dom_element *element, dom_string *namespace,
@@ -194,8 +192,7 @@ static inline dom_exception dom_element_get_attribute_ns(
}
#define dom_element_get_attribute_ns(e, n, l, v) \
dom_element_get_attribute_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l), \
- (dom_string **) (v))
+ (n), (l), (v))
static inline dom_exception dom_element_set_attribute_ns(
struct dom_element *element, dom_string *namespace,
@@ -207,8 +204,7 @@ static inline dom_exception dom_element_set_attribute_ns(
}
#define dom_element_set_attribute_ns(e, n, l, v) \
dom_element_set_attribute_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l), \
- (dom_string *) (v))
+ (n), (l), (v))
static inline dom_exception dom_element_remove_attribute_ns(
@@ -221,7 +217,7 @@ static inline dom_exception dom_element_remove_attribute_ns(
}
#define dom_element_remove_attribute_ns(e, n, l) \
dom_element_remove_attribute_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l))
+ (n), (l))
static inline dom_exception dom_element_get_attribute_node_ns(
@@ -234,7 +230,7 @@ static inline dom_exception dom_element_get_attribute_node_ns(
}
#define dom_element_get_attribute_node_ns(e, n, l, r) \
dom_element_get_attribute_node_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l), \
+ (n), (l), \
(struct dom_attr **) (r))
static inline dom_exception dom_element_set_attribute_node_ns(
@@ -259,8 +255,7 @@ static inline dom_exception dom_element_get_elements_by_tag_name_ns(
}
#define dom_element_get_elements_by_tag_name_ns(e, n, l, r) \
dom_element_get_elements_by_tag_name_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l), \
- (struct dom_nodelist **) (r))
+ (n), (l), (struct dom_nodelist **) (r))
static inline dom_exception dom_element_has_attribute(
struct dom_element *element, dom_string *name,
@@ -270,8 +265,7 @@ static inline dom_exception dom_element_has_attribute(
dom_element_has_attribute(element, name, result);
}
#define dom_element_has_attribute(e, n, r) dom_element_has_attribute( \
- (dom_element *) (e), (dom_string *) (n), \
- (bool *) (r))
+ (dom_element *) (e), (n), (bool *) (r))
static inline dom_exception dom_element_has_attribute_ns(
struct dom_element *element, dom_string *namespace,
@@ -282,8 +276,7 @@ static inline dom_exception dom_element_has_attribute_ns(
localname, result);
}
#define dom_element_has_attribute_ns(e, n, l, r) dom_element_has_attribute_ns(\
- (dom_element *) (e), (dom_string *) (n), \
- (dom_string *) (l), (bool *) (r))
+ (dom_element *) (e), (n), (l), (bool *) (r))
static inline dom_exception dom_element_get_schema_type_info(
struct dom_element *element, struct dom_type_info **result)
@@ -304,7 +297,7 @@ static inline dom_exception dom_element_set_id_attribute(
}
#define dom_element_set_id_attribute(e, n, i) \
dom_element_set_id_attribute((dom_element *) (e), \
- (dom_string *) (n), (bool) (i))
+ (n), (bool) (i))
static inline dom_exception dom_element_set_id_attribute_ns(
struct dom_element *element, dom_string *namespace,
@@ -316,8 +309,7 @@ static inline dom_exception dom_element_set_id_attribute_ns(
}
#define dom_element_set_id_attribute_ns(e, n, l, i) \
dom_element_set_id_attribute_ns((dom_element *) (e), \
- (dom_string *) (n), (dom_string *) (l), \
- (bool) (i))
+ (n), (l), (bool) (i))
static inline dom_exception dom_element_set_id_attribute_node(
struct dom_element *element, struct dom_attr *id_attr,