diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-08-20 17:49:38 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-08-20 17:49:38 +0000 |
commit | d404404dda40eab419b37f8136920e8edf38d401 (patch) | |
tree | ce4ccf54721997c7f4385cdc0daeb5f323873e53 /indep.c | |
parent | Debian Bug#154766: w3m-img: support DirectColor framebuffer visuals? (diff) | |
download | w3m-d404404dda40eab419b37f8136920e8edf38d401.tar.gz w3m-d404404dda40eab419b37f8136920e8edf38d401.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | indep.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.22 2002/06/07 15:46:44 ukai Exp $ */ +/* $Id: indep.c,v 1.23 2002/08/20 17:49:39 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -11,6 +11,22 @@ #include "myctype.h" #include "entity.h" +clen_t +strtoclen(const char *s) +{ +#ifdef HAVE_STRTOLL + return strtoll(s, NULL, 10); +#elif HAVE_STRTOQ + return strtoq(s, NULL, 10); +#elif HAVE_ATOLL + return atoll(s); +#elif HAVE_ATOQ + return atoq(s); +#else + return atoi(s); +#endif +} + #ifndef HAVE_BCOPY void bcopy(const void *src, void *dest, int len) |