summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 09:49:03 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 09:49:03 +0800
commitb54b6d5d4b176a137b6095024d3db80ede286555 (patch)
tree81fe98fd8b50f5eac57e45c9f74f6911509d9ad3 /mbbsd/stuff.c
parent9c92e958fd4f6a5d25cbab9d80e0fee8aa70c478 (diff)
downloadpttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar.gz
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar.bz2
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar.lz
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar.xz
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.tar.zst
pttbbs-b54b6d5d4b176a137b6095024d3db80ede286555.zip
- search: must update SR name to match new DBCS aware search
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3663 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 4e5fd8cb..19049c8b 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -961,6 +961,12 @@ StringHash(const char *s)
return fnv1a_32_strcase(s, FNV1_32_INIT);
}
+unsigned
+DBCS_StringHash(const char *s)
+{
+ return fnv1a_32_dbcs_strcase(s, FNV1_32_INIT);
+}
+
inline int *intbsearch(int key, const int *base0, int nmemb)
{
/* §ï¦Û /usr/src/lib/libc/stdlib/bsearch.c ,