X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2FChangeLog;h=21a91547b370ab0897dcf9cc15727be5dd90b3ae;hp=eaa9ec4991df22b90aaf84f4c4c8c75d44b17ef2;hb=711bf72609e5d49ff7f5366a4664377cd3208d70;hpb=a6f72ca66b1ca3c83fb7336c5895af9ae0a3c202 diff --git a/src/ChangeLog b/src/ChangeLog index eaa9ec49..21a91547 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,29 @@ +2003-10-11 Hrvoje Niksic + + * utils.c (large_int_to_string): Use snprintf() to print the + number. This will work even on systems where libc doesn't + understand %lld, but the compiler does, because it will use our + snprintf replacement. + + * init.c (parse_bytes_helper): New function. + (cmd_bytes): Use it to parse bytes, but cast the result to long. + (cmd_bytes_large): Ditto, but store the result to LARGE_INT. Used + for --quota so that --quota=10G works even on machines without + long long. + + * options.h (struct options): Declare quota as LARGE_INT. + + * retr.c (downloaded_exceeds_quota): Removed. + (downloaded_increase): Ditto. + (total_downloaded_bytes): New variable, replaces opt.downloaded, + which was the wrong place for it anyway. Updated callers of + downloaded_exceeds_quota and downloaded_increase to check this + variable directly. + + * sysdep.h: Get rid of VERY_LONG_TYPE. Use LARGE_INT for the same + purpose, defined as `long', `long long' or `double', depending on + size of long and whether long long is available. + 2003-10-11 Hrvoje Niksic * sysdep.h: Also check size of short for int32_t.