X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=dict%2Fdrdwr.c;h=3869dcbf1d7708b01c7d05c4b77de1c382f12fa0;hb=2f0932393fb205b2e9b941db50cf5aebfba5c385;hp=a77e7a105e2f3f8a94f29f2ed5e354cf603a5544;hpb=df82693c96b0691db2508139dea6fc4a03766193;p=idzebra-moved-to-github.git diff --git a/dict/drdwr.c b/dict/drdwr.c index a77e7a1..3869dcb 100644 --- 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) - bf_write (bf->bf, p->no, p->data); + bf_write (bf->bf, p->no, 0, 0, p->data); 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; } -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; @@ -134,7 +134,7 @@ int bf_readp (Dict_BFile bf, int no, void **bufp) } 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; @@ -145,7 +145,7 @@ int bf_readp (Dict_BFile bf, int no, void **bufp) 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))) @@ -162,7 +162,7 @@ int bf_newp (Dict_BFile bf, int no, void **bufp) 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)))