aboutsummaryrefslogtreecommitdiff
path: root/file_loader.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-12-17 19:49:56 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-12-17 19:49:56 -0800
commit06b1a795bb10dd8ed9c2f406ca3b906917e1a106 (patch)
tree09731a1b5009c68f3a19cfe89ee7f03d4c786d9c /file_loader.h
parentb37359b4503d447457646e8f8e01810b6525bd56 (diff)
Better null byte handling, simplified match datastructures, and some
misc. cleanup
Diffstat (limited to 'file_loader.h')
-rw-r--r--file_loader.h3
1 files changed, 2 insertions, 1 deletions
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