Rename checker.h to push_swap.h
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 1 Mar 2024 09:08:20 +0000 (10:08 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 1 Mar 2024 09:08:20 +0000 (10:08 +0100)
The push_swap is the major part so it makes sense to have the header
bear its name.

13 files changed:
src/actions.c
src/arg_parsing.c
src/checker.c
src/circular_lis.c
src/find.c
src/helpers.c
src/prepare.c
src/prints.c
src/push.c
src/push_swap.h [moved from src/checker.h with 100% similarity]
src/special_a.c
src/stack_manipulation.c
src/stacks_mem.c

index 19d55ffbdbe1cd5f54d56ef67c909a48ea16130b..01fd70fd5028d003df0d852f0283b62cf1ad1dea 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/24 11:46:02 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/01/24 13:49:25 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:26 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 
 void   action_rotate(t_stacks *s, t_target target)
 {
index 6d11faee676ebc0cf5d91a3548ff4745d94b00a8..b281e52d5f6009251c3d4eef95d973ebdd692607 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/31 09:58:54 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/06 12:34:29 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:26 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include <stdlib.h>
 
 static int     is_int(const char *str)
index 7e429eff39f4c3bce9f2a8df9db35c51659794ba..4eda2069532bb6d61b6af8821e64e25cb11bc62c 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/24 10:31:06 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/22 14:27:20 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:26 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <stdlib.h>
 
index aaef1ccc727044819362783e98263f0c6a1afbae..d2fa3853a5f0ceaf46fd541e460f8ff6b4e54179 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/27 15:18:21 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/03/01 09:59:03 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:26 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 
 static t_arr_stat      reconstruct_lis(t_stack *lis, t_stack *stack,
index d64cf983062c3726f32009e3e151728219d39e3e..7a0d8b871206e9aba8b7f5b4bda729b38f20c7ca 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/24 11:37:22 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/24 14:10:54 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:26 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <limits.h>
 #include <stddef.h>
index b68558da795f12b0969b6aeb13e3f97a33c8b50a..218bb47ce2b793be33e1d1648964604fc761548a 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/22 14:22:08 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/03/01 09:59:03 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <stddef.h>
 
index f67b9609e28211ce5bbad51b9db31c19edce9b61..f931c63f1260dbe57fc412ea24d393d5036a4c80 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/23 09:35:45 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/24 11:29:15 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <stddef.h>
 
index 7ff4704660b379dc17f734f06b2a8eaf9b0ee906..7b20d25cc264a658b94d241c8cc90142c043a208 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/15 14:42:01 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/23 12:19:26 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 
 char   target_to_char(t_target target, char both)
 {
index ae09a0f1808ef07054886638a108aad547be319e..5368e3f94c250ee3bf594e881d6884281de8c798 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/24 13:17:32 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/03/01 09:59:04 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -15,7 +15,7 @@
 // One may only use "non-print" stack manipulation in a case where
 // the stacks return to their state, so as not to skew the output
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <stddef.h>
 
similarity index 100%
rename from src/checker.h
rename to src/push_swap.h
index 919a73bf2c21f090295dc34ac1748527e01478a2..39f37765ebcb1a5608552149b1ef1f1d4086b111 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/03/01 09:45:01 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/03/01 09:59:04 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 #include <limits.h>
 #include <stddef.h>
index dbc64b1f5e5e1973e17eab2f4c7efd748fe0e78d..a1b088b0cd830ce279d48c6e02f069bbd6f7283a 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/24 11:48:47 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/29 10:25:56 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 
 // conversions are meh
index fe68df3241697a816c403f7c369d7ebcf1afe640..28038f0dfafc0e9c59d9660307f977183a3e6150 100644 (file)
@@ -6,11 +6,11 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/02/06 14:20:04 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/02/29 11:10:56 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/03/01 10:07:27 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
-#include "checker.h"
+#include "push_swap.h"
 #include "libft.h"
 
 void   init_stack(t_stack *s)