From b29060f38b30e6e379769582a0cf7cc3e9ae5056 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 02:05:17 -0800 Subject: Cleaned up and simplified global state setting stuff (e.g. --verbose) --- file_loader.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'file_loader.h') diff --git a/file_loader.h b/file_loader.h index 91480b2..cfe8701 100644 --- a/file_loader.h +++ b/file_loader.h @@ -17,7 +17,8 @@ typedef struct file_s { unsigned int mmapped:1; } file_t; -file_t *load_file(file_t **files, const char *filename); +__attribute__((format(printf,2,3))) +file_t *load_file(file_t **files, const char *fmt, ...); __attribute__((nonnull(3), returns_nonnull)) file_t *spoof_file(file_t **files, const char *filename, const char *text); __attribute__((nonnull)) @@ -30,7 +31,7 @@ __attribute__((pure, nonnull)) size_t get_char_number(file_t *f, const char *p); __attribute__((pure, nonnull)) const char *get_line(file_t *f, size_t line_number); -__attribute__((nonnull(1,2,3), format(printf, 5, 6))) +__attribute__((nonnull(1,2,3), format(printf,5,6))) void fprint_line(FILE *dest, file_t *f, const char *start, const char *end, const char *fmt, ...); #endif -- cgit v1.2.3