aboutsummaryrefslogtreecommitdiff
path: root/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-07-29 12:45:37 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-07-29 12:45:37 -0700
commitbc813df3d749971ade565a7cf34aedae6787dc44 (patch)
tree83ebd4020fa82769af3315ab415d0aaace4c7420 /files.h
parentdb969f34a99b5ab5efd3a82d3c6d5a8e9be6f2da (diff)
Tweaks and optimizations
Diffstat (limited to 'files.h')
-rw-r--r--files.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/files.h b/files.h
index c3ee37d..6dc00fa 100644
--- a/files.h
+++ b/files.h
@@ -10,14 +10,14 @@
#define file_err(f, ...) do { fprint_line(stderr, f, __VA_ARGS__); exit(EXIT_FAILURE); } while(false)
-struct allocated_pat_s; // declared in types.h
+struct pat_s; // declared in types.h
typedef struct file_s {
struct file_s *next;
const char *filename;
char *memory, **lines, *start, *end;
size_t nlines;
- struct allocated_pat_s *pats;
+ struct pat_s *pats;
bool mmapped:1;
} file_t;