From d404404dda40eab419b37f8136920e8edf38d401 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 20 Aug 2002 17:49:38 +0000 Subject: Debian Bug#157098: wrong file presentation on large files from "Eduard Bloch" * 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 --- configure | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 52ce6de..dd57bba 100755 --- a/configure +++ b/configure @@ -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 < /dev/null 2>&1 +then + echo "You have long long" + def_have_long_long="typedef long long clen_t;" + cat > _zmachdep.c < +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 < +#include +#include +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 < +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 < +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 @@ -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 -- cgit v1.2.3