summaryrefslogtreecommitdiffstats
path: root/lzip_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:35:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-01-23 05:35:03 +0000
commit3ac1eed6033500851faea31f0e07945491685d56 (patch)
tree28b1c8d5af47dd63f3ca1318081ce56cba92c3bc /lzip_index.h
parentAdding upstream version 1.13. (diff)
downloadlunzip-13c50a83f8993af54e78d92dddb3a5812dfad010.tar.xz
lunzip-13c50a83f8993af54e78d92dddb3a5812dfad010.zip
Adding upstream version 1.14~rc1.upstream/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 0938533..df2aeca 100644
--- a/lzip_index.h
+++ b/lzip_index.h
@@ -1,5 +1,5 @@
/* Lunzip - Decompressor for the lzip format
- 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 );