summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-14 12:04:01 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:52 +0100
commit8e5bf1e894d36ee939653da7bf029f7a10f002d6 (patch)
tree37540923adf0ed8d9916f6da2e9a25f2390b8617
parentdc3963fc6626dda89dcce35e9f3e73151ab7f3e5 (diff)
Add stdbool.h everywhere.
-rw-r--r--charf.c1
-rw-r--r--double-error.c1
-rw-r--r--double-error.h2
-rw-r--r--double.c1
-rw-r--r--double.h2
-rw-r--r--ratio.c1
-rw-r--r--ratio.h4
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 <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);
diff --git a/double.c b/double.c
index 1572759..d7f140f 100644
--- a/double.c
+++ b/double.c
@@ -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; }
diff --git a/double.h b/double.h
index 9a26970..606c8af 100644
--- a/double.h
+++ b/double.h
@@ -1,3 +1,5 @@
+#include <stdbool.h>
+
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 <math.h>
#include <limits.h>
#include <float.h>
+#include <stdbool.h>
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 <stdio.h>
-#include <stdlib.h>
-#include <math.h>
+#include <stdbool.h>
typedef struct {bool s; unsigned long long n; unsigned long long d;} rational;