diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:31:44 +0000 |
commit | 166ede1642869f46a0aae2df885772f7383e9ab2 (patch) | |
tree | e94c5a1aa65e2c1b2370656f0df107edd33700f7 /lzip.h | |
parent | Adding upstream version 1.24~pre1. (diff) | |
download | lziprecover-166ede1642869f46a0aae2df885772f7383e9ab2.tar.xz lziprecover-166ede1642869f46a0aae2df885772f7383e9ab2.zip |
Adding upstream version 1.24.upstream/1.24
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | lzip.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* Lziprecover - Data recovery tool for the lzip format - Copyright (C) 2009-2023 Antonio Diaz Diaz. + Copyright (C) 2009-2024 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -309,7 +309,7 @@ struct Lzip_trailer }; -struct Cl_options // command line options +struct Cl_options // command-line options { bool ignore_empty; bool ignore_errors; @@ -355,7 +355,6 @@ public: bool overlaps( const long long pos, const long long size ) const { return pos_ < pos + size && pos < end(); } - void shift( Block & b ) { ++size_; ++b.pos_; --b.size_; } Block split( const long long pos ); }; @@ -479,12 +478,13 @@ int open_instream( const char * const name, struct stat * const in_statsp, int open_truncable_stream( const char * const name, struct stat * const in_statsp ); bool open_outstream( const bool force, const bool protect, - const bool rw = false, const bool skipping = true ); + const bool rw = false, const bool skipping = true, + const bool to_file = false ); bool output_file_exists(); void cleanup_and_fail( const int retval ); bool check_tty_out(); void set_signal_handler(); -int close_outstream( const struct stat * const in_statsp ); +bool close_outstream( const struct stat * const in_statsp ); std::string insert_fixed( std::string name ); void show_2file_error( const char * const msg1, const char * const name1, const char * const name2, const char * const msg2 ); |