summaryrefslogtreecommitdiffstats
path: root/lzip_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-02 07:58:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-02 07:58:50 +0000
commitdbb626a17cceeca84102d7d7eebf7218d4471375 (patch)
treebf76e46a6dba453e188a4be02c053d6b0a462b99 /lzip_index.h
parentReleasing debian version 1.13-6. (diff)
downloadclzip-dbb626a17cceeca84102d7d7eebf7218d4471375.tar.xz
clzip-dbb626a17cceeca84102d7d7eebf7218d4471375.zip
Merging upstream version 1.14~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lzip_index.h')
-rw-r--r--lzip_index.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lzip_index.h b/lzip_index.h
index b76560e..5e2f77f 100644
--- a/lzip_index.h
+++ b/lzip_index.h
@@ -1,5 +1,5 @@
/* Clzip - LZMA lossless data compressor
- Copyright (C) 2010-2022 Antonio Diaz Diaz.
+ Copyright (C) 2010-2023 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
@@ -16,13 +16,13 @@
*/
#ifndef INT64_MAX
-#define INT64_MAX 0x7FFFFFFFFFFFFFFFLL
+#define INT64_MAX 0x7FFFFFFFFFFFFFFFLL
#endif
struct Block
{
- long long pos, size; /* pos + size <= INT64_MAX */
+ long long pos, size; /* pos >= 0, size >= 0, pos + size <= INT64_MAX */
};
static inline void init_block( struct Block * const b,
@@ -40,10 +40,10 @@ struct Member
};
static inline void init_member( struct Member * const m,
- const long long dp, const long long ds,
- const long long mp, const long long ms,
+ const long long dpos, const long long dsize,
+ const long long mpos, const long long msize,
const unsigned dict_size )
- { init_block( &m->dblock, dp, ds ); init_block( &m->mblock, mp, ms );
+ { init_block( &m->dblock, dpos, dsize ); init_block( &m->mblock, mpos, msize );
m->dictionary_size = dict_size; }
struct Lzip_index
@@ -58,7 +58,7 @@ struct Lzip_index
};
bool Li_init( struct Lzip_index * const li, const int infd,
- const bool ignore_trailing, const bool loose_trailing );
+ const struct Cl_options * const cl_opts );
void Li_free( struct Lzip_index * const li );