diff options
| -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; |
