mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Doc fix.
This commit is contained in:
parent
b110199bce
commit
254ed12b8f
15
src/utils.c
15
src/utils.c
@ -1210,11 +1210,10 @@ free_keys_and_values (struct hash_table *ht)
|
|||||||
{
|
{
|
||||||
hash_table_map (ht, free_keys_and_values_mapper, NULL);
|
hash_table_map (ht, free_keys_and_values_mapper, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Get grouping data, the separator and grouping info, by calling
|
/* Get digit grouping data for thousand separors by calling
|
||||||
localeconv(). The information is cached after the first call to
|
localeconv(). The data includes separator string and grouping info
|
||||||
the function.
|
and is cached after the first call to the function.
|
||||||
|
|
||||||
In locales that don't set a thousand separator (such as the "C"
|
In locales that don't set a thousand separator (such as the "C"
|
||||||
locale), this forces it to be ",". We are now only showing
|
locale), this forces it to be ",". We are now only showing
|
||||||
@ -1258,8 +1257,8 @@ get_grouping_data (const char **sep, const char **grouping)
|
|||||||
|
|
||||||
Unfortunately, we cannot use %'d (in fact it would be %'j) to get
|
Unfortunately, we cannot use %'d (in fact it would be %'j) to get
|
||||||
the separators because it's too non-portable, and it's hard to test
|
the separators because it's too non-portable, and it's hard to test
|
||||||
for this feature at configure time. Besides, it wouldn't work in
|
for this feature at configure time. Besides, it wouldn't display
|
||||||
the "C" locale, which many Unix users still work in. */
|
separators in the "C" locale, still used by many Unix users. */
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
with_thousand_seps (wgint n)
|
with_thousand_seps (wgint n)
|
||||||
@ -1283,8 +1282,8 @@ with_thousand_seps (wgint n)
|
|||||||
atgroup = grouping;
|
atgroup = grouping;
|
||||||
groupsize = *atgroup++;
|
groupsize = *atgroup++;
|
||||||
|
|
||||||
/* This will overflow on WGINT_MIN, but we're not using this to
|
/* This would overflow on WGINT_MIN, but printing negative numbers
|
||||||
print negative numbers anyway. */
|
is not an important goal of this fuinction. */
|
||||||
if (negative)
|
if (negative)
|
||||||
n = -n;
|
n = -n;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user