From 5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 15 Aug 2001 16:59:27 +0000 Subject: Force open of internal data before using it. 2001-08-16 Not Zed * dumpindex.c (main): Force open of internal data before using it. svn path=/trunk/; revision=12056 --- libibex/ChangeLog | 2 ++ libibex/dumpindex.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/libibex/ChangeLog b/libibex/ChangeLog index a47320019f..16677bbca4 100644 --- a/libibex/ChangeLog +++ b/libibex/ChangeLog @@ -1,5 +1,7 @@ 2001-08-16 Not Zed + * dumpindex.c (main): Force open of internal data before using it. + * ibex_block.c (ibex_use): Use a next pointer so we keep the list intact as we scan it. diff --git a/libibex/dumpindex.c b/libibex/dumpindex.c index 410a7083d6..5f8cacd603 100644 --- a/libibex/dumpindex.c +++ b/libibex/dumpindex.c @@ -51,6 +51,9 @@ int main(int argc, char **argv) return 1; } + /* force real-open of the ibex internals */ + ibex_contains_name(ib, "dummy"); + ibex_hash_dump(ib->words->wordindex); ibex_hash_dump(ib->words->nameindex); -- cgit v1.2.3