Remove TreeSelectionCallback struct

Just make a typedef for the function type
This commit is contained in:
Max Brunsfeld 2015-12-17 12:08:06 -08:00
parent e6f933a21f
commit 7fbb628c78
4 changed files with 23 additions and 22 deletions

View file

@ -22,10 +22,7 @@ typedef struct {
int head_index;
} StackPopResult;
typedef struct {
void *data;
TSTree *(*callback)(void *, TSTree *, TSTree *);
} TreeSelectionCallback;
typedef TSTree *(*TreeSelectionFunction)(void *, TSTree *, TSTree *);
/*
* Create a parse stack.
@ -117,7 +114,8 @@ void ts_stack_remove_head(Stack *, int head);
*/
void ts_stack_clear(Stack *);
void ts_stack_set_tree_selection_callback(Stack *, TreeSelectionCallback);
void ts_stack_set_tree_selection_callback(Stack *, void *,
TreeSelectionFunction);
#ifdef __cplusplus
}