1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

get_dom_select_data(): Move macro nearer to its users

This commit is contained in:
Jonas Fonseca 2005-12-25 02:43:08 +01:00 committed by Jonas Fonseca
parent af089507dc
commit d36b2d8a36

View File

@ -709,8 +709,6 @@ match_attribute_selectors(struct dom_select_node *base, struct dom_node *node)
#define has_element_match(selector, name) \ #define has_element_match(selector, name) \
((selector)->match.element & (name)) ((selector)->match.element & (name))
#define get_dom_select_data(stack) ((stack)->current->data)
static int static int
match_element_selector(struct dom_select_node *selector, struct dom_node *node) 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. */ /* Matches an element node being visited against the current selector stack. */
static void static void
dom_select_push_element(struct dom_stack *stack, struct dom_node *node, void *data) dom_select_push_element(struct dom_stack *stack, struct dom_node *node, void *data)