]> git.ipfire.org Git - thirdparty/bash.git/blame - lib/intl/hash-string.h
Bash-5.3 distribution sources and documentation
[thirdparty/bash.git] / lib / intl / hash-string.h
CommitLineData
b8c60bc9
CR
1/* Description of GNU message catalog format: string hashing function.
2 Copyright (C) 1995-2016 Free Software Foundation, Inc.
b80f6443 3
b8c60bc9
CR
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
3185942a
JA
7 (at your option) any later version.
8
b8c60bc9 9 This program is distributed in the hope that it will be useful,
b80f6443 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
3185942a 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b8c60bc9 12 GNU Lesser General Public License for more details.
b80f6443 13
b8c60bc9
CR
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
b80f6443
JA
16
17/* @@ end of prolog @@ */
18
b80f6443
JA
19/* We assume to have `unsigned long int' value with at least 32 bits. */
20#define HASHWORDBITS 32
21
22
b8c60bc9
CR
23#ifndef _LIBC
24# ifdef IN_LIBINTL
25# define __hash_string libintl_hash_string
26# else
27# define __hash_string hash_string
28# endif
29#endif
30
b80f6443
JA
31/* Defines the so called `hashpjw' function by P.J. Weinberger
32 [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
33 1986, 1987 Bell Telephone Laboratories, Inc.] */
b8c60bc9 34extern unsigned long int __hash_string (const char *str_param);