Back to index

courier  0.68.2
hash-string.h
Go to the documentation of this file.
00001 /* Description of GNU message catalog format: string hashing function.
00002    Copyright (C) 1995, 1997-1998, 2000-2003, 2005 Free Software Foundation, Inc.
00003 
00004    This program is free software; you can redistribute it and/or modify it
00005    under the terms of the GNU Library General Public License as published
00006    by the Free Software Foundation; either version 2, or (at your option)
00007    any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public
00015    License along with this program; if not, write to the Free Software
00016    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00017    USA.  */
00018 
00019 /* @@ end of prolog @@ */
00020 
00021 /* We assume to have `unsigned long int' value with at least 32 bits.  */
00022 #define HASHWORDBITS 32
00023 
00024 
00025 #ifndef _LIBC
00026 # ifdef IN_LIBINTL
00027 #  define __hash_string libintl_hash_string
00028 # else
00029 #  define __hash_string hash_string
00030 # endif
00031 #endif
00032 
00033 /* Defines the so called `hashpjw' function by P.J. Weinberger
00034    [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
00035    1986, 1987 Bell Telephone Laboratories, Inc.]  */
00036 extern unsigned long int __hash_string (const char *str_param);