Skip to content

Commit

Permalink
remove dealing with large numbers in exit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Thais Malheiros Assumpcao committed Oct 11, 2024
1 parent b03bcd8 commit e4113f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/01.main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* 01.main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* By: tmalheir <tmalheir@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/12 10:53:12 by umeneses #+# #+# */
/* Updated: 2024/10/10 17:15:26 by umeneses ### ########.fr */
/* Updated: 2024/10/11 01:45:57 by tmalheir ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
2 changes: 1 addition & 1 deletion src/06_builtins/46.builtin_unset.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: tmalheir <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/14 12:08:16 by umeneses #+# #+# */
/* Updated: 2024/10/10 23:27:21 by tmalheir ### ########.fr */
/* Updated: 2024/10/11 02:00:53 by tmalheir ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
9 changes: 2 additions & 7 deletions src/06_builtins/48.builtin_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* 48.builtin_exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* By: tmalheir <tmalheir@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/16 13:23:46 by umeneses #+# #+# */
/* Updated: 2024/10/10 20:38:00 by umeneses ### ########.fr */
/* Updated: 2024/10/11 02:26:14 by tmalheir ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -28,11 +28,6 @@ void builtins_runner_exit(t_token_list *lst)
exit_code = exit_valid_code_manager(cmd->lexeme);
}
llong_min_status = long_long_min_detected(false, true);
if (exit_code == 1 && !llong_min_status)
{
exit_status_holder(1, true);
return ;
}
if (llong_min_status)
exit_code = 1;
clear_all_to_exit_smoothly();
Expand Down

0 comments on commit e4113f9

Please sign in to comment.