en cours de reorganisation des fichiers pour gerer les flags

This commit is contained in:
Hugo LAMY
2019-05-24 18:05:18 +02:00
parent 1a16e305d3
commit 6b9936b0cd
64 changed files with 4351 additions and 51 deletions

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:34:46 by vmanzoni #+# #+# */
/* Updated: 2019/05/20 15:18:43 by hulamy ### ########.fr */
/* Updated: 2019/05/24 18:04:17 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -46,7 +46,6 @@
/*
** STRUCTURE
*/
typedef struct s_fillist
{
unsigned short tetribit;
@@ -64,23 +63,44 @@ typedef struct s_fillist
} t_fillist;
/*
** FUNCTIONS
** main.c
*/
int main(int argc, char **argv);
int *create_dope(char *av);
int is_mdp(int ac, char **av);
/*
** read_file.c
*/
char *read_file(char *file);
/*
** handle_errors.c
*/
void print_error(char *s);
void print_error_extended(int error);
int parse_input(char *input, t_fillist **list);
int check_file_errors(char *file);
void print_error_extended(int error, int *dope);
int check_file_errors(char *file, int *dope);
int check_tetri_errors(char *tetri);
int check_tetri_errors_proxy(char *tetri);
/*
** handle_errors.c
*/
int parse_input(char *input, t_fillist **list, int *dope);
int add_to_list(char *square, t_fillist **list, char letter);
void fill_list(char line[], t_fillist *list);
unsigned short reduce_tetri(unsigned short tetri, int width);
unsigned short tab_to_bin(char line[]);
void print_bits(unsigned int bits, int size); //TO DELETE BEFORE EVAL
void print_tetri(unsigned int bits, int size); //TO DELETE BEFORE EVAL
int search_map(t_fillist *list);
void print_map(unsigned int *tab, int width, int height, char letter);
void print_final_map(t_fillist *list, int size, int flag);
void ft_put_tetri_color(char c);
int check_tetri_memory(t_fillist *list, int pos);
void remove_tetri_memory(t_fillist *list, int pos);
int check_same_tetri(t_fillist *list, int num);
int compare_tetri(t_fillist *tetri_a, t_fillist *tetri_b);
#endif