aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-02-12 14:34:12 +0100
committerJan200101 <sentrycraft123@gmail.com>2021-03-26 18:53:26 +0100
commit63e5e87d71e42f6f252b97468d2e4e7f3b95277a (patch)
treeceeb342a032b3b588f9c8cba55d895a5494e1b33 /src/common.h
parentc7f30c98540de3ce8ad0a34b9e162801de0e257b (diff)
downloadpolecat-63e5e87d71e42f6f252b97468d2e4e7f3b95277a.tar.gz
polecat-63e5e87d71e42f6f252b97468d2e4e7f3b95277a.zip
a chunk of changes
- replace bool with ints, - give enums a t suffix - fix edge case in variable parser where the end of the buffer is not null - make parseVar take an allocated variable list instead of a static one - set the first argument of all tasks to be the prefix - correctly parse chmodx directives - add GAMEDIR variable to the variable list - output known variables on installer info - implement basic task handling - check if file exists before redownloading - remove debug function - make noprogress argument into progress and convert it to int
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index a77d0a2..b206f7b 100644
--- a/src/common.h
+++ b/src/common.h
@@ -4,7 +4,6 @@
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
-#include <stdbool.h>
#include <sys/stat.h>
#define ARRAY_LEN(arr) sizeof(arr) / sizeof(arr[0])
@@ -63,8 +62,8 @@ struct Command {
void print_help(const struct Command*, size_t);
struct stat getStat(const char* path);
-bool isFile(const char*);
-bool isDir(const char*);
+int isFile(const char*);
+int isDir(const char*);
int makeDir(const char* path);
int removeDir(const char *path);