X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fclose.c;h=eea8b1a050b8fbf8147c192c2d2804584084d1c0;hb=6b0310a64df542131c2f4abded39f35844235e4d;hp=97e70352cbb38c86dddc96cdbfa935d22051660a;hpb=2f0932393fb205b2e9b941db50cf5aebfba5c385;p=idzebra-moved-to-github.git diff --git a/dict/close.c b/dict/close.c index 97e7035..eea8b1a 100644 --- a/dict/close.c +++ b/dict/close.c @@ -1,10 +1,19 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: close.c,v $ - * Revision 1.3 1994-08-18 12:40:52 adam + * Revision 1.6 1999-02-02 14:50:15 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.5 1994/09/01 17:49:36 adam + * Removed stupid line. Work on insertion in dictionary. Not finished yet. + * + * Revision 1.4 1994/09/01 17:44:06 adam + * depend include change. + * + * Revision 1.3 1994/08/18 12:40:52 adam * Some development of dictionary. Not finished at all! * * Revision 1.2 1994/08/17 13:32:19 adam @@ -25,7 +34,14 @@ int dict_close (Dict dict) { assert (dict); - + + if (dict->rw) + { + void *head_buf; + dict_bf_readp (dict->dbf, 0, &head_buf); + memcpy (head_buf, &dict->head, sizeof(dict->head)); + dict_bf_touch (dict->dbf, 0); + } dict_bf_close (dict->dbf); xfree (dict); return 0;