Remove index parameter from STACK_FROM_TOP macro

This commit is contained in:
Max Brunsfeld 2014-09-29 10:16:24 -07:00
parent d1603e298f
commit 10a3251fbe
2 changed files with 6 additions and 7 deletions

View file

@ -26,11 +26,10 @@ TSStateId ts_stack_top_state(const TSStack *stack);
TSTree *ts_stack_top_node(const TSStack *stack);
TSLength ts_stack_right_position(const TSStack *stack);
#define TS_STACK_FROM_TOP(stack, entry, index) \
size_t index = stack.size - 1; \
(void) index; \
#define TS_STACK_FROM_TOP(stack, entry) \
for (TSStackEntry *entry = stack.entries + stack.size - 1; \
entry >= stack.entries; entry-- && index--)
entry >= stack.entries; \
entry--)
#ifdef __cplusplus
}