aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d.h
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 16:41:06 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 16:41:06 +0100
commite51748b78bd082d3f781930ba9eba619f0342bf6 (patch)
tree81871b5c1b6325bc20a2999e3bbd80f418973688 /inc/cub3d.h
parentGot colors (diff)
download42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.gz
42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.bz2
42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.xz
42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.tar.zst
42-cub3d-e51748b78bd082d3f781930ba9eba619f0342bf6.zip
Better error management
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r--inc/cub3d.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index b33d040..60bcd58 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -25,8 +25,8 @@ typedef struct s_win
void *wlx;
void *winptr;
uint8_t inited;
- uint16_t x_size;
- uint16_t y_size;
+ int16_t x_size;
+ int16_t y_size;
} t_win;
typedef struct s_cub
@@ -60,9 +60,8 @@ int ft_get_sprite(char **words, t_cub *clist);
int ft_get_f_color(char **words, t_cub *clist);
int ft_get_c_color(char **words, t_cub *clist);
int ft_get_map(int fd, t_cub *clist);
-void ft_check_empty_line(int fd,
- unsigned int linum,
- t_cub *clist);
+int ft_check_missing(t_cub *clist);
+int ft_missing_error(const char *err, t_cub *clist);
void ft_free_words(char **words);
int ft_map_error(t_cub *clist);
int ft_init_winlx(t_cub *clist);