Auto stash before merge of "master" and "origin/master" + CLEANING

This commit is contained in:
Manzovince
2019-05-20 13:48:14 +02:00
parent f4b1da414c
commit 2dbd5b7320
4 changed files with 26 additions and 40 deletions

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:29:05 by vmanzoni #+# #+# */
/* Updated: 2019/05/09 12:45:25 by vmanzoni ### ########.fr */
/* Updated: 2019/05/20 13:42:07 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,27 +23,28 @@ void print_error(char *str)
}
/*
** UPGRADE VERSION
** Function that display error message *s on fd
** with more informations
** and exit program
**
**void print_error_extended(int error)
**{
** if (error == 1)
** ft_putstr("error: File contains char other than '.','#' and '\\n'.\n");
** if (error == 2)
** ft_putstr("error: File contains more than 2 '\\n' in a row.\n");
** if (error == 3)
** ft_putstr("error: File contains less than 1 tetrimino "
** "or more than 26.\n");
** if (error == 4)
** ft_putstr("error: Tetrimino has more or less than 4 #.\n");
** if (error == 5)
** ft_putstr("error: Tetrimino # are not all connected.\n");
** exit(1);
**}
*/
void print_error_extended(int error)
{
if (error == 1)
ft_putstr("error: File contains char other than '.','#' and '\\n'.\n");
if (error == 2)
ft_putstr("error: File contains more than 2 '\\n' in a row.\n");
if (error == 3)
ft_putstr("error: File contains less than 1 tetrimino "
"or more than 26.\n");
if (error == 4)
ft_putstr("error: Tetrimino has more or less than 4 #.\n");
if (error == 5)
ft_putstr("error: Tetrimino # are not all connected.\n");
exit(1);
}
/*
** Function to see if there if an error if the file
** - less than 4 lines