Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 2d2d9e3e778364fc01bdbe4d857defaa33f127cf |
|---|---|
| Date: | 2009-11-12 18:05:14 |
| User: | stephan |
| Comment: | Updated license |
Tags And Properties
- branch=trunk inherited from [a870fea998]
- sym-trunk inherited from [a870fea998]
Changes
Changes to src/whhash.c
| Old (edb5f480b16c6520) | New (619c682594cf8a73) | |||
|---|---|---|---|---|
| 1 | /* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */ | 1 | /* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */ | |
| 2 | /* Copyright (C) 2008 Stephan Beal (http://wanderinghorse.net/home/stephan/) */ | 2 | /* Copyright (C) 2008 Stephan Beal (http://wanderinghorse.net/home/stephan/) */ | |
| 3 | | | 3 | /** | |
| | | 4 | License: as of 2009, this code is Public Domain in jurisdictions which | ||
| | | 5 | recognize Public Domain, and New BSD in all other jurisdictions. | ||
| | | 6 | */ | ||
| 4 | #include "whhash.h" | 7 | #include "whhash.h" | |
| 5 | #include <stdlib.h> | 8 | #include <stdlib.h> | |
| 6 | //#include <stdio.h> | 9 | //#include <stdio.h> | |
| 7 | #include <string.h> | 10 | #include <string.h> | |
| 8 | 11 | |||
| 849 hidden lines | ||||
| 858 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | 861 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | |
| 859 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 862 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
| 860 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 863 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
| 861 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 864 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 862 | */ | 865 | */ | |
Changes to src/whhash.h
| Old (1930e77d0408c746) | New (35cfd2b0d7267ec4) | |||
|---|---|---|---|---|
| 1 | /* Copyright (C) 2002 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */ | 1 | /* Copyright (C) 2002 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */ | |
| 2 | /* Copyright (C) 2008 Stephan Beal (http://wanderinghorse.net/home/stephan/) */ | 2 | /* Copyright (C) 2008 Stephan Beal (http://wanderinghorse.net/home/stephan/) */ | |
| 3 | /* Code originally taken from: http://www.cl.cam.ac.uk/~cwc22/hashtable/ */ | 3 | /* Code originally taken from: http://www.cl.cam.ac.uk/~cwc22/hashtable/ */ | |
| > | 4 | /** | ||
| > | 5 | In 2009 Stephan Beal got permission from Christopher Clark to | ||
| > | 6 | re-license this code as Public Domain. Thus this code is now | ||
| > | 7 | Public Domain in jurisdictions which recognize Public Domain, and | ||
| > | 8 | the New BSD License in all other jurisdictions. | ||
| > | 9 | */ | ||
| 4 | #ifndef WANDERINGHORSE_NET_WHHASH_H_INCLUDED | 10 | #ifndef WANDERINGHORSE_NET_WHHASH_H_INCLUDED | |
| 5 | #define WANDERINGHORSE_NET_WHHASH_H_INCLUDED | 11 | #define WANDERINGHORSE_NET_WHHASH_H_INCLUDED | |
| 6 | #include <stddef.h> /* size_t */ | 12 | #include <stddef.h> /* size_t */ | |
| 7 | #ifdef __cplusplus | 13 | #ifdef __cplusplus | |
| 8 | extern "C" { | 14 | extern "C" { | |
| 4 hidden lines | ||||
| 13 | The functions and types named whhash* are part of the | 19 | The functions and types named whhash* are part of the | |
| 14 | WanderingHorse.net hashtable library. It is a hashtable | 20 | WanderingHorse.net hashtable library. It is a hashtable | |
| 15 | implementation based on code by Christopher Clark, | 21 | implementation based on code by Christopher Clark, | |
| 16 | adopted, extended, and changed somewhat by yours truly. | 22 | adopted, extended, and changed somewhat by yours truly. | |
| 17 | 23 | |||
| 18 | License: New BSD License | | | 24 | License: Public Domain in jurisdictions which allow it, otherwise |
| | | 25 | New BSD License. | ||
| 19 | 26 | |||
| 20 | Maintainer: Stephan Beal (http://wanderinghorse.net/home/stephan) | 27 | Maintainer: Stephan Beal (http://wanderinghorse.net/home/stephan) | |
| 21 | 28 | |||
| 22 | The hashtables described here map (void*) to (void*) by using a | 29 | The hashtables described here map (void*) to (void*) by using a | |
| 23 | client-supplied hash algorithm on the key pointers. The hashtable | 30 | client-supplied hash algorithm on the key pointers. The hashtable | |
| 118 hidden lines | ||||
| 142 | store items which are shared across threads in a hashtable unless | 149 | store items which are shared across threads in a hashtable unless | |
| 143 | you know that lifetime and ownership issues can be mitigated. If, | 150 | you know that lifetime and ownership issues can be mitigated. If, | |
| 144 | e.g., a hashtable does not own its entries, one needs to make sure | 151 | e.g., a hashtable does not own its entries, one needs to make sure | |
| 145 | that if the entry is deleted from somewhere else, that it's | 152 | that if the entry is deleted from somewhere else, that it's | |
| 146 | removed from the hashtable (or ensure that that entry cannot be | 153 | removed from the hashtable (or ensure that that entry cannot be | |
| 147 | references again, otherwise you'll get a dangling pointer back). | | | 154 | referenced again, otherwise you'll get a dangling pointer back). |
| 148 | 155 | |||
| 149 | 156 | |||
| 150 | @section whhash_sec_links Other resources | 157 | @section whhash_sec_links Other resources | |
| 151 | 158 | |||
| 152 | Some other resources: | 159 | Some other resources: | |
| 489 hidden lines | ||||
| 642 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | 649 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | |
| 643 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 650 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
| 644 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 651 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
| 645 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 652 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 646 | */ | 653 | */ | |