diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 16:14:26 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 16:14:26 +0100 |
commit | ce43b1cd1caa539af687425f58a6999a20807878 (patch) | |
tree | 34631aef16b6eb1d5d650fe9e900916f9810215d /src/ft_get_tex.c | |
parent | Makefile update (diff) | |
download | 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.gz 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.bz2 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.xz 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.tar.zst 42-cub3d-ce43b1cd1caa539af687425f58a6999a20807878.zip |
Going full stack is bav
Diffstat (limited to 'src/ft_get_tex.c')
-rw-r--r-- | src/ft_get_tex.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c index 655e9ad..f8a817c 100644 --- a/src/ft_get_tex.c +++ b/src/ft_get_tex.c @@ -19,23 +19,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ARGS); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".xpm") < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_NOT_A_XPM); + ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist.mlist.no_tex_path); - if (!(clist.mlist.no_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.no_tex_path); + if (!(clist->mlist.no_tex_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist.mlist.no_tex_path) < 0) + if (ft_check_not_found(clist->mlist.no_tex_path) < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_RD_NO); + ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_NO); return (-1); } return (0); @@ -46,23 +46,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ARGS); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".xpm") < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_NOT_A_XPM); + ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist.mlist.so_tex_path); - if (!(clist.mlist.so_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.so_tex_path); + if (!(clist->mlist.so_tex_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist.mlist.so_tex_path) < 0) + if (ft_check_not_found(clist->mlist.so_tex_path) < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_RD_SO); + ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_SO); return (-1); } return (0); @@ -73,23 +73,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ARGS); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".xpm") < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_NOT_A_XPM); + ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist.mlist.ea_tex_path); - if (!(clist.mlist.ea_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.ea_tex_path); + if (!(clist->mlist.ea_tex_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist.mlist.ea_tex_path) < 0) + if (ft_check_not_found(clist->mlist.ea_tex_path) < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_RD_EA); + ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_EA); return (-1); } return (0); @@ -100,23 +100,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ARGS); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".xpm") < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_NOT_A_XPM); + ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist.mlist.we_tex_path); - if (!(clist.mlist.we_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.we_tex_path); + if (!(clist->mlist.we_tex_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist.mlist.we_tex_path) < 0) + if (ft_check_not_found(clist->mlist.we_tex_path) < 0) { - ft_sprintf(clist.errmsg, "%s", FT_ERR_RD_WE); + ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_WE); return (-1); } return (0); |