Commit Graph

56 Commits

Author SHA1 Message Date
Jim Meyering c6bd79ad34 Include "closeout.h".
(main): Call atexit with close_stdout.
2000-05-07 14:55:15 +00:00
Jim Meyering 75789c4643 (main): Call exit explicitly to avoid warning from gcc.
Include "xstrtol.h".
(isinteger): Remove function and prototype.
(main): Use xstrtol in place of atoi.  Remove associated FIXME comments.
1999-08-29 21:09:34 +00:00
Jim Meyering 678cbc835e (isinteger): Move definition to precede use. Remove prototype. 1999-08-29 20:49:07 +00:00
Jim Meyering de8d09d22d (main): Call exit explicitly to avoid warning from gcc. 1999-08-29 20:47:17 +00:00
Jim Meyering 12bf2f8f8b [NDEBUG]: Remove definition. 1999-04-25 19:18:20 +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 7082d762aa (usage): Remove static attribute.
Move function be the first in the file.
1999-01-25 14:28:31 +00:00
Jim Meyering 24a8bf2d3e update bug-reporting address 1998-09-19 17:32:35 +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 9080de09fc indent cpp-directives 1997-05-01 20:51:16 +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 e4c57a939b (main): Work around failures induced by new version of
getopt.c by not modifying optind before the first getopt_long call
in main.  With suggestions from Ulrich Drepper.
1997-01-08 04:47:56 +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 7532e57941 (main): Allow `+' in options like -+8 and -+13. 1996-08-04 14:15:25 +00:00
Jim Meyering 5b8cad3534 (main): Set minus_flag to zero in two places.
Otherwise, `nice --1 -3' would mistakenly do the equivalent of `nice --3'.
Thanks to Eric Backus <ericb@lsid.hp.com> for the test cases.
1996-08-03 04:23:43 +00:00
Jim Meyering e6eece1575 update Copyright years for 1996 1996-04-24 04:45:54 +00:00
Jim Meyering 78732c5421 Remove diagnostic. 1996-04-05 16:04:15 +00:00
Jim Meyering 0e199278c1 (main): Use `if' stmt, not while loop, around getopt invocation.
Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
follows a long option) gets an error.
1996-04-05 13:32:39 +00:00
Jim Meyering 9d22ab92f9 Patch from Frank Korz. 1996-04-05 13:14:59 +00:00
Jim Meyering 318a497768 Update FSF's address. 1996-03-24 18:33:12 +00:00
Jim Meyering 1954f681c6 (main): Declare to be of type int, not void. 1996-03-21 22:47:02 +00:00
Jim Meyering 3ee97d4d5b Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:14:26 +00:00
Jim Meyering 6fc4ae7a28 (main): Initialize for internationalized message support:
call setlocale, bindtextdomain, and textdomain.
1996-03-12 23:49:29 +00:00
Jim Meyering 53398947a1 Protoize and __P-protect forward dcls. 1996-01-06 11:44:05 +00:00
Jim Meyering f0556f3517 Annotate localizable strings with _(...). From Franc,ois. 1995-08-08 04:37:34 +00:00
Jim Meyering 635b1b5b6e (usage): Add one- and two-line descriptions to --help output.
From Karl.
1995-05-15 04:53:56 +00:00
Jim Meyering 0d6850348c add 1995 to Copyright dates 1995-03-09 22:33:05 +00:00
Jim Meyering a9f1783e20 * src/*.c: Include "error.h" instead of simply declaring
`void error ();'.
1994-12-20 05:26:44 +00:00
Jim Meyering ec90359f34 . 1994-10-01 02:52:05 +00:00
Jim Meyering 0a0800fe25 merge with 1.10n2 1994-09-27 22:02:00 +00:00
Jim Meyering 552cc77dcf . 1994-09-26 23:58:40 +00:00
Jim Meyering fd16a39c69 (main): Revamp option processing to detect options like `--7' manually
and pass the rest off to getopt_long.
(isinteger): Use ISDIGIT.
1994-09-24 15:20:21 +00:00
Jim Meyering 43545372ed Enumerate (Yuck!) the --1 .. --20 long options 1994-09-24 12:50:59 +00:00
Jim Meyering 00aa944946 (main): Make sure s is not NULL before dereferencing it. 1994-09-24 00:41:27 +00:00
Jim Meyering 3a3b00cc54 . 1994-06-20 13:24:14 +00:00
Jim Meyering 2bdde50d3f . 1994-06-19 04:27:52 +00:00
Jim Meyering e628e7bb9e . 1994-04-20 00:23:45 +00:00
Jim Meyering 75a474834b . 1994-02-01 14:11:50 +00:00
Jim Meyering 80d70870f5 * (main): If an adjustment is specified, but no command is
given, give a diagnostic in addition to the usage message.
(isinteger): Accept a leading `+'.
1993-11-27 21:59:45 +00:00
Jim Meyering d7c526e66d merge with 1.8.1i 1993-10-26 00:11:14 +00:00
Jim Meyering cfe240bbd8 merge with 1.8.1h 1993-10-24 21:30:08 +00:00
Jim Meyering fa7a1e19e2 merge with 1.8.1g 1993-10-17 03:57:04 +00:00
Jim Meyering 44c053f008 merge with 1.8.1d 1993-10-12 14:49:11 +00:00