1*1f5207b7SJohn Levon /* Copyright (C) 2002 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
2*1f5207b7SJohn Levon 
3*1f5207b7SJohn Levon #ifndef __HASHTABLE_CWC22_UTILITY_H__
4*1f5207b7SJohn Levon #define __HASHTABLE_CWC22_UTILITY_H__
5*1f5207b7SJohn Levon 
6*1f5207b7SJohn Levon /*****************************************************************************
7*1f5207b7SJohn Levon  * hashtable_change
8*1f5207b7SJohn Levon  *
9*1f5207b7SJohn Levon  * function to change the value associated with a key, where there already
10*1f5207b7SJohn Levon  * exists a value bound to the key in the hashtable.
11*1f5207b7SJohn Levon  * Source due to Holger Schemel.
12*1f5207b7SJohn Levon  *
13*1f5207b7SJohn Levon  * @name        hashtable_change
14*1f5207b7SJohn Levon  * @param   h   the hashtable
15*1f5207b7SJohn Levon  * @param       key
16*1f5207b7SJohn Levon  * @param       value
17*1f5207b7SJohn Levon  *
18*1f5207b7SJohn Levon  */
19*1f5207b7SJohn Levon int
20*1f5207b7SJohn Levon hashtable_change(struct hashtable *h, void *k, void *v);
21*1f5207b7SJohn Levon 
22*1f5207b7SJohn Levon #endif /* __HASHTABLE_CWC22_H__ */
23*1f5207b7SJohn Levon 
24*1f5207b7SJohn Levon /*
25*1f5207b7SJohn Levon  * Copyright (c) 2002, Christopher Clark
26*1f5207b7SJohn Levon  * All rights reserved.
27*1f5207b7SJohn Levon  *
28*1f5207b7SJohn Levon  * Redistribution and use in source and binary forms, with or without
29*1f5207b7SJohn Levon  * modification, are permitted provided that the following conditions
30*1f5207b7SJohn Levon  * are met:
31*1f5207b7SJohn Levon  *
32*1f5207b7SJohn Levon  * * Redistributions of source code must retain the above copyright
33*1f5207b7SJohn Levon  * notice, this list of conditions and the following disclaimer.
34*1f5207b7SJohn Levon  *
35*1f5207b7SJohn Levon  * * Redistributions in binary form must reproduce the above copyright
36*1f5207b7SJohn Levon  * notice, this list of conditions and the following disclaimer in the
37*1f5207b7SJohn Levon  * documentation and/or other materials provided with the distribution.
38*1f5207b7SJohn Levon  *
39*1f5207b7SJohn Levon  * * Neither the name of the original author; nor the names of any contributors
40*1f5207b7SJohn Levon  * may be used to endorse or promote products derived from this software
41*1f5207b7SJohn Levon  * without specific prior written permission.
42*1f5207b7SJohn Levon  *
43*1f5207b7SJohn Levon  *
44*1f5207b7SJohn Levon  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
45*1f5207b7SJohn Levon  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
46*1f5207b7SJohn Levon  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
47*1f5207b7SJohn Levon  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER
48*1f5207b7SJohn Levon  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
49*1f5207b7SJohn Levon  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
50*1f5207b7SJohn Levon  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
51*1f5207b7SJohn Levon  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
52*1f5207b7SJohn Levon  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
53*1f5207b7SJohn Levon  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
54*1f5207b7SJohn Levon  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55*1f5207b7SJohn Levon */
56