From 8e5bf1e894d36ee939653da7bf029f7a10f002d6 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Wed, 14 Jan 2026 12:04:01 +0100 Subject: Add stdbool.h everywhere. --- charf.c | 1 + double-error.c | 1 + double-error.h | 2 ++ double.c | 1 + double.h | 2 ++ ratio.c | 1 + ratio.h | 4 +--- 7 files changed, 9 insertions(+), 3 deletions(-) diff --git a/charf.c b/charf.c index 537f28a..01c3087 100644 --- a/charf.c +++ b/charf.c @@ -3,6 +3,7 @@ #include //for multithreading #include +#include #define DOUBLEMODE 0 #define DOUBLEERRORMODE 1 diff --git a/double-error.c b/double-error.c index 672956f..e166ec0 100644 --- a/double-error.c +++ b/double-error.c @@ -2,6 +2,7 @@ #include #include #include +#include #define EPS 2*DBL_EPSILON diff --git a/double-error.h b/double-error.h index bacc8e7..84d118a 100644 --- a/double-error.h +++ b/double-error.h @@ -1,3 +1,5 @@ +#include + typedef struct {double v; double e;} double_error; double_error int_to_valuetype(int); diff --git a/double.c b/double.c index 1572759..d7f140f 100644 --- a/double.c +++ b/double.c @@ -1,6 +1,7 @@ #include #include #include +#include double int_to_valuetype(int i){ return (double) i; } diff --git a/double.h b/double.h index 9a26970..606c8af 100644 --- a/double.h +++ b/double.h @@ -1,3 +1,5 @@ +#include + double int_to_valuetype(int); double int_to_exptype(double); diff --git a/ratio.c b/ratio.c index 4b5c56b..e23aabd 100644 --- a/ratio.c +++ b/ratio.c @@ -3,6 +3,7 @@ #include #include #include +#include typedef unsigned long long num; diff --git a/ratio.h b/ratio.h index 1f54781..6c6469d 100644 --- a/ratio.h +++ b/ratio.h @@ -1,6 +1,4 @@ -#include -#include -#include +#include typedef struct {bool s; unsigned long long n; unsigned long long d;} rational; -- cgit v1.2.3