X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=util%2Fnmem.c;h=59e2282636dd200b00054b981ed5b6e169cc533a;hb=19af2bd8dfd21731cc978beccd1346133d614c67;hp=c76c836d397bbf895eafeb81943530e3092436f5;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/util/nmem.c b/util/nmem.c index c76c836..59e2282 100644 --- a/util/nmem.c +++ b/util/nmem.c @@ -1,10 +1,16 @@ /* - * Copyright (c) 1995-1999, Index Data. + * Copyright (c) 1995-2000, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: nmem.c,v $ - * Revision 1.19 1999-11-30 13:47:12 adam + * Revision 1.21 2000-02-29 13:44:55 adam + * Check for config.h (currently not generated). + * + * Revision 1.20 2000/01/06 14:59:13 adam + * Added oid_init/oid_exit. Changed oid_exit. + * + * Revision 1.19 1999/11/30 13:47:12 adam * Improved installation. Moved header files to include/yaz. * * Revision 1.18 1999/08/27 09:40:32 adam @@ -74,6 +80,9 @@ * This is a simple and fairly wasteful little module for nibble memory * allocation. Evemtually we'll put in something better. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -385,6 +394,7 @@ void nmem_exit (void) cfreelist = cfreelist->next; xfree (cfl); } + nmem_init_flag = 0; #ifdef WIN32 DeleteCriticalSection(&critical_section); #endif