diff --git a/README.md b/README.md index 2c30b69..8bf59e3 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,7 @@ Le but de ce projet est d’agencer les Tetriminos entre eux pour former le plus ## BONUS - [x] Best error handler (more details on why there is an error.) -- [ ] Optimisation -- [ ] Add colors to tetri when printing result map +- [x] Optimisation +- [x] Add colors to tetri when printing result map +- [x] Flag for debbuging (print every step in backtracking) +- [x] Adding flags (and password for blocking more args on moulinette) diff --git a/Makefile b/en.lproj/Makefile similarity index 96% rename from Makefile rename to en.lproj/Makefile index 2e01b52..161d981 100644 --- a/Makefile +++ b/en.lproj/Makefile @@ -6,7 +6,7 @@ # By: vmanzoni +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2019/03/01 13:24:35 by vmanzoni #+# #+# # -# Updated: 2019/05/17 17:11:53 by hulamy ### ########.fr # +# Updated: 2019/05/29 14:03:03 by vmanzoni ### ########.fr # # # # **************************************************************************** # diff --git a/f_read_file.c b/f_read_file.c index 0a862ec..2e2ef58 100644 --- a/f_read_file.c +++ b/f_read_file.c @@ -18,11 +18,11 @@ char *read_file(char *file) { - char buf[BUFF_SIZE]; - int fd; - int rv; - int i; - char *result; + char buf[BUFF_SIZE]; + int fd; + size_t rv; + int i; + char *result; if (((fd = open(file, O_RDONLY)) < 0) \ || ((rv = read(fd, &buf, BUFF_SIZE)) < 0) \ diff --git a/f_search_map.c b/f_search_map.c index 3a2efff..9cb1713 100644 --- a/f_search_map.c +++ b/f_search_map.c @@ -142,7 +142,7 @@ int fill_map(unsigned int *map, t_fillist *list, int size) int search_map(t_fillist *list) { t_fillist *tmp; - unsigned int *map; + unsigned int *map = NULL; int size; int num; int i;