diff options
author | Marvin Borner | 2022-02-20 18:48:30 +0100 |
---|---|---|
committer | Marvin Borner | 2022-02-20 18:48:30 +0100 |
commit | fa02225c5ae8b704408769c70bb47101042762b8 (patch) | |
tree | 2bbd0763fccacd0a35631d6ee9a2176ed836eef5 /src/log.c | |
parent | 5cc450b6e8554f5d982f444b9026447971c94024 (diff) |
Haskell ftw
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/log.c b/src/log.c deleted file mode 100644 index 0e59ea2..0000000 --- a/src/log.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <assert.h> -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> - -#include <log.h> - -void errln(struct ctx_location *location, const char *fmt, ...) -{ - fprintf(stderr, "\x1B[1;36m%s:%lu:%lu:\x1B[0m ", location->path, location->line + 1, - location->column + 1); - - fprintf(stderr, "\x1B[1;31mError:\x1B[0m "); - - va_list ap; - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - fprintf(stderr, "\n"); - context_print(stderr, location); - - exit(1); -} |