Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 6ebaf82426 merge with 1.12 1995-06-18 19:33:31 +00:00
Jim Meyering d96ba2d153 . 1995-06-18 14:24:56 +00:00
Jim Meyering 2adaaa8521 . 1995-06-18 14:21:58 +00:00
Jim Meyering 755cdcee27 (process_buffer): Copy values from struct into
individual local variables before performing computation on them,
then copy results back into returned struct.  Solely for better
optimization by compilers that can't keep struct members in
registers.  From Ulrich Drepper.
1995-06-18 14:21:50 +00:00
Jim Meyering 643a49ea6c . 1995-06-16 04:25:05 +00:00
Jim Meyering 583e66e5b0 . 1995-06-16 04:21:08 +00:00
Jim Meyering 769f82b90b . 1995-06-16 04:15:25 +00:00
Jim Meyering 19ffe3f16e (split_3): Unprotoize.
(hex_digits): Unprotoize.
(main): Interpret `no file args' as request to read from stdin.
(usage): Reflect that change.
1995-06-16 04:13:36 +00:00
Jim Meyering 66196f8fd7 Half-assed patch from Karl -- probably need to change file name' to filename'. 1995-06-16 03:59:41 +00:00
Jim Meyering 820cd5c090 . 1995-06-16 03:26:56 +00:00
Jim Meyering cdfc0cf26f Remove unnecessary uses of `defined' in #if* tests.
Don't use #elif.  Some older compilers don't grok it.
(split_3): New function to parse out sum, flag, and filename
when reading check file.
(hex_digits): Remove length parameter since string parameter is
now nul-terminated.
(main): Don't allocate separate arrays for filename and sum
when checking.  Get pointers into line buffer with split_3 instead
of using sscanf.
1995-06-16 03:14:19 +00:00
Jim Meyering aab046d29b Don't include values.h.
[__P]: Undefine it.

[UNIX || unix]: Also test __UNIX__, __unix__,
and _POSIX_VERSION.  Reported by Arne H. Juul.
1995-06-15 18:44:48 +00:00
Jim Meyering ad1b9f0851 . 1995-06-15 18:44:27 +00:00
Jim Meyering f9f17d4b0f merge with 1.11.5b 1995-06-15 16:46:34 +00:00
Jim Meyering 33969b2c90 patch from drepper 1995-06-15 15:02:01 +00:00
Jim Meyering 88b9522242 Alloca fix for ConvexOS-11.0. 1995-06-15 14:55:26 +00:00
Jim Meyering 2907e4e4f1 Use void* alloca, not char*. The latter lost on convexOS. 1995-06-15 03:57:49 +00:00
Jim Meyering 84876e7e9e md5sum docs from Ulrich. 1995-06-15 03:43:52 +00:00
Jim Meyering 8f6e9e8827 (main): Rename char binary' to type_flag to avoid confusion with int binary'. 1995-06-15 03:18:13 +00:00
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