Mercurial > molko
comparison tests/test-action-script.c @ 500:d7855791a2b8
examples: prefix mlk
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 15:35:17 +0100 |
parents | d3ea59fce7dc |
children | a11cd7ea3a37 |
comparison
equal
deleted
inserted
replaced
499:d3ea59fce7dc | 500:d7855791a2b8 |
---|---|
153 { .act = INIT(&table[0].inv, my_update_true) }, | 153 { .act = INIT(&table[0].inv, my_update_true) }, |
154 { .act = INIT(&table[1].inv, my_update_true) }, | 154 { .act = INIT(&table[1].inv, my_update_true) }, |
155 { .act = INIT(&table[2].inv, my_update_false) } | 155 { .act = INIT(&table[2].inv, my_update_false) } |
156 }; | 156 }; |
157 | 157 |
158 struct mlk_action array[3] = {0}; | 158 struct mlk_action *array[3] = {0}; |
159 struct mlk_action_script sc = {0}; | 159 struct mlk_action_script sc = {0}; |
160 | 160 |
161 mlk_action_script_init(&sc, array, 3); | 161 mlk_action_script_init(&sc, array, 3); |
162 | 162 |
163 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); | 163 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); |
235 { .act = INIT(&table[0].inv, my_update_true) }, | 235 { .act = INIT(&table[0].inv, my_update_true) }, |
236 { .act = INIT(&table[1].inv, my_update_true) }, | 236 { .act = INIT(&table[1].inv, my_update_true) }, |
237 { .act = INIT(&table[2].inv, my_update_false) } | 237 { .act = INIT(&table[2].inv, my_update_false) } |
238 }; | 238 }; |
239 | 239 |
240 struct mlk_action array[3]; | 240 struct mlk_action *array[3]; |
241 struct mlk_action_script sc = {0}; | 241 struct mlk_action_script sc = {0}; |
242 | 242 |
243 mlk_action_script_init(&sc, array, 3); | 243 mlk_action_script_init(&sc, array, 3); |
244 | 244 |
245 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); | 245 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); |
348 { .act = INIT(&table[0].inv, my_update_true) }, | 348 { .act = INIT(&table[0].inv, my_update_true) }, |
349 { .act = INIT(&table[1].inv, my_update_true) }, | 349 { .act = INIT(&table[1].inv, my_update_true) }, |
350 { .act = INIT(&table[2].inv, my_update_false) } | 350 { .act = INIT(&table[2].inv, my_update_false) } |
351 }; | 351 }; |
352 | 352 |
353 struct mlk_action array[3]; | 353 struct mlk_action *array[3]; |
354 struct mlk_action_script sc = {0}; | 354 struct mlk_action_script sc = {0}; |
355 | 355 |
356 mlk_action_script_init(&sc, array, 3); | 356 mlk_action_script_init(&sc, array, 3); |
357 | 357 |
358 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); | 358 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); |
428 { .act = INIT(&table[0].inv, my_update_true) }, | 428 { .act = INIT(&table[0].inv, my_update_true) }, |
429 { .act = INIT(&table[1].inv, my_update_true) }, | 429 { .act = INIT(&table[1].inv, my_update_true) }, |
430 { .act = INIT(&table[2].inv, my_update_false) } | 430 { .act = INIT(&table[2].inv, my_update_false) } |
431 }; | 431 }; |
432 | 432 |
433 struct mlk_action array[3]; | 433 struct mlk_action *array[3]; |
434 struct mlk_action_script sc = {0}; | 434 struct mlk_action_script sc = {0}; |
435 | 435 |
436 mlk_action_script_init(&sc, array, 3); | 436 mlk_action_script_init(&sc, array, 3); |
437 | 437 |
438 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); | 438 DT_ASSERT(mlk_action_script_append(&sc, &table[0].act) == 0); |