diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/arg.h | 14 | ||||
-rw-r--r-- | include/file.h | 4 | ||||
-rw-r--r-- | include/util.h | 1 |
3 files changed, 17 insertions, 2 deletions
diff --git a/include/arg.h b/include/arg.h new file mode 100644 index 0000000..be7ca0e --- /dev/null +++ b/include/arg.h @@ -0,0 +1,14 @@ +#ifndef ARG_H +#define ARG_H +#include <stdbool.h> + +struct config { + bool color; + bool lines; +}; + +extern struct config conf; + +int parseargs(int argc, char *argv[]); + +#endif diff --git a/include/file.h b/include/file.h index 8dbaf86..df3b515 100644 --- a/include/file.h +++ b/include/file.h @@ -1,7 +1,7 @@ -#include <stdio.h> - #ifndef FILE_H #define FILE_H + +#include <stdio.h> struct filedata { int lc; size_t len; diff --git a/include/util.h b/include/util.h index ddb86fc..1b0243c 100644 --- a/include/util.h +++ b/include/util.h @@ -1,5 +1,6 @@ #ifndef LIB_H #define LIB_H +#include <stdbool.h> #include <stddef.h> void die(const char *message); |