struct compression_suffix
{
const char *suffix;
- size_t length;
+ idx_t length;
const char *program;
};
there the length of NAME with that suffix stripped, or 0 if NAME has
no suffix. */
static struct compression_suffix const *
-find_compression_suffix (const char *name, size_t *ret_len)
+find_compression_suffix (const char *name, idx_t *ret_len)
{
char *suf = strrchr (name, '.');
if (suf && suf[1] != 0 && suf[1] != '/')
{
- size_t len;
+ idx_t len;
struct compression_suffix *p;
suf++;
set_compression_program_by_suffix (const char *name, const char *defprog,
bool verbose)
{
- size_t len;
+ idx_t len;
struct compression_suffix const *p = find_compression_suffix (name, &len);
if (p)
use_compress_program_option = p->program;
strip_compression_suffix (const char *name)
{
char *s = NULL;
- size_t len;
+ idx_t len;
struct compression_suffix const *p = find_compression_suffix (name, &len);
if (p)