From 55dc897da6e81f2a26cfc7e66ac942824773498b Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 4 Jan 2022 11:51:58 +0800 Subject: temporary commit Now we can read grammars from a file. But we need to check if it works for reading strings still. --- src/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index d657f0e..9120e9b 100644 --- a/src/util.h +++ b/src/util.h @@ -28,7 +28,9 @@ typedef unsigned long long UNUM; /* definitely bigger than size_t */ #define eprintf(...) fprintf(stderr, __VA_ARGS__) +#define fleprintf0(M) eprintf(M, __FILE__, __LINE__) +#define fleprintf(M, ...) eprintf(M, __FILE__, __LINE__, __VA_ARGS__) - +unsigned char read_entire_file(const char *file_name, char **str, NUM *len); #endif -- cgit v1.2.3-18-g5258