Debian Bug#157098: wrong file presentation on large files

from "Eduard Bloch" <blade@debian.org>
* configure (clen_t): added
		(HAVE_STRTOLL): added
		(HAVE_STRTOQ): added
		(HAVE_ATOLL): added
		(HAVE_ATOQ): added
* config.h.dist: ditto
* file.c (current_content_length): s/int/clen_t/
	(loadGeneralFile): s/atoi/strtoclen/
	(convert_size): s/int/clen_t/
	(convert_size2): s/int/clen_t/
	(showProgress): s/int/clen_t/
	(loadHTMLstream): s/int/clen_t/ linelen, trbyte
	(loadBuffer): ditto
	(getNextPage): s/int/clen_t/ linelen
	(save2tmp): s/int/clen_t/ linelen, trbye
	(_MoveFile): s/int/clen_t/ linelen, trbye
* fm.h (_Buffer): s/int/clen_t/ linelen, trbye
* ftp.c (size_int2str): s/long/clen_t/
	(ex_ftpdir_name_size_date): s/long/clen_t/
* indep.c (strtoclen): added
* indep.h (strtoclen): added
* proto.h (showProgress): s/int/clen_t/
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-08-20 17:49:38 +00:00
parent 2c36d5fe0d
commit d404404dda
9 changed files with 161 additions and 25 deletions

89
configure vendored
View File

@@ -1,5 +1,5 @@
#!/bin/sh
# $Id: configure,v 1.72 2002/07/18 06:07:25 ukai Exp $
# $Id: configure,v 1.73 2002/08/20 17:49:38 ukai Exp $
# Configuration.
#
@@ -1283,6 +1283,88 @@ fi
def_param use_help_cgi $have_perl
####### long long
cat > _zmachdep.c <<EOF
main()
{
int i = sizeof(unsigned long long);
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have long long"
def_have_long_long="typedef long long clen_t;"
cat > _zmachdep.c <<EOF
#include <stdlib.h>
main()
{
const char *s = "1";
long long ll = strtoll(s, NULL, 10);
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have strtoll()"
def_have_strtoll="#define HAVE_STRTOLL"
else
echo "You don't have strtoll()"
def_have_strtoll="#undef HAVE_STRTOLL"
fi
cat > _zmachdep.c <<EOF
#include <sys/types.h>
#include <stdlib.h>
#include <limits.h>
main()
{
const char *s = "1"
quad_t q = strtoq(s, NULL, 10);
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have strtoq()"
def_have_strtoq="#define HAVE_STRTOQ"
else
echo "You don't have strtoq()"
def_have_strtoq="#undef HAVE_STRTOQ"
fi
cat > _zmachdep.c <<EOF
#include <stdlib.h>
main()
{
const char *s = "1";
long long ll = atoll(s);
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have atoll()"
def_have_atoll="#define HAVE_ATOLL"
else
echo "You don't have atoll()"
def_have_atoll="#undef HAVE_ATOLL"
fi
cat > _zmachdep.c <<EOF
#include <stdlib.h>
main()
{
const char *s = "1";
long long ll = atoq(s);
}
EOF
if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1
then
echo "You have atoq()"
def_have_atoq="#define HAVE_ATOQ"
else
echo "You don't have atoq()"
def_have_atoq="#undef HAVE_ATOQ"
fi
else
echo "You don't have long long"
def_have_long_long="typedef long clen_t;"
fi
####### strcasecmp
cat > _zmachdep.c << EOF
#include <string.h>
@@ -2306,6 +2388,11 @@ $def_use_xface
$def_use_binstream
$def_term_if
$def_dir_if
$def_have_long_long
$def_have_strtoll
$def_have_strtoq
$def_have_atoll
$def_have_atoq
$def_have_strcasecmp
$def_have_strcasestr
$def_have_strchr