normed: corrected the norm of the stdme
This commit is contained in:
parent
d7bc70ce2f
commit
0b3c966eaa
7 changed files with 25 additions and 34 deletions
|
|
@ -9,11 +9,11 @@ me_alloc/merge_blocks \
|
|||
me_alloc/pages \
|
||||
me_alloc/realloc \
|
||||
vg/dummy_block \
|
||||
vg/dummy_mem_status \
|
||||
vg/dummy_mempool \
|
||||
vg/dummy_mempool_bis \
|
||||
vg/dummy_mem_status \
|
||||
vg/valgrind_block \
|
||||
vg/valgrind_mem_status \
|
||||
vg/valgrind_mempool \
|
||||
vg/valgrind_mempool_bis \
|
||||
vg/valgrind_mem_status \
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
SRC_FILES = \
|
||||
_here_doc_not_done \
|
||||
_not_done_boucle_print \
|
||||
_not_done_function \
|
||||
_not_done_scripting_print \
|
||||
ast_alloc/ast_alloc \
|
||||
ast_alloc/ast_alloc_scripting \
|
||||
ast_free/ast_free \
|
||||
|
|
@ -21,6 +17,10 @@ from_node/node_utils2 \
|
|||
from_node/redirect_node \
|
||||
from_node/scripting_node \
|
||||
from_node/string_node \
|
||||
_here_doc \
|
||||
_not_done_boucle_print \
|
||||
_not_done_function \
|
||||
_not_done_scripting_print \
|
||||
print_ast/ast_print \
|
||||
print_ast/ast_print_arithmetic \
|
||||
print_ast/ast_print_command \
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
SRC_FILES = \
|
||||
builtins/_debug \
|
||||
builtins/cd \
|
||||
builtins/_debug \
|
||||
builtins/echo \
|
||||
builtins/env \
|
||||
builtins/exit \
|
||||
builtins/export \
|
||||
builtins/pwd \
|
||||
builtins/unset \
|
||||
run_arithmetic/_get_op \
|
||||
run_arithmetic/_run_arith \
|
||||
run_arithmetic/_to_ast_node \
|
||||
run_arithmetic/arithmetic \
|
||||
run_arithmetic/arithmetic_operation \
|
||||
run_arithmetic/_get_op \
|
||||
run_arithmetic/operator_bis \
|
||||
run_arithmetic/_run_arith \
|
||||
run_arithmetic/_to_ast_node \
|
||||
run_ast \
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ SRC_FILES = \
|
|||
line \
|
||||
line_edit_actions \
|
||||
line_edit_actions2 \
|
||||
line_editing \
|
||||
line_editing2 \
|
||||
line_edit_mode \
|
||||
line_edit_mode_interal \
|
||||
line_edit_mode_specific_key \
|
||||
line_editing \
|
||||
line_editing2 \
|
||||
line_globals \
|
||||
line_history \
|
||||
line_internals \
|
||||
|
|
|
|||
|
|
@ -35,10 +35,10 @@ fs/fs_internal \
|
|||
fs/getters \
|
||||
fs/putfd \
|
||||
gnl/get_next_line \
|
||||
hash/hasher \
|
||||
hash/hash_signed \
|
||||
hash/hash_str \
|
||||
hash/hash_unsigned \
|
||||
hash/hasher \
|
||||
hash/sip/sip13 \
|
||||
hash/sip/sip_utils \
|
||||
hash/sip/sip_utils2 \
|
||||
|
|
@ -86,6 +86,10 @@ printf/printf \
|
|||
printf/printf_fd \
|
||||
printf/printf_str \
|
||||
printf/vprintf \
|
||||
string/mod \
|
||||
string/string_insert \
|
||||
string/string_remove \
|
||||
string/string_reserve \
|
||||
str/str_clone \
|
||||
str/str_compare \
|
||||
str/str_find_chr \
|
||||
|
|
@ -102,10 +106,6 @@ str/str_n_find_str \
|
|||
str/str_split \
|
||||
str/str_substring \
|
||||
str/str_trim \
|
||||
string/mod \
|
||||
string/string_insert \
|
||||
string/string_remove \
|
||||
string/string_reserve \
|
||||
|
||||
GEN_FILES = \
|
||||
convert/i16_to_str \
|
||||
|
|
|
|||
|
|
@ -1,27 +1,26 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* best_move.c :+: :+: :+: */
|
||||
/* str_sort.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/29 20:04:33 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/01/31 14:25:00 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/09/06 15:26:05 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/types.h"
|
||||
#include "me/vec/vec_str.h"
|
||||
|
||||
void vec_str_sort(t_vec_str *v,
|
||||
t_vec_str_sort_fn is_sorted_fn)
|
||||
void vec_str_sort(t_vec_str *v, t_vec_str_sort_fn is_sorted_fn)
|
||||
{
|
||||
t_usize sorted_part;
|
||||
t_usize i;
|
||||
t_str tmp;
|
||||
t_usize sorted_part;
|
||||
t_usize i;
|
||||
t_str tmp;
|
||||
|
||||
if (v == NULL)
|
||||
return;
|
||||
return ;
|
||||
sorted_part = v->len;
|
||||
while (sorted_part > 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/04 22:27:00 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/08/02 19:10:51 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/09/06 15:28:26 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -37,28 +37,20 @@ t_error _handle_redirections_inherited(t_spawn_info *info, t_process *process)
|
|||
|
||||
t_error _handle_redirections_fds(t_spawn_info *info, t_process *process)
|
||||
{
|
||||
// t_fd *tmp;
|
||||
|
||||
if (info->stdin.tag == R_FD)
|
||||
{
|
||||
// tmp = info->stdin.fd.fd;
|
||||
info->stdin = fd(dup_fd(info->stdin.fd.fd));
|
||||
process->stdin = dup_fd(info->stdin.fd.fd);
|
||||
// close_fd(tmp);
|
||||
}
|
||||
if (info->stdout.tag == R_FD)
|
||||
{
|
||||
// tmp = info->stdin.fd.fd;
|
||||
info->stdout = fd(dup_fd(info->stdout.fd.fd));
|
||||
process->stdout = dup_fd(info->stdout.fd.fd);
|
||||
// close_fd(tmp);
|
||||
}
|
||||
if (info->stderr.tag == R_FD)
|
||||
{
|
||||
// tmp = info->stdin.fd.fd;
|
||||
info->stderr = fd(dup_fd(info->stderr.fd.fd));
|
||||
process->stderr = dup_fd(info->stderr.fd.fd);
|
||||
// close_fd(tmp);
|
||||
}
|
||||
return (NO_ERROR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue