Commit Graph

20 Commits

Author SHA1 Message Date
3ed2c19594 Use #pragma once 2022-11-07 22:54:59 -05:00
372eb2647f Added a column getter 2022-11-03 12:55:01 -04:00
b00fc15125 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.
2021-09-24 23:49:22 -07:00
8e1e6572fe Moved type defs into their own files instead of types.h 2021-09-23 15:15:48 -07:00
f1f60c9dcf Removed cache struct 2021-09-22 23:10:05 -07:00
90c3c13a02 Moving cache logic into match, cleaner next_match() API, and slightly
less tightly coupled UTF8 API
2021-09-21 18:45:43 -07:00
f8860c385e Style change: added cino=:0 (i.e. case statements on same indentation as
switch). Also fixed issue where $$ would fail to match with trailing
newline on file
2021-08-28 16:05:30 -07:00
860a03d29c File refactor for cleaner cleanup with allocated/mmapped storage, also a
bit of general cleanup
2021-08-01 16:06:10 -07:00
0b2de4721f Moved caching code onto the file, which fixed an issue with file slicing
having stale cache values.
2021-08-01 15:36:53 -07:00
bc813df3d7 Tweaks and optimizations 2021-07-29 12:45:37 -07:00
219f62ed3f Renamed file_t.contents -> file_t.start, added file_t.memory for
canonical tracking of memory for mmap, simplified json printing,
and added support for initiating searches on a specific line (and/or
column).
2021-05-20 18:31:28 -07:00
ced0004c87 Fix for permissions/ownership getting screwed up with inplace modifying
of files. With the new change, temporary files are no longer created on
the filesystem and the file is entirely modified inplace (with an
in-memory copy kept on hand for matching).
2021-03-03 17:24:23 -08:00
889fd70ec7 Cleaned up some error code 2021-01-26 17:58:46 -08:00
ac51181f34 Removed dead code for interning files (no longer needed since temp file
change)
2021-01-18 13:06:25 -08:00
97cf726442 More bools 2021-01-18 11:53:37 -08:00
eece8c8556 More static analyzer cleanup, including switching to use bools where
appropriate and EXIT_SUCESS/EXIT_FAILURE
2021-01-18 10:30:17 -08:00
7f0c3804dc Checking more return values (per static analyzer) 2021-01-18 09:52:35 -08:00
3ededef53d Static analysis part 1 2021-01-18 09:15:25 -08:00
c6dd967c70 Fixed two bugs: mmapped files weren't getting closed, and filenames with
%s-style formatting strings caused issues.
2021-01-17 18:06:00 -08:00
77b33d6a3c Renaming files: printing->print, file_loader->files 2021-01-15 19:27:25 -08:00