From 58e0d435c38c0b4e6c59244436556dba6ed96abf Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Wed, 12 Apr 2023 23:46:53 -0400 Subject: Add args - add color arg - add lines arg --- include/arg.h | 14 ++++++++++++++ include/file.h | 4 ++-- include/util.h | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 include/arg.h (limited to 'include') 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 + +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 - #ifndef FILE_H #define FILE_H + +#include 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 #include void die(const char *message); -- cgit v1.2.3