diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-14 12:04:01 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:52 +0100 |
| commit | 8e5bf1e894d36ee939653da7bf029f7a10f002d6 (patch) | |
| tree | 37540923adf0ed8d9916f6da2e9a25f2390b8617 | |
| parent | dc3963fc6626dda89dcce35e9f3e73151ab7f3e5 (diff) | |
Add stdbool.h everywhere.
| -rw-r--r-- | charf.c | 1 | ||||
| -rw-r--r-- | double-error.c | 1 | ||||
| -rw-r--r-- | double-error.h | 2 | ||||
| -rw-r--r-- | double.c | 1 | ||||
| -rw-r--r-- | double.h | 2 | ||||
| -rw-r--r-- | ratio.c | 1 | ||||
| -rw-r--r-- | ratio.h | 4 |
7 files changed, 9 insertions, 3 deletions
@@ -3,6 +3,7 @@ #include <math.h> //for multithreading #include <pthread.h> +#include <stdbool.h> #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 <math.h> #include <stdio.h> #include <float.h> +#include <stdbool.h> #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 <stdbool.h> + typedef struct {double v; double e;} double_error; double_error int_to_valuetype(int); @@ -1,6 +1,7 @@ #include <stdlib.h> #include <math.h> #include <stdio.h> +#include <stdbool.h> double int_to_valuetype(int i){ return (double) i; } @@ -1,3 +1,5 @@ +#include <stdbool.h> + double int_to_valuetype(int); double int_to_exptype(double); @@ -3,6 +3,7 @@ #include <math.h> #include <limits.h> #include <float.h> +#include <stdbool.h> typedef unsigned long long num; @@ -1,6 +1,4 @@ -#include <stdio.h> -#include <stdlib.h> -#include <math.h> +#include <stdbool.h> typedef struct {bool s; unsigned long long n; unsigned long long d;} rational; |
