# HG changeset patch # User Bruno Haible # Date 1067521930 0 # Node ID 82b23fb351ab9c2a13da9a1475b0d289479a0d5a # Parent ee1500bc37778c686f6967e36c5d234fd7961a75 Add comment. diff --git a/lib/hash-pjw.h b/lib/hash-pjw.h --- a/lib/hash-pjw.h +++ b/lib/hash-pjw.h @@ -18,4 +18,8 @@ #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);