summaryrefslogtreecommitdiff
path: root/src/md5sum.c
AgeCommit message (Collapse)Author
1995-06-24[uint32]: When testing for 32-bit arithmetic type,Jim Meyering
also check `unsigned long', as a concession to systems with int's smaller than 32 bits.
1995-06-22(main): Remove spurious colon in getopt spec string.Jim Meyering
From Ken Pizzini <kenp@spry.com>.
1995-06-20(md5_file): Initialize two elements of LEN portably,Jim Meyering
rather than with ANSI aggregate initialization. Reported by Edzer Pebesma <Edzer.Pebesma@rivm.nl>.
1995-06-18(process_buffer): Copy values from struct intoJim Meyering
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-16(split_3): Unprotoize.Jim Meyering
(hex_digits): Unprotoize. (main): Interpret `no file args' as request to read from stdin. (usage): Reflect that change.
1995-06-16Remove unnecessary uses of `defined' in #if* tests.Jim Meyering
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-15Don't include values.h.Jim Meyering
[__P]: Undefine it. [UNIX || unix]: Also test __UNIX__, __unix__, and _POSIX_VERSION. Reported by Arne H. Juul.
1995-06-15merge with 1.11.5bJim Meyering
1995-06-15patch from drepperJim Meyering
1995-06-15(main): Rename `char binary' to type_flag to avoid confusion with `int binary'.Jim Meyering
1995-06-15Don't use #elif. Some old C compilers don't recognize it.Jim Meyering
(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-13Indent some things.Jim Meyering
(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-12[!__GNUC__]: Define INLINE to /* empty */.Jim Meyering
1995-06-11Use `invalid', not `illegal' in error message.Jim Meyering
1995-06-11Remove trailing white space.Jim Meyering
1995-06-11[SWAP]: Parenthesize uses of macro argument.Jim Meyering
Don't use autoconf macros that require running test programs.
1995-06-11From Ulrich Drepper.Jim Meyering