Mercurial > hg > octave-nkf > gnulib-hg
annotate lib/gl_anyhash_list1.h @ 17848:ab58d4870664
version-etc: new year
* doc/gnulib.texi:
* lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
* all files: Run 'make update-copyright'.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 01 Jan 2015 01:38:23 +0000 |
parents | 344018b6e5d7 |
children |
rev | line source |
---|---|
6973
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Sequential list data type implemented by a hash table with another list. |
17848 | 2 Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc. |
6973
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 Written by Bruno Haible <bruno@clisp.org>, 2006. |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
6973
diff
changeset
|
5 This program is free software: you can redistribute it and/or modify |
6973
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
6973
diff
changeset
|
7 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
6973
diff
changeset
|
8 (at your option) any later version. |
6973
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 GNU General Public License for more details. |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 You should have received a copy of the GNU General Public License |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
6973
diff
changeset
|
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
6973
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 /* Common code of |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 gl_linkedhash_list.c, gl_avltreehash_list.c, gl_rbtreehash_list.c. */ |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 /* Hash table entry. */ |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 struct gl_hash_entry |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 { |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 struct gl_hash_entry *hash_next; /* chain of entries in same bucket */ |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 size_t hashcode; /* cache of values' common hash code */ |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 }; |
de9a21fc207a
Common code several concrete list implementations.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 typedef struct gl_hash_entry * gl_hash_entry_t; |