aboutsummaryrefslogtreecommitdiff
path: root/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-24 23:49:22 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-24 23:49:22 -0700
commitb00fc15125ed8087dc68ae5725671861d1e8ddc9 (patch)
tree5dc8629d4ecad4c29ba38db50c8dc70cc4465917 /files.h
parent787784c77ecf512b090b01d225efeee4b433b457 (diff)
Removed file_err() and file_printf() in favor of just inlining some of
the error assertion code. Also eliminated most of the spoof_file() calls in favor of just using command line arguments directly.
Diffstat (limited to 'files.h')
-rw-r--r--files.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/files.h b/files.h
index 41c8398..b32d5a4 100644
--- a/files.h
+++ b/files.h
@@ -7,8 +7,6 @@
#include <stdio.h>
#include <unistd.h>
-#define file_err(f, ...) do { fprint_line(stderr, f, __VA_ARGS__); exit(EXIT_FAILURE); } while(false)
-
typedef struct file_s {
struct file_s *next;
const char *filename;
@@ -31,8 +29,6 @@ __attribute__((pure, nonnull))
size_t get_line_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)))
-void fprint_line(FILE *dest, file_t *f, const char *start, const char *end, const char *fmt, ...);
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0