factor: remove --bignum and --no-bignum options
commitfec0e89c20db8772854335382aceb260cb7abef2
authorPaul Eggert <eggert@CS.UCLA.EDU>
Fri, 24 Oct 2008 20:43:40 +0000 (24 22:43 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 25 Oct 2008 19:05:41 +0000 (25 21:05 +0200)
tree943f5fe36b7d34aca38a1f652d01c4d4a1aaeaa6
parent407e8f0fdd74b04a266dafa01ca896779f7706a1
factor: remove --bignum and --no-bignum options

Here's a patch to remove the --bignum and --no-bignum options from
'factor'.  The case for removing --bignum isn't as strong as that for
'expr', but still, it seems to me that these options are not needed and
complicate the documentation unnecessarily.

* doc/coreutils.texi (factor invocation): Remove --bignum, --no-bignum.
* src/factor.c (algorithm, ALGORITHM_CHOICE, USE_BIGNUM, NO_USE_BIGNUM):
Remove; all uses removed.
(extract_factors_multi): Remove, replacing with....
(print_factors_multi): New function, with signature similar to that
of new signature of print_factors_single.
(print_factors_single): Migrate checking code to caller.
(print_factors): Use GMP if it's available; don't bother asking user.
Improve accuracy of check for "large" numbers.
(long_options, main): Remove support for --bignum.
doc/coreutils.texi
src/factor.c