Jim Meyering
9387b92371
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.
1995-06-15 03:15:37 +00:00
Jim Meyering
a04bfe9cbf
.
1995-06-14 03:44:16 +00:00
Jim Meyering
f7c77084b4
.
1995-06-14 02:24:18 +00:00
Jim Meyering
60437a80ca
[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.
1995-06-14 02:23:48 +00:00
Jim Meyering
891c9b5cc7
.
1995-06-13 04:46:19 +00:00
Jim Meyering
1aa5954b42
(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 ).
1995-06-13 04:46:12 +00:00
Jim Meyering
46a1fec4a5
.
1995-06-13 04:33:45 +00:00
Jim Meyering
ca73f85acf
[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.
1995-06-13 04:08:59 +00:00
Jim Meyering
da78e2df64
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.
1995-06-13 04:02:22 +00:00
Jim Meyering
bcee3d43ca
(non_neg_strtol): Don't compare signed and unsigned.
1995-06-12 18:28:24 +00:00
Jim Meyering
afe762e4e6
[!__GNUC__]: Define INLINE to /* empty */.
1995-06-12 14:42:41 +00:00
Jim Meyering
5b45da2a71
.
1995-06-12 05:27:12 +00:00
Jim Meyering
bb789f462c
.
1995-06-12 05:25:04 +00:00
Jim Meyering
a14d08e891
Remove now-obsolete comment and leading space.
1995-06-12 05:09:57 +00:00
Jim Meyering
81ca3a8b6c
Remove now-obsolete comment and leading space.
1995-06-12 05:08:16 +00:00
Jim Meyering
fd9df74e75
.
1995-06-11 19:56:29 +00:00
Jim Meyering
c502988b26
Use invalid', not illegal' in error message.
1995-06-11 19:54:49 +00:00
Jim Meyering
1d1094a69e
Remove trailing white space.
1995-06-11 19:37:03 +00:00
Jim Meyering
8ddb66cff4
[SWAP]: Parenthesize uses of macro argument.
...
Don't use autoconf macros that require running test programs.
1995-06-11 06:16:17 +00:00
Jim Meyering
3763a4f24e
From Ulrich Drepper.
1995-06-11 06:04:15 +00:00
Jim Meyering
c3754d6f21
(look_up_char_class, append_char_class, append_equiv_class): Use const
...
attribute when appropriate.
1995-06-11 05:40:05 +00:00
Jim Meyering
a2e52e58b1
(Convert): Use 2037 as threshold, not 1999.
...
Otherwise years after 1999 are treated as invalid.
From Andreas Schwab.
1995-06-07 18:10:17 +00:00
Jim Meyering
85bf8c2e1c
merge with 1.11.5
1995-06-01 14:12:51 +00:00
Jim Meyering
f97e625d3d
merge with 1.11.4b
1995-05-29 05:33:13 +00:00
Jim Meyering
9584732376
(add_field_list): Compute max once for each call to add_field.
1995-05-28 20:12:24 +00:00
Jim Meyering
0a73924f60
.
1995-05-28 20:11:38 +00:00
Jim Meyering
d1a5552fbe
.
1995-05-28 19:51:25 +00:00
Jim Meyering
e1c9600ae7
.
1995-05-28 19:48:40 +00:00
Jim Meyering
88daaaf385
(main): Call make_blank after *all* argument processing.
...
Get rid of blank1, blank2. Just use uni_blank instead.
1995-05-28 19:46:04 +00:00
Jim Meyering
5c08b11b30
Overhaul so -a1 and -a2 (as used in cnews) work.
1995-05-28 18:01:54 +00:00
Jim Meyering
22e09d7c8e
Add tests.
1995-05-28 17:58:16 +00:00
Jim Meyering
0dfe7fe96e
Correct a test.
1995-05-28 15:33:00 +00:00
Jim Meyering
4657b1e9ec
(main): Remove dcl of and statements that set now-unused variable.
1995-05-28 02:04:55 +00:00
Jim Meyering
4fb3e0f061
merge with 1.11.4a
1995-05-28 01:55:00 +00:00
Jim Meyering
a528bd5d9f
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
...
Without this, SunOS doesn't get type for memchr.
Reported by Kaveh Ghazi.
1995-05-27 11:41:00 +00:00
Jim Meyering
4662661e71
.
1995-05-27 11:39:15 +00:00
Jim Meyering
4d00132265
Remove trailing white space.
1995-05-26 15:08:55 +00:00
Jim Meyering
0be7c19204
Remove trailing white space.
1995-05-26 14:15:37 +00:00
Jim Meyering
ae3864618a
.
1995-05-25 05:10:03 +00:00
Jim Meyering
1bca766a5d
[struct control]: Change type of `repeat' member to unsigned
...
long to avoid conversion warning.
1995-05-25 05:09:50 +00:00
Jim Meyering
a660862d4c
(tail_lines): Change one more long' to off_t'.
...
Otherwise, tail didn't work on NetBSD. From by Arne H. Juul.
1995-05-25 05:09:00 +00:00
Jim Meyering
871da9a196
merge with 1.11.3
1995-05-25 05:02:37 +00:00
Jim Meyering
e4326d5926
.
1995-05-22 04:43:42 +00:00
Jim Meyering
ec651d2263
(__strtol): Remove prototype altogether.
...
Move inclusion of xstrtol.h back so that it follows system headers.
1995-05-22 04:43:36 +00:00
Jim Meyering
0895e4a7c4
.
1995-05-22 04:32:53 +00:00
Jim Meyering
ee79446888
(usage): Add one or two lines of descriptive text.
1995-05-22 04:30:18 +00:00
Jim Meyering
d0da35f3d2
.
1995-05-21 18:46:56 +00:00
Jim Meyering
b8a56f0503
.
1995-05-21 18:46:33 +00:00
Jim Meyering
f001fccf74
.
1995-05-21 18:46:11 +00:00
Jim Meyering
9451f098d6
.
1995-05-21 12:32:03 +00:00