* Sebastian Hammer, Adam Dickmeiss
*
* $Log: nmem.c,v $
- * Revision 1.26 2001-07-19 19:51:42 adam
+ * Revision 1.27 2001-09-27 12:09:18 adam
+ * Function nmem_exit calls oid_exit (when reference is 0).
+ *
+ * Revision 1.26 2001/07/19 19:51:42 adam
* Added typecasts to make C++ happy.
*
* Revision 1.25 2001/06/26 14:11:27 adam
#include <yaz/xmalloc.h>
#include <yaz/nmem.h>
#include <yaz/log.h>
+#include <yaz/oid.h>
#ifdef WIN32
#include <windows.h>
#elif _REENTRANT
{
if (--nmem_init_flag == 0)
{
+ oid_exit();
while (freelist)
{
struct nmem_block *fl = freelist;
* See the file LICENSE for details.
*
* $Log: oid.c,v $
- * Revision 1.47 2001-09-24 21:51:55 adam
+ * Revision 1.48 2001-09-27 12:09:18 adam
+ * Function nmem_exit calls oid_exit (when reference is 0).
+ *
+ * Revision 1.47 2001/09/24 21:51:55 adam
* New Z39.50 OID utilities: yaz_oidval_to_z3950oid, yaz_str_to_z3950oid
* and yaz_z3950oid_to_str.
*
void oid_exit (void)
{
- oid_init_flag = 0;
- nmem_mutex_destroy (&oid_mutex);
- nmem_destroy (oid_nmem);
- oid_nmem = 0;
+ if (oid_init_flag)
+ {
+ oid_init_flag = 0;
+ nmem_mutex_destroy (&oid_mutex);
+ nmem_destroy (oid_nmem);
+ oid_nmem = 0;
+ }
}
static struct oident *oid_getentbyoid_x(int *o)
# makefile.mak - makefile for MS NMAKE
-# $Id: makefile,v 1.25 2001-09-24 21:51:56 adam Exp $
+# $Id: makefile,v 1.26 2001-09-27 12:09:18 adam Exp $
#
# Programmed by
# HL: Heikki Levanto, Index Data
############### Parameters
###########################################################
-DEBUG=0 # 0 for release, 1 for debug
+DEBUG=1 # 0 for release, 1 for debug
NEW_Z3950=1 # 0= use old asn files
# 1= generate files from *.asn (needs tcl)
###########################################################
#
# $Log: makefile,v $
-# Revision 1.25 2001-09-24 21:51:56 adam
+# Revision 1.26 2001-09-27 12:09:18 adam
+# Function nmem_exit calls oid_exit (when reference is 0).
+#
+# Revision 1.25 2001/09/24 21:51:56 adam
# New Z39.50 OID utilities: yaz_oidval_to_z3950oid, yaz_str_to_z3950oid
# and yaz_z3950oid_to_str.
#
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,7,0,8
- PRODUCTVERSION 1,7,0,8
+ FILEVERSION 1,7,0,9
+ PRODUCTVERSION 1,7,0,9
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
VALUE "Comments", "Z39.50 C Library\0"
VALUE "CompanyName", "Index Data\0"
VALUE "FileDescription", "YAZ Toolkit\0"
- VALUE "FileVersion", "1, 7, 0, 8\0"
+ VALUE "FileVersion", "1, 7, 0, 9\0"
VALUE "InternalName", "YAZ\0"
VALUE "LegalCopyright", "Copyright © 1996-2001 Index Data\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "yaz.rc\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "Index Data YAZ Toolkit\0"
- VALUE "ProductVersion", "1, 7, 0, 8\0"
+ VALUE "ProductVersion", "1, 7, 0, 9\0"
VALUE "SpecialBuild", "\0"
END
END