Jim Meyering [Thu, 15 Jun 1995 03:43:52 +0000 (03:43 +0000)]
md5sum docs from Ulrich.
Jim Meyering [Thu, 15 Jun 1995 03:18:13 +0000 (03:18 +0000)]
(main): Rename `char binary' to type_flag to avoid confusion with `int binary'.
Jim Meyering [Thu, 15 Jun 1995 03:15:37 +0000 (03:15 +0000)]
Don't use #elif. Some old C compilers don't recognize it.
(hex_digits): New function.
(result): Give ctx parameter the `const' attribute.
(usage): Rewrite to make it clearer that there are three modes.
(main): Process all options before generating any output.
In particular, collect all --string options rather than operating
on them as they are encountered.
Allow --check=-. Before it tried to open the file named `-'.
Detect bogus input when --check'ing: non-hex, non-[tb] flag.
Map to lower case all hex digits read from check file.
Jim Meyering [Wed, 14 Jun 1995 03:44:16 +0000 (03:44 +0000)]
.
Jim Meyering [Wed, 14 Jun 1995 02:24:18 +0000 (02:24 +0000)]
.
Jim Meyering [Wed, 14 Jun 1995 02:23:48 +0000 (02:23 +0000)]
[NDEBUG]: Define it to disable assertions.
(is_char_class_member): Set a variable in each branch of switch stmt
and return that value after the switch (rather than returning directly
from every branch).
(unquote): More int->size_t changes.
(build_spec_list): More int->size_t changes.
Be very careful about comparison now that variables are unsigned:
Use i + 2 < len rather than i < len - 2. The latter failed for len < 2.
Jim Meyering [Tue, 13 Jun 1995 04:46:19 +0000 (04:46 +0000)]
.
Jim Meyering [Tue, 13 Jun 1995 04:46:12 +0000 (04:46 +0000)]
(xfclose): Don't try to flush stdin, only stdout.
Otherwise, at least Ultrix-4.3's fflush would return EOF.
Reported by Jim Blandy (jimb@cyclic.com).
Jim Meyering [Tue, 13 Jun 1995 04:33:45 +0000 (04:33 +0000)]
.
Jim Meyering [Tue, 13 Jun 1995 04:08:59 +0000 (04:08 +0000)]
[struct Spec_list] (indefinite_repeat_element): New member.
Use size_t rather than int or unsigned long where reasonable.
(get_spec_status): Make interface cleaner.
(get_s1_spec_status): New function.
(get_s2_spec_status): New function.
(validate): Use new functions.
Jim Meyering [Tue, 13 Jun 1995 04:02:22 +0000 (04:02 +0000)]
Indent some things.
(long_options): Add NULL entry. From Uli.
Touch up some comments.
(process_buffer): Bracket definition of OP with do...while(0) so stmts can be
semicolon terminated.
Jim Meyering [Mon, 12 Jun 1995 18:28:24 +0000 (18:28 +0000)]
(non_neg_strtol): Don't compare signed and unsigned.
Jim Meyering [Mon, 12 Jun 1995 14:42:41 +0000 (14:42 +0000)]
[!__GNUC__]: Define INLINE to /* empty */.
Jim Meyering [Mon, 12 Jun 1995 05:27:12 +0000 (05:27 +0000)]
.
Jim Meyering [Mon, 12 Jun 1995 05:25:04 +0000 (05:25 +0000)]
.
Jim Meyering [Mon, 12 Jun 1995 05:09:57 +0000 (05:09 +0000)]
Remove now-obsolete comment and leading space.
Jim Meyering [Mon, 12 Jun 1995 05:08:16 +0000 (05:08 +0000)]
Remove now-obsolete comment and leading space.
Jim Meyering [Sun, 11 Jun 1995 19:56:29 +0000 (19:56 +0000)]
.
Jim Meyering [Sun, 11 Jun 1995 19:54:49 +0000 (19:54 +0000)]
Use `invalid', not `illegal' in error message.
Jim Meyering [Sun, 11 Jun 1995 19:37:03 +0000 (19:37 +0000)]
Remove trailing white space.
Jim Meyering [Sun, 11 Jun 1995 06:16:17 +0000 (06:16 +0000)]
[SWAP]: Parenthesize uses of macro argument.
Don't use autoconf macros that require running test programs.
Jim Meyering [Sun, 11 Jun 1995 06:04:15 +0000 (06:04 +0000)]
From Ulrich Drepper.
Jim Meyering [Sun, 11 Jun 1995 05:40:05 +0000 (05:40 +0000)]
(look_up_char_class, append_char_class, append_equiv_class): Use const
attribute when appropriate.
Jim Meyering [Wed, 7 Jun 1995 18:10:17 +0000 (18:10 +0000)]
(Convert): Use 2037 as threshold, not 1999.
Otherwise years after 1999 are treated as invalid.
From Andreas Schwab.
Jim Meyering [Thu, 1 Jun 1995 14:12:51 +0000 (14:12 +0000)]
merge with 1.11.5
Jim Meyering [Mon, 29 May 1995 05:33:13 +0000 (05:33 +0000)]
merge with 1.11.4b
Jim Meyering [Sun, 28 May 1995 20:12:24 +0000 (20:12 +0000)]
(add_field_list): Compute max once for each call to add_field.
Jim Meyering [Sun, 28 May 1995 20:11:38 +0000 (20:11 +0000)]
.
Jim Meyering [Sun, 28 May 1995 19:51:25 +0000 (19:51 +0000)]
.
Jim Meyering [Sun, 28 May 1995 19:48:40 +0000 (19:48 +0000)]
.
Jim Meyering [Sun, 28 May 1995 19:46:04 +0000 (19:46 +0000)]
(main): Call make_blank after *all* argument processing.
Get rid of blank1, blank2. Just use uni_blank instead.
Jim Meyering [Sun, 28 May 1995 18:01:54 +0000 (18:01 +0000)]
Overhaul so -a1 and -a2 (as used in cnews) work.
Jim Meyering [Sun, 28 May 1995 17:58:16 +0000 (17:58 +0000)]
Add tests.
Jim Meyering [Sun, 28 May 1995 15:33:00 +0000 (15:33 +0000)]
Correct a test.
Jim Meyering [Sun, 28 May 1995 02:04:55 +0000 (02:04 +0000)]
(main): Remove dcl of and statements that set now-unused variable.
Jim Meyering [Sun, 28 May 1995 01:55:00 +0000 (01:55 +0000)]
merge with 1.11.4a
Jim Meyering [Sat, 27 May 1995 11:41:00 +0000 (11:41 +0000)]
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
Without this, SunOS doesn't get type for memchr.
Reported by Kaveh Ghazi.
Jim Meyering [Sat, 27 May 1995 11:39:15 +0000 (11:39 +0000)]
.
Jim Meyering [Fri, 26 May 1995 15:08:55 +0000 (15:08 +0000)]
Remove trailing white space.
Jim Meyering [Fri, 26 May 1995 14:15:37 +0000 (14:15 +0000)]
Remove trailing white space.
Jim Meyering [Thu, 25 May 1995 05:10:03 +0000 (05:10 +0000)]
.
Jim Meyering [Thu, 25 May 1995 05:09:50 +0000 (05:09 +0000)]
[struct control]: Change type of `repeat' member to unsigned
long to avoid conversion warning.
Jim Meyering [Thu, 25 May 1995 05:09:00 +0000 (05:09 +0000)]
(tail_lines): Change one more `long' to `off_t'.
Otherwise, tail didn't work on NetBSD. From by Arne H. Juul.
Jim Meyering [Thu, 25 May 1995 05:02:37 +0000 (05:02 +0000)]
merge with 1.11.3
Jim Meyering [Mon, 22 May 1995 04:43:42 +0000 (04:43 +0000)]
.
Jim Meyering [Mon, 22 May 1995 04:43:36 +0000 (04:43 +0000)]
(__strtol): Remove prototype altogether.
Move inclusion of xstrtol.h back so that it follows system headers.
Jim Meyering [Mon, 22 May 1995 04:32:53 +0000 (04:32 +0000)]
.
Jim Meyering [Mon, 22 May 1995 04:30:18 +0000 (04:30 +0000)]
(usage): Add one or two lines of descriptive text.
Jim Meyering [Sun, 21 May 1995 18:46:56 +0000 (18:46 +0000)]
.
Jim Meyering [Sun, 21 May 1995 18:46:33 +0000 (18:46 +0000)]
.
Jim Meyering [Sun, 21 May 1995 18:46:11 +0000 (18:46 +0000)]
.
Jim Meyering [Sun, 21 May 1995 12:32:03 +0000 (12:32 +0000)]
.
Jim Meyering [Sun, 21 May 1995 12:27:45 +0000 (12:27 +0000)]
(install-exec, install-exec): New targets. From Karl Berry.
(maintainer-clean): Renamed from realclean per GNU Standards.
Jim Meyering [Sun, 21 May 1995 12:23:15 +0000 (12:23 +0000)]
.
Jim Meyering [Sun, 21 May 1995 11:57:14 +0000 (11:57 +0000)]
merge with 1.11.2
Jim Meyering [Sun, 21 May 1995 11:44:22 +0000 (11:44 +0000)]
merge with 1.11.1b
Jim Meyering [Sat, 20 May 1995 13:28:24 +0000 (13:28 +0000)]
merge with 1.11.1a
Jim Meyering [Sat, 20 May 1995 12:36:49 +0000 (12:36 +0000)]
.
Jim Meyering [Sat, 20 May 1995 12:09:05 +0000 (12:09 +0000)]
.
Jim Meyering [Sat, 20 May 1995 12:08:35 +0000 (12:08 +0000)]
(look_up_char_class): Take a string length argument.
Use strncmp, not strcmp and verify that string lengths are the same.
(append_char_class): Update caller.
From Andreas Schwab.
Jim Meyering [Sat, 20 May 1995 11:52:36 +0000 (11:52 +0000)]
(next_file_name): Move dcls of file-scope variables into this function.
Don't rely on arithmetic being two's complement.
Jim Meyering [Sat, 20 May 1995 11:47:31 +0000 (11:47 +0000)]
[CLOSED, ENDLIST]: Don't cast constants to FILE pointers.
Instead, declare two FILE structs and use their addresses.
Jim Meyering [Sat, 20 May 1995 11:41:13 +0000 (11:41 +0000)]
(usage): Tweak wording.
Jim Meyering [Fri, 19 May 1995 16:49:33 +0000 (16:49 +0000)]
Remove backquote.
Jim Meyering [Fri, 19 May 1995 15:59:40 +0000 (15:59 +0000)]
(record_line_starts): Remove set-but-not-used, file-scope variable.
Jim Meyering [Fri, 19 May 1995 15:23:18 +0000 (15:23 +0000)]
No longer include safe-l?stat.h.
Jim Meyering [Thu, 18 May 1995 18:20:57 +0000 (18:20 +0000)]
Oops. Test $tr, not `tr' from PATH.
Jim Meyering [Thu, 18 May 1995 18:20:12 +0000 (18:20 +0000)]
Test [:lower:] to [:upper:] and vice versa.
Jim Meyering [Tue, 16 May 1995 17:19:46 +0000 (17:19 +0000)]
Save error output in t*.err.
Jim Meyering [Tue, 16 May 1995 17:19:32 +0000 (17:19 +0000)]
.
Jim Meyering [Tue, 16 May 1995 17:14:11 +0000 (17:14 +0000)]
Remove spurious space for missing arg2.
Jim Meyering [Tue, 16 May 1995 17:13:39 +0000 (17:13 +0000)]
Always print message at end, not just upon failure.
Jim Meyering [Mon, 15 May 1995 16:43:39 +0000 (16:43 +0000)]
.
Jim Meyering [Mon, 15 May 1995 06:00:33 +0000 (06:00 +0000)]
.
Jim Meyering [Mon, 15 May 1995 04:53:56 +0000 (04:53 +0000)]
(usage): Add one- and two-line descriptions to --help output.
From Karl.
Jim Meyering [Sat, 13 May 1995 18:35:36 +0000 (18:35 +0000)]
.
Jim Meyering [Sat, 13 May 1995 18:34:54 +0000 (18:34 +0000)]
(usage): Include one- or two-line synopsis in --help output.
From Karl Berry.
Jim Meyering [Sat, 13 May 1995 14:05:46 +0000 (14:05 +0000)]
.
Jim Meyering [Sat, 13 May 1995 13:55:56 +0000 (13:55 +0000)]
(maintainer-clean): Rename from realclean.
(.PHONY): New dependencies.
[.c.o]: Remove -I. since safe-l?stat.h is no longer used.
Jim Meyering [Sat, 13 May 1995 13:39:07 +0000 (13:39 +0000)]
.
Jim Meyering [Sat, 13 May 1995 13:30:10 +0000 (13:30 +0000)]
(make_path): Use stat, not SAFE_STAT.
Use strchr, not index. Adjust defines accordingly.
Jim Meyering [Sat, 13 May 1995 13:25:42 +0000 (13:25 +0000)]
(parse_user_spec): Use strchr, not index.
[!HAVE_STRING_H]: Define strchr in terms of index, not the other way around.
Jim Meyering [Sat, 13 May 1995 13:20:19 +0000 (13:20 +0000)]
(rmdir): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:19:07 +0000 (13:19 +0000)]
(rename): Use stat, not safe_stat.
(rename): Compare src and dest inode numbers rather than src
inode and dest *dev* when determining whether src and dest refer
to the same file. From marc@math.cornell.edu (Marc Parmet).
Jim Meyering [Sat, 13 May 1995 13:13:04 +0000 (13:13 +0000)]
(mkdir): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:10:38 +0000 (13:10 +0000)]
Undef __P before defining.
Guard definition with simpler `#if __STDC__'.
Jim Meyering [Sat, 13 May 1995 13:07:54 +0000 (13:07 +0000)]
(isdir): Usage stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:06:46 +0000 (13:06 +0000)]
(statfs): Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:05:35 +0000 (13:05 +0000)]
(eaccess_stat): Make statp and path arguments const.
(euidaccess): Make statp argument const. Use stat, not safe_stat.
Jim Meyering [Sat, 13 May 1995 13:02:08 +0000 (13:02 +0000)]
Remove unnecessary definitions for r?index.
Update definitions for ISDIGIT.
Jim Meyering [Sat, 13 May 1995 12:57:46 +0000 (12:57 +0000)]
Remove safe-l?stat.[ch]in and related rules.
Jim Meyering [Sat, 13 May 1995 12:55:49 +0000 (12:55 +0000)]
(argmatch): Include sys/types.h and declare length argument with type size_t.
Jim Meyering [Sat, 13 May 1995 12:52:57 +0000 (12:52 +0000)]
(basename): Make arg const.
Jim Meyering [Sat, 13 May 1995 12:48:33 +0000 (12:48 +0000)]
Use stat (lstat), not safe_stat (safe_lstat).
Jim Meyering [Sat, 13 May 1995 12:22:27 +0000 (12:22 +0000)]
maintainer-clean, PHONY, ...
Jim Meyering [Sat, 13 May 1995 02:31:46 +0000 (02:31 +0000)]
Use l?stat, not safe_l?stat.
Jim Meyering [Sat, 13 May 1995 02:26:18 +0000 (02:26 +0000)]
(usage): Remove duplicate descriptions of --help and --version.
From Karl Berry.
Jim Meyering [Sat, 13 May 1995 02:21:40 +0000 (02:21 +0000)]
(movefile): Remove a single trailing slash from destdir before concatenating
with `/' and filename for `ok to overwrite...' message.
Jim Meyering [Fri, 12 May 1995 02:11:06 +0000 (02:11 +0000)]
Test tr in $PATH, not ./tr.
Jim Meyering [Thu, 11 May 1995 14:06:53 +0000 (14:06 +0000)]
merge with 1.11.1