Mercurial > gnulib
view lib/gl_linkedhash_set.h @ 39993:9f23dbd05922
linkedhash-set: New module.
* lib/gl_linkedhash_set.h: New file.
* lib/gl_linkedhash_set.c: New file.
* lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
* lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
* lib/gl_anyhash_primes.h: New file, extracted from
lib/gl_anyhash_list2.h.
* lib/gl_anyhash_list2.h: Include it.
(primes, next_prime): Remove definitions.
* modules/linkedhash-set: New file.
* modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
(Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
* modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
(Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
* modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
(Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 04 Dec 2018 00:53:12 +0100 |
parents | |
children | b06060465f09 |
line wrap: on
line source
/* Set data type implemented by a hash table with a linked list. Copyright (C) 2006, 2009-2018 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2018. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ #ifndef _GL_LINKEDHASH_SET_H #define _GL_LINKEDHASH_SET_H #include "gl_set.h" #ifdef __cplusplus extern "C" { #endif extern const struct gl_set_implementation gl_linkedhash_set_implementation; #define GL_LINKEDHASH_SET &gl_linkedhash_set_implementation #ifdef __cplusplus } #endif #endif /* _GL_LINKEDHASH_SET_H */