From 58c7a71a50318940e747c365cc3f207dba432977 Mon Sep 17 00:00:00 2001 From: c+1 Date: Tue, 10 Oct 2023 11:26:44 -0400 Subject: fixed source.c, fixed preprocessor mem leaks, implemented new lexer --- src/include/util.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/include/util.h') diff --git a/src/include/util.h b/src/include/util.h index 712af43..cfc85c2 100644 --- a/src/include/util.h +++ b/src/include/util.h @@ -7,16 +7,18 @@ #include -/* die and leave message */ -void die(const char*, ...); -/* log an error */ -void log_err(const char*, ...); +/* log some debug information */ +void log_dbg(const char*, ...); /* log some information */ void log_inf(const char*, ...); /* log something with no formatting */ void log_raw(const char*, ...); /* log a warning */ void log_war(const char*, ...); +/* log an error */ +void log_err(const char*, ...); +/* die and leave message */ +void die(const char*, ...); /* if calloc() returns null, die */ void* ecalloc(size_t, size_t); -- cgit v1.2.3