X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fhash-pjw.h;h=1fddb202ffcc2a7873a88e321590fa14d47ea6dd;hb=74dd1966a5db708c66201bf952976ef27bd33e7e;hp=b2a09949439c3eb99639f652d08838c30771c2fe;hpb=c31c5f30e8606260d4963b96a97b7dbce7607b67;p=gnulib.git
diff --git a/lib/hash-pjw.h b/lib/hash-pjw.h
index b2a099494..1fddb202f 100644
--- a/lib/hash-pjw.h
+++ b/lib/hash-pjw.h
@@ -1,10 +1,10 @@
/* hash-pjw.h -- declaration for a simple hash function
Copyright (C) 2001, 2003 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
+ 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 2, or (at your option)
- any later version.
+ 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
@@ -12,10 +12,12 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; see the file COPYING.
- If not, write to the Free Software Foundation,
- 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ along with this program. If not, see . */
#include
-size_t hash_pjw (void const *x, size_t tablesize);
+/* Compute a hash code for a NUL-terminated string starting at X,
+ and return the hash code modulo TABLESIZE.
+ The result is platform dependent: it depends on the size of the 'size_t'
+ type and on the signedness of the 'char' type. */
+extern size_t hash_pjw (void const *x, size_t tablesize);