summaryrefslogtreecommitdiff
path: root/include/dom/core/nodelist.h
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-04-29 12:44:35 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-04-29 12:44:35 +0000
commit2de93d957296913fc8e13d7deafaf7c61dfcf265 (patch)
tree8e0f209cee78455b2707b872dad6b2f691902b34 /include/dom/core/nodelist.h
parent62ef8dccac05d5cf6e109b6fdd6de11e598e5f9d (diff)
downloadlibdom-2de93d957296913fc8e13d7deafaf7c61dfcf265.tar.gz
libdom-2de93d957296913fc8e13d7deafaf7c61dfcf265.tar.bz2
Make dom_namednodemap and dom_nodelist more usable through macroes. Note, it is the partly-completed testcase that find this problem. Our DOMTS is on its way.
svn path=/trunk/dom/; revision=7365
Diffstat (limited to 'include/dom/core/nodelist.h')
-rw-r--r--include/dom/core/nodelist.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dom/core/nodelist.h b/include/dom/core/nodelist.h
index d3b0df9..2aad313 100644
--- a/include/dom/core/nodelist.h
+++ b/include/dom/core/nodelist.h
@@ -19,7 +19,10 @@ void dom_nodelist_unref(struct dom_nodelist *list);
dom_exception dom_nodelist_get_length(struct dom_nodelist *list,
unsigned long *length);
-dom_exception dom_nodelist_item(struct dom_nodelist *list,
+dom_exception _dom_nodelist_item(struct dom_nodelist *list,
unsigned long index, struct dom_node **node);
+#define dom_nodelist_item(l, i, n) _dom_nodelist_item((dom_nodelist *) (l), \
+ (unsigned long) (i), (dom_node **) (n))
+
#endif