Refactor include files to comply with the Norm
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 26 Apr 2024 09:17:55 +0000 (11:17 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 26 Apr 2024 09:17:55 +0000 (11:17 +0200)
inc/color.h
inc/complex.h
inc/fractals.h
inc/fractol.h
inc/vect2.h

index cf2fa4d271553c6c4e630a342593f3cddb860fe9..7bb928e00801d1a4b0d50a4002fd843d63c834f3 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/11/11 18:51:23 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/01/17 12:20:02 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/04/26 11:12:57 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -22,7 +22,7 @@ struct s_color
        unsigned char   g;
        unsigned char   b;
 };
-typedef struct s_color t_color;
+typedef struct s_color t_color;
 
 t_color        lin_interp_color(t_color zero, t_color one, double norm_par);
 t_color        basic_palette(double normalized_par);
index c3bfa00ee5e3130176bdcace8f79028f1b8ea450..0f5d33e726f7bf45187a135df0ab7987142cc6eb 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/11/11 18:51:27 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/01/19 10:56:11 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/04/26 11:16:20 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -18,7 +18,7 @@ struct s_complex
        double  r;
        double  i;
 };
-typedef struct s_complex t_complex;
+typedef struct s_complex       t_complex;
 
 t_complex      to_complex(double x, double y);
 t_complex      complex_add(t_complex x, t_complex y);
index a3277de25ea541abd348b1d394081a88fad1556e..e6f749b7db4f1c74376f818e1fa5b9d00fd847a5 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/01/19 10:56:55 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/04/25 15:10:14 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/04/26 11:16:59 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
 
 # include "fractol.h"
 
-//double       general_julia(void *zeroth, double resolution,
-//                                             void (*tested_f)(void *), int (*is_over_thresh)(void *));
+/*
+double general_julia(void *zeroth, double resolution,
+                                       void (*tested_f)(void *), int (*is_over_thresh)(void *));
+*/
 
 double mandelbrot(t_set *settings, double x, double y);
 double tricorn(t_set *settings, double x, double y);
index 1e7583f1a5e6c914c3b76e9fdfa79c761e9cdf49..0d4bfc2aa031043aa72dd60fa17295e5346fd068 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/11/11 18:51:29 by ljiriste          #+#    #+#             */
-/*   Updated: 2024/04/26 11:01:18 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/04/26 11:16:05 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -32,9 +32,9 @@ struct s_img
        int             undersample;
        int             undersample_max;
 };
-typedef struct s_img   t_img;
+typedef struct s_img           t_img;
 
-typedef double (*t_fractal)();
+typedef double                         (*t_fractal)();
 
 struct s_view
 {
@@ -45,13 +45,13 @@ struct s_view
        t_vect2         window_coord;
        t_vect2         pixel_size;
 };
-typedef struct s_view  t_view;
+typedef struct s_view          t_view;
 
 union u_input
 {
        t_complex       cpx;
 };
-typedef union u_input  t_input;
+typedef union u_input          t_input;
 
 struct s_set
 {
@@ -59,7 +59,7 @@ struct s_set
        int             color_stability;
        t_input input;
 };
-typedef struct s_set   t_set;
+typedef struct s_set           t_set;
 
 struct s_session
 {
index 500035c6a7a2d2078750b1c6c0a8d5357b495ddd..b74dfced8b88215a614072bb120f2212a41d2cf2 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/11/11 18:51:34 by ljiriste          #+#    #+#             */
-/*   Updated: 2023/11/11 18:51:38 by ljiriste         ###   ########.fr       */
+/*   Updated: 2024/04/26 11:12:40 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -18,6 +18,6 @@ struct s_vect2
        double  x;
        double  y;
 };
-typedef struct s_vect2 t_vect2;
+typedef struct s_vect2 t_vect2;
 
 #endif