Re: Large file support (was Re: Back after a while)

2005-02-20 Thread Hrvoje Niksic
Dave Yeo [EMAIL PROTECTED] writes: ps anyone getting a bunch of what look like viruses on the wget-patches list? I just noticed them on gmane. I've now asked the SunSITE.dk staff to deploy the kind of virus/spam protection currently used by this list (confirmation required for non-subscribers

Large file support (was: Back after a while)

2005-02-18 Thread Hrvoje Niksic
Leonid [EMAIL PROTECTED] writes: Steven and Hrvoje, wget-1.9.1 has a function number_to_string which is in fact a home-made equivalent to printf () %ld. Yes, but that function is merely an optimization used to avoid frequent calls to sprintf(buf, %ld, num). Wget does in fact in many places

Large file support (was: Back after a while)

2005-02-18 Thread Leonid
Hrvoje, Is your LFS patch available on the web? I was unsubscribed from wget-patches due to bounces from my address and there is no web archive (that I know of) of that list. Yes. It is in http://software.lpetrov.net/wget-LFS/ Another bonus of using routines number_to_string and

Large file support (was: Back after a while)

2005-02-18 Thread Steven M. Schweda
It's not my program (obviously), but: 1. I'd say that code like if ( sizeof(number) == 8 ) should have been a compile-time #ifdef rather than a run-time decision. 2. Multiple functions like print_number_as_string() and print_second_number_as_string() (and so on?) look like a real pain

Re: Back after a while

2005-02-16 Thread Steven M. Schweda
From: Hrvoje Niksic [EMAIL PROTECTED] The other function arguments control various formatting options. (Where can't GCC printf() using %ll?) For the record, GCC doesn't printf() anything, printf is defined in the standard library. If the operating system's printf() doesn't support %ll,

Re: Back after a while

2005-02-16 Thread Hrvoje Niksic
[EMAIL PROTECTED] (Steven M. Schweda) writes: The other function arguments control various formatting options. (Where can't GCC printf() using %ll?) For the record, GCC doesn't printf() anything, printf is defined in the standard library. If the operating system's printf() doesn't

Re: Back after a while

2005-02-16 Thread Steven M. Schweda
From: Hrvoje Niksic [EMAIL PROTECTED] but perhaps a better question would have been, 'Where can't a GCC user do a printf() using %ll?'. On any system that predates `long long'. For example, SunOS 4.1.x, Ultrix, etc. I thought we were discussing changes for large-file support.

Large file support (was Re: Back after a while)

2005-02-16 Thread Dave Yeo
On Wed, 16 Feb 2005 00:52:56 -0600 (CST), Steven M. Schweda wrote: I don't claim that it's a perfect scheme, but it would probably pay to look at the beta code for Zip 3.0 and/or UnZip 6.0 to see how these things are done in a _very_ portable program. (Before doing something even more lame.)

Re: Back after a while

2005-02-16 Thread Hrvoje Niksic
[EMAIL PROTECTED] (Steven M. Schweda) writes: From: Hrvoje Niksic [EMAIL PROTECTED] but perhaps a better question would have been, 'Where can't a GCC user do a printf() using %ll?'. On any system that predates `long long'. For example, SunOS 4.1.x, Ultrix, etc. I thought we were

Re: Large file support (was Re: Back after a while)

2005-02-16 Thread Steven M. Schweda
Is the source for Zip 3.0/UnZip 6.0 publicaly available? I believe that some relatively recent beta code (Zip 3.0d, UnZip 6.0b) is available under: ftp://ftp.info-zip.org/pub/infozip/OLD/beta/ and probably various mirrors around the world. You might wish to start at

Re: Back after a while

2005-02-16 Thread Leonid
Steven and Hrvoje, wget-1.9.1 has a function number_to_string which is in fact a home-made equivalent to printf () %ld. In the LFS patch which I submitted I made a sister-routine number_to_string_64 which is equivalent to printf() %llu. Thus, wget does not rely on %ll or %llu. Leonid 16-FEB-2005

Re: Back after a while

2005-02-15 Thread Gisle Vanem
Hrvoje Niksic wrote: For the last several months I've been completely absent from Wget development, and from the net in general. Here is why, and the story is not for the faint of heart. Glad you're back and hope your health is getting better. The TODO list has grown a bit while you've been

Back after a while

2005-02-14 Thread Hrvoje Niksic
For the last several months I've been completely absent from Wget development, and from the net in general. Here is why, and the story is not for the faint of heart. Near the end of July I took a two-week vacation. On August 2nd I found it took an effort to stand up from a sitting position.