projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some development of dictionary. Not finished at all!
[idzebra-moved-to-github.git]
/
dict
/
drdwr.c
diff --git
a/dict/drdwr.c
b/dict/drdwr.c
index
a77e7a1
..
3869dcb
100644
(file)
--- a/
dict/drdwr.c
+++ b/
dict/drdwr.c
@@
-61,7
+61,7
@@
void dict_bf_flush_blocks (Dict_BFile bf, int no_to_flush)
{
p = bf->lru_back;
if (p->dirty)
{
p = bf->lru_back;
if (p->dirty)
- bf_write (bf->bf, p->no, p->data);
+ bf_write (bf->bf, p->no, 0, 0, p->data);
release_block (bf, p);
}
}
release_block (bf, p);
}
}
@@
-121,7
+121,7
@@
static void move_to_front (Dict_BFile bf, struct Dict_file_block *p)
bf->lru_front = p;
}
bf->lru_front = p;
}
-int bf_readp (Dict_BFile bf, int no, void **bufp)
+int dict_bf_readp (Dict_BFile bf, int no, void **bufp)
{
struct Dict_file_block *p;
int i;
{
struct Dict_file_block *p;
int i;
@@
-134,7
+134,7
@@
int bf_readp (Dict_BFile bf, int no, void **bufp)
}
bf->misses++;
p = alloc_block (bf, no);
}
bf->misses++;
p = alloc_block (bf, no);
- i = bf_read (bf->bf, no, p->data);
+ i = bf_read (bf->bf, no, 0, 0, p->data);
if (i > 0)
{
*bufp = p->data;
if (i > 0)
{
*bufp = p->data;
@@
-145,7
+145,7
@@
int bf_readp (Dict_BFile bf, int no, void **bufp)
return i;
}
return i;
}
-int bf_newp (Dict_BFile bf, int no, void **bufp)
+int dict_bf_newp (Dict_BFile bf, int no, void **bufp)
{
struct Dict_file_block *p;
if (!(p = find_block (bf, no)))
{
struct Dict_file_block *p;
if (!(p = find_block (bf, no)))
@@
-162,7
+162,7
@@
int bf_newp (Dict_BFile bf, int no, void **bufp)
return 1;
}
return 1;
}
-int bf_touch (Dict_BFile bf, int no)
+int dict_bf_touch (Dict_BFile bf, int no)
{
struct Dict_file_block *p;
if ((p = find_block (bf, no)))
{
struct Dict_file_block *p;
if ((p = find_block (bf, no)))