aboutsummaryrefslogtreecommitdiffstats
path: root/history.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-10 17:02:43 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-10 17:02:43 +0000
commit14f4297a049dd0d33425fccb8281abdac5d67ad6 (patch)
tree66af16621c3dc1f36d42b671848a800f29be9da0 /history.c
parent[w3m-dev 02650] (diff)
downloadw3m-14f4297a049dd0d33425fccb8281abdac5d67ad6.tar.gz
w3m-14f4297a049dd0d33425fccb8281abdac5d67ad6.zip
[w3m-dev 02651] search keymap using hash
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--history.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/history.c b/history.c
index 583b72a..44f3d75 100644
--- a/history.c
+++ b/history.c
@@ -1,4 +1,4 @@
-/* $Id: history.c,v 1.5 2001/12/02 16:26:08 ukai Exp $ */
+/* $Id: history.c,v 1.6 2001/12/10 17:02:44 ukai Exp $ */
#include "fm.h"
#ifdef USE_HISTORY
@@ -140,7 +140,7 @@ pushHashHist(Hist *hist, char *ptr)
hist->list->nitem--;
}
item = pushHist(hist, ptr);
- putHash_hist(hist->hash, ptr, (void *)item);
+ putHash_sv(hist->hash, ptr, (void *)item);
return item;
}
@@ -152,11 +152,11 @@ getHashHist(Hist *hist, char *ptr)
if (hist == NULL || hist->list == NULL)
return NULL;
if (hist->hash == NULL) {
- hist->hash = newHash_hist(HIST_HASH_SIZE);
+ hist->hash = newHash_sv(HIST_HASH_SIZE);
for (item = hist->list->first; item; item = item->next)
- putHash_hist(hist->hash, (char *)item->ptr, (void *)item);
+ putHash_sv(hist->hash, (char *)item->ptr, (void *)item);
}
- return (HistItem *)getHash_hist(hist->hash, ptr, NULL);
+ return (HistItem *)getHash_sv(hist->hash, ptr, NULL);
}
char *