diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-03-30 00:05:08 +1300 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-03-30 00:05:28 +1300 |
commit | b2bc9c90c39b37bf939633d44f717583413e47d9 (patch) | |
tree | d827e10535c62d4a8e24410eb412e3a3e107dffb /fractal-gen.h | |
parent | 7f0f089f4dc98d8c6cc145f7355acf1a5ef9e53a (diff) | |
download | fractal-gen-b2bc9c90c39b37bf939633d44f717583413e47d9.tar.xz |
Replace assertions with useful error messages, tidy header file up
Diffstat (limited to 'fractal-gen.h')
-rw-r--r-- | fractal-gen.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fractal-gen.h b/fractal-gen.h index a4c0b76..e0b69a8 100644 --- a/fractal-gen.h +++ b/fractal-gen.h @@ -28,15 +28,8 @@ #ifndef FRACTAL_GEN_H #define FRACTAL_GEN_H -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <libgen.h> -#include <complex.h> -#include <math.h> -#include <unistd.h> +#include <stdbool.h> #include <pthread.h> -#include <assert.h> typedef struct { @@ -55,6 +48,12 @@ unsigned int iterat; double power; +typedef void* (*generator_func)(void *); + +bool args_parse_okay(const int argc, const char **argv); +generator_func select_generator(const char* name); + + #include "algorithms.h" #endif |