From 5b87ec6ef2b84f1d319e5376bcf9eedea9829d79 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Sun, 30 Jan 2022 01:19:54 -0500 Subject: Rename `cup` directory to `src` --- cup/utils.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 cup/utils.c (limited to 'cup/utils.c') diff --git a/cup/utils.c b/cup/utils.c deleted file mode 100644 index 2335981..0000000 --- a/cup/utils.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "utils.h" - -#include -#include -#include - -void die(const char *fmt, ...) -{ - va_list args; - va_start(args, fmt); - vfprintf(stderr, fmt, args); - va_end(args); - exit(1); -} - -void _die_location(char *file, int line, Location loc, const char *fmt, ...) -{ - Location_print(stderr, loc); - fprintf(stderr, ": "); - va_list args; - va_start(args, fmt); - vfprintf(stderr, fmt, args); - va_end(args); - fprintf(stderr, "\n"); - fprintf(stderr, "NOTE: Error occurred in %s:%d\n", file, line); - exit(1); -} - -i64 i64max(i64 a, i64 b) { return a > b ? a : b; } -i64 i64min(i64 a, i64 b) { return a < b ? a : b; } \ No newline at end of file -- cgit v1.2.3