push_swap/include/app/state.h

31 lines
1.2 KiB
C
Raw Normal View History

2024-01-11 21:28:36 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* state.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/11 14:27:25 by maiboyer #+# #+# */
2024-01-29 22:45:54 +01:00
/* Updated: 2024/01/29 22:15:52 by maiboyer ### ########.fr */
2024-01-11 21:28:36 +01:00
/* */
/* ************************************************************************** */
#ifndef STATE_H
2024-01-29 22:45:54 +01:00
#define STATE_H
2024-01-11 21:28:36 +01:00
2024-01-29 22:45:54 +01:00
#include "me/types.h"
#include "me/vec/vec_i64.h"
#include "me/vec/vec_i64_bool.h"
2024-01-11 21:28:36 +01:00
typedef struct s_state
{
2024-01-29 22:45:54 +01:00
t_vec_i64_bool sorted;
t_vec_i64 stack_a;
t_vec_i64 stack_b;
} t_state;
2024-01-11 21:28:36 +01:00
2024-01-29 22:45:54 +01:00
t_state parses_arguments(t_usize count, t_str nums[]);
void free_state(t_state state);
2024-01-11 21:28:36 +01:00
#endif /* STATE_H */