summaryrefslogtreecommitdiff
path: root/src/seq.c
AgeCommit message (Collapse)Author
2001-12-15Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf.
2000-12-02(valid_format): Move pre-increment to a separate statement to avoid a warning.Jim Meyering
2000-05-07Include "closeout.h".Jim Meyering
(main): Call atexit with close_stdout.
2000-05-05Include "closeout.h".Jim Meyering
(main): Call close_stdout.
2000-04-14Shorten `#ifdef HAVE_...' to `#if HAVE_...' andJim Meyering
remove unnecessary uses of `defined' (aesthetics).
2000-03-01(get_width_format): Fix portability problem with `-0' vs. `0'.Jim Meyering
2000-01-29Back out most of the 2000-01-21 and 01-22 changes.Jim Meyering
[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-22Topologically sort the functions and remove fwd declarations.Jim Meyering
2000-01-22(enum Format_type): Declare.Jim Meyering
(format_type): New global to take place of intconv. (DO_printf): New macro. (main): Use it.
2000-01-22Add support for octal and hexadecimal output.Jim Meyering
(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.
1999-04-26(main): Revert last change.Jim Meyering
Instead, loop on `optind < argc' to protect use of argv[optind].
1999-04-26revert last changeJim Meyering
1999-04-26(main): Handle the case in which seq is given no args.Jim Meyering
1999-04-19(main): Restore `+' in getopt_long string. Otherwise,Jim Meyering
commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
1999-03-31No longer include long-options.h.Jim Meyering
[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(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-06Include long-options.h.Jim Meyering
[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-02-16update copyright datesJim Meyering
1999-01-25(usage): Remove static attribute.Jim Meyering
1998-09-28(main): Decrement optind when we find an `option' thatJim Meyering
looks like -N. Reported by Clark Morgan.
1998-09-19update bug-reporting addressJim Meyering
1998-07-15(check_format): Add `5' to the list of digits.Jim Meyering
Reported by Donni Erpel.
1998-05-02(check_format): Use ISDIGIT, not isdigit.Jim Meyering
1997-12-21s/__P/PARAMS/Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-07-13indentJim Meyering
1997-03-19(check_format): Rename local, FORMAT_STRING, to avoid shadowing global.Jim Meyering
(print_numbers): Likewise.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-12-21(usage): Tweak --usage text.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-07-18Include <sys/types.h> before system.h.Jim Meyering
1996-05-20(usage): Make it a little clearer.Jim Meyering
1996-05-05Remove useless void casts of *printf return values.Jim Meyering
1996-04-22(usage): Use FIRST, LAST consistently in description.Jim Meyering
1996-04-21(usage): Improve help message. From Karl Berry.Jim Meyering
1996-04-08(print_numbers): Fix off-by-one error in backwards-counting loop.Jim Meyering
Reported by Karl Eichwalder.
1996-04-07.Jim Meyering
1996-04-07Fiddle with messages.Jim Meyering
1996-04-07(print_numbers): Give more precise diagnostic when incrementJim Meyering
is inconsistent with FROM and TO. (usage): Clean up help message.
1996-04-07(main): Rearrange loops to get it right.Jim Meyering
Reported by Karl Eichwalder <ke@ke.Central.DE>.
1996-03-24Update FSF's address.Jim Meyering
1996-03-24Include xstrtod.h.Jim Meyering
(scan_double_arg): Use xstrtod rather than strtod directly.
1996-03-24Make parameters const where appropriate.Jim Meyering
Rename global FROM to START. (print_numbers): Rewrite loops to avoid incrementing. Instead, use `x = first + i * increment' paradigm. Otherwise, with inexact increment, you could miss the last value.
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.