From cef7e3b0572463dd5b3efd6f45ad2f4694778492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 1 Nov 2012 00:01:53 +0100 Subject: [PATCH] prefix hash functions with uc_ fix prototype for hashuint --- src/ucore_hash.h | 2 +- src/ucore_hashint.c | 2 +- src/ucore_saxhash.c | 2 +- src/ucore_sdmhash.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ucore_hash.h b/src/ucore_hash.h index 392740d..6c0c3d0 100644 --- a/src/ucore_hash.h +++ b/src/ucore_hash.h @@ -29,7 +29,7 @@ uint32_t uc_pjwhash(const char *str,size_t len); uint32_t -sax_hash(void *key, size_t len); +uc_sax_hash(void *key, size_t len); #ifdef __cplusplus } diff --git a/src/ucore_hashint.c b/src/ucore_hashint.c index 2e4c8b8..6eaa26a 100644 --- a/src/ucore_hashint.c +++ b/src/ucore_hashint.c @@ -1,7 +1,7 @@ #include "ucore_hash.h" uint32_t -uc_hashint(uint32_t a) +uc_hashuint(uint32_t a) { a = (a ^ 61) ^ (a >> 16); a = a + (a << 3); diff --git a/src/ucore_saxhash.c b/src/ucore_saxhash.c index 310a008..b60e8c1 100644 --- a/src/ucore_saxhash.c +++ b/src/ucore_saxhash.c @@ -1,7 +1,7 @@ #include "ucore_hash.h" uint32_t -sax_hash(void *key, size_t len) +uc_sax_hash(void *key, size_t len) { unsigned char *p = key; unsigned h = 0; diff --git a/src/ucore_sdmhash.c b/src/ucore_sdmhash.c index 2b3f038..cd0f42d 100644 --- a/src/ucore_sdmhash.c +++ b/src/ucore_sdmhash.c @@ -1,5 +1,5 @@ unsigned long -sdbmhash(const unsigned char *str) +uc_sdbmhash(const unsigned char *str) { unsigned long hash = 0; unsigned int c;