update...
This commit is contained in:
parent
63d62aec4d
commit
4d7255f105
26 changed files with 518 additions and 641 deletions
|
|
@ -10,20 +10,20 @@
|
|||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "app/element.h"
|
||||
#include "app/state.h"
|
||||
#include "me/vec/vec_element.h"
|
||||
|
||||
static inline void push_inner(t_vec_element *to, t_vec_element *from,
|
||||
#include "app/state.h"
|
||||
#include "me/vec/vec_i64.h"
|
||||
|
||||
static inline void push_inner(t_vec_i64 *to, t_vec_i64 *from,
|
||||
t_const_str tag)
|
||||
{
|
||||
t_element e;
|
||||
t_i64 e;
|
||||
|
||||
(void)(tag);
|
||||
if (from->len == 0)
|
||||
return ;
|
||||
vec_element_pop(from, &e);
|
||||
vec_element_push(to, e);
|
||||
vec_i64_pop(from, &e);
|
||||
vec_i64_push(to, e);
|
||||
}
|
||||
|
||||
void push_a(t_state *s)
|
||||
|
|
|
|||
|
|
@ -6,22 +6,22 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/11 16:26:04 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/01/11 17:31:44 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/01/29 18:56:05 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "app/element.h"
|
||||
|
||||
#include "app/state.h"
|
||||
|
||||
static inline void rev_rotate_inner(t_vec_element *stack, t_const_str tag)
|
||||
static inline void rev_rotate_inner(t_vec_i64 *stack, t_const_str tag)
|
||||
{
|
||||
t_element e;
|
||||
t_i64 e;
|
||||
|
||||
(void)(tag);
|
||||
if (stack->len <= 1)
|
||||
return ;
|
||||
vec_element_pop(stack, &e);
|
||||
vec_element_push_front(stack, e);
|
||||
vec_i64_pop(stack, &e);
|
||||
vec_i64_push_front(stack, e);
|
||||
}
|
||||
|
||||
void rev_rotate_a(t_state *s)
|
||||
|
|
|
|||
|
|
@ -10,18 +10,18 @@
|
|||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "app/element.h"
|
||||
|
||||
#include "app/state.h"
|
||||
|
||||
static inline void rotate_inner(t_vec_element *stack, t_const_str tag)
|
||||
static inline void rotate_inner(t_vec_i64 *stack, t_const_str tag)
|
||||
{
|
||||
t_element e;
|
||||
t_i64 e;
|
||||
|
||||
(void)(tag);
|
||||
if (stack->len <= 1)
|
||||
return ;
|
||||
vec_element_pop(stack, &e);
|
||||
vec_element_push_front(stack, e);
|
||||
vec_i64_pop(stack, &e);
|
||||
vec_i64_push_front(stack, e);
|
||||
}
|
||||
|
||||
void rotate_a(t_state *s)
|
||||
|
|
|
|||
|
|
@ -10,22 +10,22 @@
|
|||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "app/element.h"
|
||||
#include "app/state.h"
|
||||
#include "me/vec/vec_element.h"
|
||||
|
||||
static inline void swap_inner(t_vec_element *stack, t_const_str tag)
|
||||
#include "app/state.h"
|
||||
#include "me/vec/vec_i64.h"
|
||||
|
||||
static inline void swap_inner(t_vec_i64 *stack, t_const_str tag)
|
||||
{
|
||||
t_element first;
|
||||
t_element second;
|
||||
t_i64 first;
|
||||
t_i64 second;
|
||||
|
||||
(void)(tag);
|
||||
if (stack->len <= 1)
|
||||
return ;
|
||||
vec_element_pop(stack, &first);
|
||||
vec_element_pop(stack, &second);
|
||||
vec_element_push(stack, first);
|
||||
vec_element_push(stack, second);
|
||||
vec_i64_pop(stack, &first);
|
||||
vec_i64_pop(stack, &second);
|
||||
vec_i64_push(stack, first);
|
||||
vec_i64_push(stack, second);
|
||||
}
|
||||
|
||||
void swap_a(t_state *s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue