Removed stupid line. Work on insertion in dictionary. Not finished yet.
[idzebra-moved-to-github.git] / dict / dclose.c
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: dclose.c,v $
7  * Revision 1.3  1994-09-01 17:49:36  adam
8  * Removed stupid line. Work on insertion in dictionary. Not finished yet.
9  *
10  */
11
12 #include <sys/types.h>
13 #include <fcntl.h>
14 #include <unistd.h>
15 #include <stdio.h>
16 #include <stdlib.h>
17
18 #include <dict.h>
19
20 int dict_bf_close (Dict_BFile dbf)
21 {
22     int i;
23     dict_bf_flush_blocks (dbf, -1);
24     
25     xfree (dbf->all_blocks);
26     xfree (dbf->all_data);
27     xfree (dbf->hash_array);
28     i = bf_close (dbf->bf);
29     xfree (dbf);
30     return i;
31 }