comparison tests/test-action.c @ 458:02c1481b7dbb

tests: fix
author David Demelier <markand@malikania.fr>
date Fri, 24 Feb 2023 22:14:42 +0100
parents 773a082f0b91
children c1f64d451230
comparison
equal deleted inserted replaced
457:04797b35565c 458:02c1481b7dbb
29 int draw; 29 int draw;
30 int end; 30 int end;
31 int finish; 31 int finish;
32 }; 32 };
33 33
34 static union event dummy; 34 static union mlk_event dummy;
35 35
36 #define INIT(dat, up) { \ 36 #define INIT(dat, up) { \
37 .data = (dat), \ 37 .data = (dat), \
38 .handle = my_handle, \ 38 .handle = my_handle, \
39 .update = (up), \ 39 .update = (up), \
41 .end = my_end, \ 41 .end = my_end, \
42 .finish = my_finish \ 42 .finish = my_finish \
43 } 43 }
44 44
45 static void 45 static void
46 my_handle(struct mlk_action *act, const union event *ev) 46 my_handle(struct mlk_action *act, const union mlk_event *ev)
47 { 47 {
48 (void)ev; 48 (void)ev;
49 49
50 ((struct invokes *)act->data)->handle = 1; 50 ((struct invokes *)act->data)->handle = 1;
51 } 51 }