summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/intl/hash-string.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-10-16 10:54:18 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:03 +0200
commit93f7f8a0eee7fbc94f116587e1dcc95a8849adb3 (patch)
treeef56022ed1bde6c37361dfca3f65f9d8801f6f38 /gettext-runtime/intl/hash-string.h
parent8baec33a32c22b01755b900f30d82e8a885f2cb4 (diff)
downloadexternal_gettext-93f7f8a0eee7fbc94f116587e1dcc95a8849adb3.zip
external_gettext-93f7f8a0eee7fbc94f116587e1dcc95a8849adb3.tar.gz
external_gettext-93f7f8a0eee7fbc94f116587e1dcc95a8849adb3.tar.bz2
Assume ANSI C.
Diffstat (limited to 'gettext-runtime/intl/hash-string.h')
-rw-r--r--gettext-runtime/intl/hash-string.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/gettext-runtime/intl/hash-string.h b/gettext-runtime/intl/hash-string.h
index b267a87..9be55ea 100644
--- a/gettext-runtime/intl/hash-string.h
+++ b/gettext-runtime/intl/hash-string.h
@@ -1,5 +1,5 @@
/* Description of GNU message catalog format: string hashing function.
- Copyright (C) 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1997-1998, 2000-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
@@ -18,14 +18,6 @@
/* @@ end of prolog @@ */
-#ifndef PARAMS
-# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
-# define PARAMS(Args) Args
-# else
-# define PARAMS(Args) ()
-# endif
-#endif
-
/* We assume to have `unsigned long int' value with at least 32 bits. */
#define HASHWORDBITS 32
@@ -33,11 +25,8 @@
/* Defines the so called `hashpjw' function by P.J. Weinberger
[see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
1986, 1987 Bell Telephone Laboratories, Inc.] */
-static unsigned long int hash_string PARAMS ((const char *__str_param));
-
static inline unsigned long int
-hash_string (str_param)
- const char *str_param;
+hash_string (const char *str_param)
{
unsigned long int hval, g;
const char *str = str_param;