Merge glibc and coreutils changes into gnulib, plus a few
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Sep 2005 22:05:15 +0000 (22:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Sep 2005 22:05:15 +0000 (22:05 +0000)
commitdcbeca4acb90e463e4af5e12a44dfff2cd161fb9
tree065a768a7250e59dde2d56370008e2df85fc39eb
parent35a32ee9550d22a932f1a71d89653e351405638d
Merge glibc and coreutils changes into gnulib, plus a few
extra fixes.
* md5.c: Use #error rather than a string.
(CYCLIC): New macro, from glibc source.  Use it instead of rol.
* md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
(__attribute__): Define to empty for non recent-GCC.
(__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
(__md5_process_bytes, __md5_read_ctx, __md5_stream):
Renamed from their non-__ counterparts, with new macros replacing
them if not _LIBC.  Add __THROW attribute.
(rol): Remove.
(struct md5_ctx): Align buffer if using GCC.
* sha1.h (struct sha1_ctx): Likewise.
* sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
The old name was backwards.
(NOTSWAP): Remove; not used.
(rol): New macro, moved here from md5.h.
(sha1_process_block): Remove a FIXME that doesn't make sense.
lib/ChangeLog
lib/md5.c
lib/md5.h
lib/sha1.c
lib/sha1.h