-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix files according to new norm v3.3.55
- Loading branch information
Showing
7 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
/* ::: :::::::: */ | ||
/* ft_itoa.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/06/14 14:47:28 by yde-goes #+# #+# */ | ||
/* Updated: 2022/06/24 18:04:57 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:57:58 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -36,7 +36,7 @@ char *ft_itoa(int n) | |
str_n[len_n - 1] = n % 10 + '0'; | ||
n /= 10; | ||
len_n--; | ||
} | ||
} | ||
if (neg == 1) | ||
str_n[len_n] = '-'; | ||
return (str_n); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
/* ::: :::::::: */ | ||
/* ft_memchr.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/06/08 00:59:28 by yde-goes #+# #+# */ | ||
/* Updated: 2022/06/27 16:15:28 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:58:28 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -24,6 +24,6 @@ void *ft_memchr(const void *s, int c, size_t n) | |
if (*cast_s == (t_byte) c) | ||
return ((void *) cast_s); | ||
cast_s++; | ||
} | ||
} | ||
return (NULL); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_parse.c :+: :+: :+: */ | ||
/* ft_parse_bonus.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/07/21 17:31:06 by yde-goes #+# #+# */ | ||
/* Updated: 2022/07/22 04:48:30 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:57:14 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "../includes/ft_printf_bonus.h" | ||
|
||
void ft_parse_hexa(t_format *input, t_flag flag, char *str_nbr) | ||
{ | ||
{ | ||
if (*str_nbr == '0') | ||
flag.hashtag = FALSE; | ||
else if (flag.hashtag && input->format[input->index] == 'x') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_sort_format.c :+: :+: :+: */ | ||
/* ft_sort_format_bonus.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/07/14 01:27:59 by yde-goes #+# #+# */ | ||
/* Updated: 2022/07/22 04:48:36 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:57:06 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -39,7 +39,7 @@ static void ft_check_parse(t_flag flag) | |
{ | ||
if ((flag.spec != 'x' || flag.spec != 'X') | ||
|| (flag.sign || flag.space)) | ||
flag.error = TRUE; | ||
flag.error = TRUE; | ||
} | ||
if (flag.sign && flag.space) | ||
flag.space = FALSE; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
/* ::: :::::::: */ | ||
/* ft_utoa_base.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/07/15 21:46:27 by yde-goes #+# #+# */ | ||
/* Updated: 2022/07/16 16:16:49 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:58:18 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -43,6 +43,6 @@ static size_t count_base_digit(unsigned long nbr, size_t base) | |
{ | ||
nbr /= base; | ||
digits++; | ||
} | ||
} | ||
return (digits); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,17 @@ | |
/* ::: :::::::: */ | ||
/* interaction.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/09/06 19:47:09 by yde-goes #+# #+# */ | ||
/* Updated: 2022/09/06 19:48:40 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:58:45 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "../includes/fdf.h" | ||
|
||
int zoom_projection(int keysym, t_map *map) | ||
{ | ||
{ | ||
if (keysym == KEY_MINUS) | ||
map->scale_factor = map->scale_factor - 1; | ||
else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
/* ::: :::::::: */ | ||
/* render.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: yde-goes <[email protected] +#+ +:+ +#+ */ | ||
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/08/30 18:33:03 by yde-goes #+# #+# */ | ||
/* Updated: 2022/09/06 23:27:49 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/03 19:58:39 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -71,7 +71,7 @@ static void init_map_plot(t_fdf *data, t_point *p1, t_point *p2) | |
{ | ||
set_map(data, p2, i, j + 1); | ||
bresenham(&data->img, p1, p2); | ||
} | ||
} | ||
if (i + 1 < data->map.width_x) | ||
{ | ||
set_map(data, p2, i + 1, j); | ||
|