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
Function dfa_parse got 'const' string argument.
[idzebra-moved-to-github.git]
/
dict
/
close.c
diff --git
a/dict/close.c
b/dict/close.c
index
97e7035
..
f4e30c0
100644
(file)
--- a/
dict/close.c
+++ b/
dict/close.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: close.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: close.c,v $
- * Revision 1.3 1994-08-18 12:40:52 adam
+ * 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
* Some development of dictionary. Not finished at all!
*
* Revision 1.2 1994/08/17 13:32:19 adam
@@
-25,7
+31,14
@@
int dict_close (Dict dict)
{
assert (dict);
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;
dict_bf_close (dict->dbf);
xfree (dict);
return 0;