From 319e7ea0a724cd97041c1aaf1281c4ca6aa688d1 Mon Sep 17 00:00:00 2001 From: standenboy Date: Mon, 6 May 2024 09:32:48 +0100 Subject: added a load of stuff, and fixed a git conflict --- comp/lucas-standen-NEA/code/parser/preprocessor.c | 24 ----------------------- 1 file changed, 24 deletions(-) delete mode 100644 comp/lucas-standen-NEA/code/parser/preprocessor.c (limited to 'comp/lucas-standen-NEA/code/parser/preprocessor.c') diff --git a/comp/lucas-standen-NEA/code/parser/preprocessor.c b/comp/lucas-standen-NEA/code/parser/preprocessor.c deleted file mode 100644 index 92c6127..0000000 --- a/comp/lucas-standen-NEA/code/parser/preprocessor.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -#include "readfile.h" - -char *preprocessor(int argc, char **argv){ - char *buf = readfile(argv[1]); - if (buf == NULL) - return NULL; - - int i = 0; - - while (buf[i] != '\0'){ - if (buf[i] == '\n'){ - buf[i] = ' '; - } - if (buf[i] == '\t'){ - buf[i] = ' '; - } - i++; - } - - return buf; -} -- cgit v1.2.3