[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd-l4/libhurd-ihash ihash.h ihash.c Makefile....
From: |
Neal H. Walfield |
Subject: |
hurd-l4/libhurd-ihash ihash.h ihash.c Makefile.... |
Date: |
Sat, 06 Oct 2007 13:13:21 +0000 |
CVSROOT: /sources/hurd
Module name: hurd-l4
Changes by: Neal H. Walfield <neal> 07/10/06 13:13:21
Modified files:
libhurd-ihash : ihash.h ihash.c Makefile.am ChangeLog
Added files:
libhurd-ihash : t-ihash.c
Log message:
2007-10-06 Neal H. Walfield <address@hidden>
* ihash.h (hurd_ihash_replace): New prototype.
(hurd_ihash_add): Replace prototype with a static inline
implementation that calls hurd_ihash_replace with the right
parameters.
* ihash.c (locp_remove): Take additional argument, cleanup.
Only
call the cleanup function if CLEANUP is true. Update callers.
(add_one): Rename from this...
(replace_one): ... to this. Add two parameters, had_value and
old_value. If the key has a value and OLD_VALUE is not NULL,
then
do not call the cleanup function but save the old value in
*OLD_VALUE. If the key had a value and HAD_VALUE is not NULL,
then store true in *HAD_VALUE, otherwise, false. Update
callers.
* Makefile.am (TESTS): Set to t-ihash.
(check_PROGRAMS): Set to t-ihash.
(t_ihash_SOURCES): Set to t-ihash.c and ihash.h.
(t_ihash_LDADD): Set to libhurd-ihash.a.
* t-ihash.c: New file.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/libhurd-ihash/ihash.h?cvsroot=hurd&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/libhurd-ihash/ihash.c?cvsroot=hurd&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/libhurd-ihash/Makefile.am?cvsroot=hurd&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/libhurd-ihash/ChangeLog?cvsroot=hurd&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/libhurd-ihash/t-ihash.c?cvsroot=hurd&rev=1.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hurd-l4/libhurd-ihash ihash.h ihash.c Makefile....,
Neal H. Walfield <=