Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-10-04 | factor: merge with preexisting factor; integrate tests; avoid warnings | Jim Meyering | |
* src/factor.c: Renamed from factor-ng.c, with the following changes: Adjust copyright header to be consistent with others. Use xmalloc and xrealloc, to avoid segv upon OOM. Switch back to using readtokens to handle input. Diagnose invalid inputs. s/fprintf+exit/error/ (print_factors): Add comments. (strto2uintmax): Return strtol_error, not int. (read_item): Remove, no longer used. (main): Use atexit(close_stdout) so that we don't ignore failed write. * cfg.mk: Exempt src/longlong.h from several tests. Exempt run.sh from the test-list-consistency test. Exempt make-prime-list.c from numerous tests, since we won't be making it conform: it must not link with libcoreutils.a. Exempt factor-ng.c from the no-upper-case error message test. * AUTHORS (factor): Add Torbjörn and Niels. * tests/local.mk (factor_tests): Encode the 37 tests. ($(factor_tests)): Rule to generate a test script for each test. * tests/factor/run.sh: New script, marked as very expensive. * .gitignore: Ignore new generated files. * src/local.mk (src/primes.h): New rule. (noinst_PROGRAMS): Add make-prime-list. (noinst_HEADERS): Add longlong.h. Remove all wheel-related rules and files. * src/wheel-gen.pl: Remove file. maint: mark set-but-not-used variables with ATTRIBUTE_UNUSED * src/factor-ng.c (redcify, prime_p, isqrt2): Mark them, so we don't have to disable -Wunused-but-set-variable. maint: use __builtin_expect only if __GNUC__ * src/factor-ng.c (LIKELY, UNLIKELY) [__GNUC__]: Add #ifdef guard. build: avoid warning about unused macro * src/factor-ng.c (__GMP_DECLSPEC): Don't define here * src/longlong.h (__GMP_DECLSPEC): Define if not already defined. | |||
2012-01-27 | maint: use single copyright year range | Jim Meyering | |
Run "make update-copyright". | |||
2012-01-01 | maint: update all copyright year number ranges | Jim Meyering | |
Run "make update-copyright". | |||
2011-01-01 | maint: update all copyright year number ranges | Jim Meyering | |
Run "make update-copyright". | |||
2010-01-01 | maint: update all FSF copyright year lists to include 2010 | Jim Meyering | |
Use this command: git ls-files | grep -v COPYING \ | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \ build-aux/update-copyright | |||
2009-08-25 | global: convert indentation-TABs to spaces | Jim Meyering | |
Transformed via this shell code: t=$'\t' git ls-files \ | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \ | grep -vE 'tests/pr/|help2man' \ | xargs grep -lE "^ *$t" \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' | |||
2009-06-23 | maint: update all Copyright year lists to include 2009 | Jim Meyering | |
2007-07-23 | Update all copyright notices to use the newer form. | Jim Meyering | |
2007-07-10 | Change "version 2" to "version 3" in all copyright notices. | Jim Meyering | |
2006-08-17 | Add/fix copyright notices and adjust to latest GNU FDL. | Paul Eggert | |
2005-03-27 | Use the same global destructor as dcgen. | Jim Meyering | |
2001-02-06 | require 1 argument | Jim Meyering | |
2001-02-06 | better comment | Jim Meyering | |
2001-02-06 | emit a comment, print numbers one per line | Jim Meyering | |
2001-02-06 | remove parens | Jim Meyering | |
2001-02-06 | move decl of q into loop | Jim Meyering | |
2001-02-06 | remove n0 | Jim Meyering | |
2001-02-04 | remove --help --version, etc | Jim Meyering | |
2001-02-04 | (is_prime): Remove function. | Jim Meyering | |
2001-02-04 | *** empty log message *** | Jim Meyering | |
2001-02-04 | *** empty log message *** | Jim Meyering | |
2001-02-04 | *** empty log message *** | Jim Meyering | |