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
3677890d37
(usage): Mention that --format=FORMAT must be
...
a *floating-point* format, also in description of that option.
(usage): Also add the `=' signs here: --format=FORMAT,
--separator=STRING.
2002-03-17 19:21:16 +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
d661be38ed
(valid_format): Move pre-increment to a separate statement to avoid a warning.
2000-12-02 22:18:21 +00:00
Jim Meyering
c6b0fefde1
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:57:52 +00:00
Jim Meyering
f2fde491db
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:51:02 +00:00
Jim Meyering
2e469b088b
Shorten #ifdef HAVE_...' to #if HAVE_...' and
...
remove unnecessary uses of `defined' (aesthetics).
2000-04-14 12:41:05 +00:00
Jim Meyering
172290c201
(get_width_format): Fix portability problem with -0' vs. 0'.
2000-03-01 12:31:16 +00:00
Jim Meyering
e3fa0cb53b
Back out most of the 2000-01-21 and 01-22 changes.
...
[Instead, merely give examples showing how to accomplish the same
task with fewer limitations using existing tools. ]
Suggestion from Bruno Haible.
(valid_format): Rename from check_format.
2000-01-29 10:05:35 +00:00
Jim Meyering
c88a1e4466
Topologically sort the functions and remove fwd declarations.
2000-01-22 12:36:35 +00:00
Jim Meyering
4186d5762f
(enum Format_type): Declare.
...
(format_type): New global to take place of intconv.
(DO_printf): New macro.
(main): Use it.
2000-01-22 11:14:22 +00:00
Jim Meyering
e48c320244
Add support for octal and hexadecimal output.
...
(intconv): New variable.
(usage): Update.
(main): Call scan_arg instead of scan_double_arg. Call check_format
before scan_arg.
(scan_int_arg, scan_arg): New functions.
(check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
(print_numbers): If intconv is true, pass an int argument to printf.
2000-01-22 10:09:29 +00:00
Jim Meyering
3baa7fa854
(main): Revert last change.
...
Instead, loop on `optind < argc' to protect use of argv[optind].
1999-04-26 02:19:51 +00:00
Jim Meyering
0d13ededce
revert last change
1999-04-26 02:18:09 +00:00
Jim Meyering
bf73dd5297
(main): Handle the case in which seq is given no args.
1999-04-26 00:39:47 +00:00
Jim Meyering
c37f2f6355
(main): Restore `+' in getopt_long string. Otherwise,
...
commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
1999-04-19 14:05:34 +00:00
Jim Meyering
fdd07e3d2b
No longer include long-options.h.
...
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.
1999-03-31 05:52:46 +00:00
Jim Meyering
03c1b8518c
(PROGRAM_NAME, AUTHORS): Define and use.
1999-03-31 04:16:08 +00:00
Jim Meyering
5b2aa1846b
Include long-options.h.
...
[long_options]: Remove the "help" and "version" entries.
Remove declarations of show_help and show_version.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-06 15:28:54 +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
3e99e73234
(main): Decrement optind when we find an `option' that
...
looks like -N. Reported by Clark Morgan.
1998-09-28 03:35:51 +00:00
Jim Meyering
24a8bf2d3e
update bug-reporting address
1998-09-19 17:32:35 +00:00
Jim Meyering
8d4d2c4cf4
(check_format): Add `5' to the list of digits.
...
Reported by Donni Erpel.
1998-07-15 12:39:58 +00:00
Jim Meyering
45af919ce6
(check_format): Use ISDIGIT, not isdigit.
1998-05-02 15:36:43 +00:00
Jim Meyering
2e308957d4
s/__P/PARAMS/
1997-12-21 22:30:30 +00:00
Jim Meyering
5db3c9bdb4
update bug-reporting address
1997-10-07 23:51:39 +00:00
Jim Meyering
d461077920
indent
1997-07-13 03:08:45 +00:00
Jim Meyering
33da7dcdda
(check_format): Rename local, FORMAT_STRING, to avoid shadowing global.
...
(print_numbers): Likewise.
1997-03-19 02:12:36 +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
b8c82a8e39
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 03:05:36 +00:00
Jim Meyering
e13281014a
(usage): Tweak --usage text.
1996-12-21 03:59:26 +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
b734adb860
Include <sys/types.h> before system.h.
1996-07-18 04:14:51 +00:00
Jim Meyering
e3fa3463d6
(usage): Make it a little clearer.
1996-05-20 02:46:22 +00:00
Jim Meyering
d4e2205ea9
Remove useless void casts of *printf return values.
1996-05-05 02:04:04 +00:00
Jim Meyering
674180c97f
(usage): Use FIRST, LAST consistently in description.
1996-04-22 03:20:14 +00:00
Jim Meyering
dfbe6788b4
(usage): Improve help message. From Karl Berry.
1996-04-21 03:25:53 +00:00
Jim Meyering
39c92b4dc4
(print_numbers): Fix off-by-one error in backwards-counting loop.
...
Reported by Karl Eichwalder.
1996-04-08 04:37:45 +00:00
Jim Meyering
d9fe359377
.
1996-04-07 17:27:27 +00:00
Jim Meyering
c32c5775be
Fiddle with messages.
1996-04-07 17:27:11 +00:00
Jim Meyering
3220407d48
(print_numbers): Give more precise diagnostic when increment
...
is inconsistent with FROM and TO.
(usage): Clean up help message.
1996-04-07 17:10:21 +00:00
Jim Meyering
45c51b256a
(main): Rearrange loops to get it right.
...
Reported by Karl Eichwalder <ke@ke.Central.DE >.
1996-04-07 16:59:12 +00:00
Jim Meyering
318a497768
Update FSF's address.
1996-03-24 18:33:12 +00:00
Jim Meyering
f9714aa24d
Include xstrtod.h.
...
(scan_double_arg): Use xstrtod rather than strtod directly.
1996-03-24 18:16:10 +00:00