Skip to content

Commit

Permalink
chore: fix files according to new norm v3.3.55
Browse files Browse the repository at this point in the history
  • Loading branch information
ygor-sena committed Apr 3, 2024
1 parent b67b3f0 commit fc4db18
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions libft/ft_itoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions libft/ft_memchr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand All @@ -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);
}
8 changes: 4 additions & 4 deletions libft/ft_printf/src/ft_parse_bonus.c
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')
Expand Down
8 changes: 4 additions & 4 deletions libft/ft_printf/src/ft_sort_format_bonus.c
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 */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions libft/ft_utoa_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -43,6 +43,6 @@ static size_t count_base_digit(unsigned long nbr, size_t base)
{
nbr /= base;
digits++;
}
}
return (digits);
}
6 changes: 3 additions & 3 deletions src/interaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fc4db18

Please sign in to comment.