From d36b2d8a3694819f427d9c5ff2f0cfc17dfde6ad Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 25 Dec 2005 02:43:08 +0100 Subject: [PATCH] get_dom_select_data(): Move macro nearer to its users --- src/document/dom/select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/dom/select.c b/src/document/dom/select.c index aa7661222..890553ae5 100644 --- a/src/document/dom/select.c +++ b/src/document/dom/select.c @@ -709,8 +709,6 @@ match_attribute_selectors(struct dom_select_node *base, struct dom_node *node) #define has_element_match(selector, name) \ ((selector)->match.element & (name)) -#define get_dom_select_data(stack) ((stack)->current->data) - static int match_element_selector(struct dom_select_node *selector, struct dom_node *node) { @@ -773,6 +771,8 @@ match_element_selector(struct dom_select_node *selector, struct dom_node *node) } +#define get_dom_select_data(stack) ((stack)->current->data) + /* Matches an element node being visited against the current selector stack. */ static void dom_select_push_element(struct dom_stack *stack, struct dom_node *node, void *data)