Jim Meyering
bd2147af16
Remove `register' keyword.
2005-03-06 16:25:26 +00:00
Paul Eggert
f84a6e71fe
(factor): Don't list 1 as a factor of 1.
...
Problem reported by Thomas Folz-Donahue.
2004-12-07 21:11:59 +00:00
Paul Eggert
d1bc398fa0
(main): Use getopt_long rather than getopt.
2004-11-17 00:56:25 +00:00
Paul Eggert
4fa016cbc9
Include <getopt.h>.
...
(main): Reject unknown options.
2004-09-21 22:01:50 +00:00
Paul Eggert
c8f4d13551
(wheel_tab): Use unsigned char instead of unsigned
...
int, since it suffices.
(factor, print_factors): Use size_t for sizes.
(print_factors, do_stdin, main): Use bool for booleans.
2004-08-03 06:15:49 +00:00
Jim Meyering
8def27a37e
(do_stdin): Reflect changes in use of readtoken.
2004-03-21 18:45:37 +00:00
Jim Meyering
a86c7314d8
(usage): Use EXIT_SUCCESS, not 0, for clarity.
...
(main): Do not report a usage error simply
because stdin has bad numbers.
2004-01-21 23:06:51 +00:00
Jim Meyering
df81ab2911
Cast NULL to `(char *)' in call to variadic function,
...
parse_long_options, so that it works even on systems for which
sizeof char* != sizeof int.
2003-11-05 03:53:19 +00:00
Jim Meyering
cf4fdf373f
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
...
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.
* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-10-18 10:05:47 +00:00
Jim Meyering
bafd927f03
(WRITTEN_BY): Rename from AUTHORS.
...
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
2003-09-18 22:19:03 +00:00
Jim Meyering
c6ec144494
revert previous change
2003-09-18 19:39:12 +00:00
Jim Meyering
3280bf4b55
Update AUTHORS definition to be a comma-separated list of strings and/or update
...
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-18 18:22:23 +00:00
Jim Meyering
b97f8bb5ce
(print_factors): Give a separate diagnostic
...
for numbers that are too large, but otherwise valid.
2003-09-14 17:25:16 +00:00
Jim Meyering
4f4e9aa8e1
Don't include headers already included by system.h:
...
Don't include closeout.h.
2003-07-23 07:29:54 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
3f2cc46da4
(print_factors):
...
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:17:28 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering
2ee11887cd
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:09:10 +00:00
Jim Meyering
2fae9e5d26
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.
2001-12-15 20:46:30 +00:00
Jim Meyering
9e1b4e382a
(usage): Indent --help and --version strings to start in the 7th column.
2001-11-25 14:46:05 +00:00
Jim Meyering
d2e9866f3c
Include wheel-size.h.
...
(WHEEL_START): Adjust definition.
(wheel_tab[]): Remove body of definition.
Include generated file, wheel.h, instead.
2001-04-24 07:16:28 +00:00
Jim Meyering
e7b9e3e7c1
(usage): Tweak --help output: it prints the _prime_
...
factors, not just any factors.
2001-02-04 16:28:41 +00:00
Jim Meyering
52377e246d
Improve the performance of `factor' (more than 2x speed-up for large N).
...
(wheel_tab): New global table.
(WHEEL_START, WHEEL_END): Define.
(factor): Remove the loop that special-cased `2'.
Instead of incrementing by `2', use the offsets from the wheel table.
From Michael Steffens.
2001-02-03 13:37:37 +00:00
Jim Meyering
6d16d92a02
update copyright date
2000-07-09 07:11:28 +00:00
Jim Meyering
21f7f8fb60
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:52:54 +00:00
Jim Meyering
80b5341cb8
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:52:22 +00:00
Jim Meyering
99571c629e
(main): Manually handle `--', since we no longer call getopt.
1999-05-03 02:42:49 +00:00
Jim Meyering
e8b570e45a
update comment
1999-04-21 03:19:26 +00:00
Jim Meyering
cf6eaeb03b
<xstrtol.h>: Include this, not xstrtoul.h.
...
<human.h>: Include.
Use uintmax_t in place of unsigned long.
Use human_readable to convert to strings for printing.
1999-04-21 03:18:23 +00:00
Jim Meyering
39090114f0
(PROGRAM_NAME, AUTHORS): Define and use.
1999-03-31 04:11:35 +00:00
Jim Meyering
ff743d5451
(main): Include author name argument in call to parse_long_options.
1999-03-04 14:02:14 +00:00
Jim Meyering
df7b9c808b
update copyright dates
1999-02-16 04:17:15 +00:00
Jim Meyering
276d118b10
(usage): Remove static attribute.
1999-01-25 14:33:38 +00:00
Jim Meyering
3f9e8072e8
factor.c
1998-09-26 19:12:16 +00:00
Jim Meyering
24a8bf2d3e
update bug-reporting address
1998-09-19 17:32:35 +00:00
Jim Meyering
f3c14cb59f
revert back to using lower case _unlocked wrapper names
1998-06-29 16:24:01 +00:00
Jim Meyering
c5eb9edf26
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:13:21 +00:00
Jim Meyering
6123a88852
Don't include limits.h.
...
(UINT_MAX): Don't define.
(INT_MAX): Don't define.
These are all done in system.h now.
1997-12-21 22:20:01 +00:00
Jim Meyering
5db3c9bdb4
update bug-reporting address
1997-10-07 23:51:39 +00:00
Jim Meyering
9080de09fc
indent cpp-directives
1997-05-01 20:51:16 +00:00
Jim Meyering
2e31651a02
(factor): Rewrite inner loop to be more efficient.
...
Patch from Torbjorn Granlund.
1997-02-20 05:11:12 +00:00
Jim Meyering
7eb03c4372
update copyrights for 1997
1997-02-09 04:54:16 +00:00
Jim Meyering
899a90bfd9
bracket bug address with <> and append a period
1997-02-01 04:23:31 +00:00
Jim Meyering
a95088a5ea
(print_factors): Reflect changes to xstrtoul interface.
1997-01-26 04:52:32 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
f04044ed86
(main): update --version output to conform to coding standard
1996-10-05 16:37:57 +00:00
Jim Meyering
e9d17da073
(usage): Tell where to report bugs.
1996-09-02 15:52:45 +00:00
Jim Meyering
b76ab178d1
(usage): Improve help message. From Karl Berry.
1996-04-21 03:26:46 +00:00
Jim Meyering
7e76b8b7da
(usage): Give minimal description of the program.
...
(print_factors): Give a better diagnostic.
(main): Suggest --help upon failure.
Reported by Karl Eichwalder <ke@ke.Central.DE >.
1996-04-07 17:46:03 +00:00