From: Lukáš Jiřiště Date: Mon, 19 Feb 2024 20:51:15 +0000 (+0100) Subject: Remove usage of function like macro VEC_INIT X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=8855840525a3f8d9ae82b34924c5025bdd145c40;p=FET_sim.git Remove usage of function like macro VEC_INIT The macro has been removed from Libft because it has to conform to the 42 Norm, which forbids function like macros. --- diff --git a/src/sim_node.c b/src/sim_node.c index eee368e..e9656c1 100644 --- a/src/sim_node.c +++ b/src/sim_node.c @@ -60,7 +60,8 @@ void update_nodes(t_vec *nodes) size_t i; t_state state; t_node *cur_node; - static t_vec connected_nodes = VEC_INIT(sizeof(t_node *)); + static t_vec connected_nodes = {.capacity = 0, .size = 0, + .el_size = sizeof(t_node *), .vec = NULL}; if (!nodes) {