<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/numfmt.c, branch v8.26</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.26</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.26'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2016-11-26T02:54:32Z</updated>
<entry>
<title>numfmt: pacify Sun C 5.14</title>
<updated>2016-11-26T02:54:32Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2016-11-26T02:54:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e490178c39f707b0151d584c252286189f2ffcef'/>
<id>urn:sha1:e490178c39f707b0151d584c252286189f2ffcef</id>
<content type='text'>
* src/numfmt.c (main): Don't implicitly coerce pointer in bool
initializer.  Although it's portable C99 code, it's confusing.
</content>
</entry>
<entry>
<title>all: use die() rather than error(EXIT_FAILURE)</title>
<updated>2016-10-16T11:23:55Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-10-15T22:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=492dcb2eb191b844a2fd5e51db3eed85289bea1f'/>
<id>urn:sha1:492dcb2eb191b844a2fd5e51db3eed85289bea1f</id>
<content type='text'>
die() has the advantage of being apparent to the compiler
that it doesn't return, which will avoid warnings in some cases,
and possibly generate better code.
* cfg.mk (sc_die_EXIT_FAILURE): A new syntax check rule to
catch any new uses of error (CONSTANT, ...);
</content>
</entry>
<entry>
<title>numfmt: add the -z,--zero-terminated option</title>
<updated>2016-01-13T11:11:36Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2016-01-08T18:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=672663e1b0afd68a10d991527fd5021c40c99acc'/>
<id>urn:sha1:672663e1b0afd68a10d991527fd5021c40c99acc</id>
<content type='text'>
* doc/coreutils.texi (numfmt invocation): Reference the description.
* src/numfmt.c: Parameterize '\n' references.
* tests/misc/numfmt.pl: Add tests for character and field processing.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2016-01-01T14:10:41Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-01T14:10:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b16e999f553b682e74e0a56750f649da05130c4f'/>
<id>urn:sha1:b16e999f553b682e74e0a56750f649da05130c4f</id>
<content type='text'>
Run "make update-copyright" and then...

* gnulib: Update to latest with copyright year adjusted.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>sort,numfmt: with --debug, diagnose failure to set locale</title>
<updated>2015-09-22T01:30:30Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2015-09-22T01:07:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dee6b7601009688cfb931379b47a701f7dd771e3'/>
<id>urn:sha1:dee6b7601009688cfb931379b47a701f7dd771e3</id>
<content type='text'>
* src/sort.c (main): With --debug, warn upon setlocale() failure,
which can happen due to incorrectly specified environment variables,
or due to memory exhaustion (simulated with ulimit -v), etc.
* tests/misc/sort-debug-warn.sh: Add a test case.
See also http://savannah.gnu.org/bugs/11004
</content>
</entry>
<entry>
<title>numfmt: use new set-fields module to parse --field</title>
<updated>2015-09-12T02:27:32Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2015-07-18T03:58:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ba24c42e139095888dbf83255e6481fb4b1503a6'/>
<id>urn:sha1:ba24c42e139095888dbf83255e6481fb4b1503a6</id>
<content type='text'>
numfmt --field=LIST can accept the same options as cut.

* bootstrap.conf: remove xlist, linked-list
* src/local.mk: link numfmt with set-fields
* src/numfmt.c: use set-fields.c instead of custom field parsing code.
  (include_field): adapt to new code.
* tests/misc/numfmt.pl: add new tests, adapt current tests to new
  error message wording from set-fields.c
</content>
</entry>
<entry>
<title>numfmt: increase precision on 32 bit FreeBSD</title>
<updated>2015-07-01T11:29:59Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2015-06-30T23:10:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=81c7fc4081df7cb59b55c5fde486687afd0c87d7'/>
<id>urn:sha1:81c7fc4081df7cb59b55c5fde486687afd0c87d7</id>
<content type='text'>
* m4/jm-macros.m4 (HAVE_FPSETPREC): Define if needed.
* src/numfmt.c (main): Call fpsetprec() if needed.
Fixes large-15 and large-16 test failures on 32 bit FreeBSD.
</content>
</entry>
<entry>
<title>build: numfmt.c: avoid a shadowing warning</title>
<updated>2015-06-29T18:11:49Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2015-06-29T17:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=46416bb7c365e4faf44152dd66094c726dc714c8'/>
<id>urn:sha1:46416bb7c365e4faf44152dd66094c726dc714c8</id>
<content type='text'>
* src/numfmt.c (parse_field_arg): Rename parameter s/optarg/arg/,
to avoid shadowing getopt's global variable.
Otherwise, building on OS X, with --enable-gcc-warnings, I saw this:

  In file included from src/numfmt.c:19:0:
  src/numfmt.c: In function 'parse_field_arg':
  ./lib/config.h:3109:25: error: declaration of 'rpl_optarg' shadows\
    a global declaration [-Werror=shadow]
</content>
</entry>
<entry>
<title>numfmt: fix printf argument order</title>
<updated>2015-06-29T11:59:19Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2015-06-29T11:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=badecb3f6ce21e9ad12402d4dd96d9a532499710'/>
<id>urn:sha1:badecb3f6ce21e9ad12402d4dd96d9a532499710</id>
<content type='text'>
* src/numfmt.c (double_to_human): Fix the argument order
passed to snprintf, which happened to work on amd64 with
its separate va_arg storage area for floats¹,
but would fail tests for example on i686.

¹ https://blog.nelhage.com/2010/10/amd64-and-va_arg/
</content>
</entry>
<entry>
<title>numfmt: don't hardcode floating point limits</title>
<updated>2015-06-22T16:22:04Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2015-06-22T03:19:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4f824b3f3658a941187a32c6d52ee758e4db5896'/>
<id>urn:sha1:4f824b3f3658a941187a32c6d52ee758e4db5896</id>
<content type='text'>
* src/numfmt.c (MAX_UNSCALED_DIGITS): Set this to LDBL_DIG
rather than hardcoding at 18 for better portability.
* tests/misc/numfmt.pl: Restrict limit tests to supported platforms.
</content>
</entry>
</feed>
