From 8855840525a3f8d9ae82b34924c5025bdd145c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Mon, 19 Feb 2024 21:51:15 +0100 Subject: [PATCH] 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. --- src/sim_node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2