diff options
author | Himbeer <himbeer@disroot.org> | 2025-05-08 14:56:34 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-05-08 14:56:34 +0200 |
commit | 999491d046547dafa7238163d6231a5b3257c250 (patch) | |
tree | d414e5fb1ff538a80a049953227c70b87671f383 /include/util.h | |
parent | 973812e4720912e9e326eb494c9e506e642d7afe (diff) |
Move error function to util.c
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 70ae619..722e6d3 100644 --- a/include/util.h +++ b/include/util.h @@ -1,6 +1,7 @@ #ifndef CERC_UTIL_H #define CERC_UTIL_H #include <stddef.h> +#include "lex.h" enum exit_status { /* EXIT_SUCCESS = 0 (defined in stdlib.h) */ @@ -14,5 +15,6 @@ enum exit_status { void *must_malloc(size_t size); void *must_calloc(size_t nmemb, size_t size); void *must_realloc(void *ptr, size_t size); +void error(struct location loc, const char *fmt, ...); #endif |