From 06b1a795bb10dd8ed9c2f406ca3b906917e1a106 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 17 Dec 2020 19:49:56 -0800 Subject: Better null byte handling, simplified match datastructures, and some misc. cleanup --- file_loader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'file_loader.h') diff --git a/file_loader.h b/file_loader.h index cda8dc3..d6d305a 100644 --- a/file_loader.h +++ b/file_loader.h @@ -9,7 +9,7 @@ typedef struct { const char *filename; char *contents, **lines, *end; - size_t length, nlines; + size_t nlines; unsigned int mmapped:1; } file_t; @@ -27,3 +27,4 @@ __attribute__((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 -- cgit v1.2.3