Age | Commit message (Collapse) | Author |
|
|
|
on systems.
|
|
conflict with max macro from some system's header files and bad pre-ANSI
compilers.
|
|
also check `unsigned long', as a concession to systems with
int's smaller than 32 bits.
|
|
|
|
|
|
headers that have a different prototype for `join' get an error.
|
|
|
|
headers that define `word' to be a type get syntax errors because
of the variable by the same name.
|
|
parameter. Otherwise, some compilers failed with a type mismatch
error in sa_handler assignment.
|
|
From Ken Pizzini <kenp@spry.com>.
|
|
rather than with ANSI aggregate initialization. Reported by
Edzer Pebesma <Edzer.Pebesma@rivm.nl>.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
(hex_digits): Unprotoize.
(main): Interpret `no file args' as request to read from stdin.
(usage): Reflect that change.
|
|
|
|
|
|
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.
|
|
[__P]: Undefine it.
[UNIX || unix]: Also test __UNIX__, __unix__,
and _POSIX_VERSION. Reported by Arne H. Juul.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(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.
|
|
|
|
|
|
(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.
|
|
|
|
Otherwise, at least Ultrix-4.3's fflush would return EOF.
Reported by Jim Blandy (jimb@cyclic.com).
|
|
|
|
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.
|
|
(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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Don't use autoconf macros that require running test programs.
|