Subject: CVS commit: src/lib/libc
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 09/26/2005 03:01:41
Module Name:	src
Committed By:	christos
Date:		Mon Sep 26 03:01:41 UTC 2005

Modified Files:
	src/lib/libc/hash: hash.c
	src/lib/libc/hash/md2: md2hl.c
	src/lib/libc/hash/rmd160: rmd160hl.c
	src/lib/libc/hash/sha1: sha1hl.c
	src/lib/libc/hash/sha2: sha256hl.c sha384hl.c sha512hl.c
	src/lib/libc/md: md4hl.c md5hl.c mdXhl.c

Log Message:
The weak alias macros can only work before namespace.h gets included because
when the strings get expanded we gain an _ from namespace.h. So define a
macro to point to the appropriate include file for the hash function, and
include the hash function later, from the .c file we always include. This
allows us to eliminate the hack of including namespace.h twice as well as
nbtool_config.h.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/lib/libc/hash/hash.c
cvs rdiff -r1.1 -r1.2 src/lib/libc/hash/md2/md2hl.c
cvs rdiff -r1.2 -r1.3 src/lib/libc/hash/rmd160/rmd160hl.c
cvs rdiff -r1.1 -r1.2 src/lib/libc/hash/sha1/sha1hl.c
cvs rdiff -r1.4 -r1.5 src/lib/libc/hash/sha2/sha256hl.c \
    src/lib/libc/hash/sha2/sha384hl.c src/lib/libc/hash/sha2/sha512hl.c
cvs rdiff -r1.6 -r1.7 src/lib/libc/md/md4hl.c src/lib/libc/md/md5hl.c \
    src/lib/libc/md/mdXhl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.