ridiculousfish
|
5f7e03ccf4
|
Introduce noncopyable_t and nonmovable_t
These are little helper types that allow us to get rid of lots of
'=delete' declarations.
|
2021-07-23 11:19:42 -07:00 |
|
ridiculousfish
|
786b0463b6
|
Fix a unique_ptr build error with gcc 4.8
|
2021-05-10 16:49:11 -07:00 |
|
ridiculousfish
|
f85f6a0127
|
Enforce that history items must end with trailing newlines
This helps prevent seeing partially written items from other sessions,
in preparation to reducing the amount of flocking done.
|
2021-05-10 14:23:07 -07:00 |
|
ridiculousfish
|
aa02cbd090
|
Wrap up history's mmap logic into its own type
This improves the factoring a bit.
|
2021-05-09 11:59:29 -07:00 |
|
ridiculousfish
|
d1befee19e
|
Fix some potential leaks in history file contents
If history is corrupt and cannot be read, fish would return an error
without munmaping the file. Ensure it is properly munmapped.
|
2021-05-09 11:59:29 -07:00 |
|
Rosen Penev
|
473a5250ae
|
[clang-tidy] change several member functions to const
Found with readability-make-member-function-const
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
2020-04-05 10:13:13 +02:00 |
|
ridiculousfish
|
3c727173c2
|
Include ctime in history_file.h
Fixes a build failure on FreeBSD.
Fixes #6210
|
2019-10-16 11:55:40 -07:00 |
|
ridiculousfish
|
82eca4bc86
|
Run clang-format on all files
The main change here is to reorder headers.
|
2019-10-13 15:50:48 -07:00 |
|
ridiculousfish
|
ce178fd6fd
|
Make escape_yaml_fish_2_0 and unescape_yaml_fish_2_0 static
They no longer need to be exposed.
|
2019-08-12 09:22:21 -07:00 |
|
ridiculousfish
|
3ae5b23971
|
Migrate append_history_item_to_buffer to history_file.cpp
Also eliminate history_output_buffer_t, which no longer does anything useful.
|
2019-08-12 09:17:10 -07:00 |
|
ridiculousfish
|
91987a4548
|
Migrate history file format stuff into new file history_file.cpp
Breaks up the history.cpp monolith.
|
2019-08-11 12:45:04 -07:00 |
|