dnl YAZ Toolkit, Index Data 1994-2003
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.115 2003-09-04 18:18:07 adam Exp $
+dnl $Id: configure.in,v 1.116 2003-10-09 15:51:36 adam Exp $
AC_INIT(include/yaz/yaz-version.h)
-AM_INIT_AUTOMAKE(yaz, 2.0.4)
+AM_INIT_AUTOMAKE(yaz, 2.0.5)
AM_MAINTAINER_MODE
dnl
AC_SUBST(READLINE_LIBS)
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
- * $Id: log.h,v 1.11 2003-05-22 15:41:58 heikki Exp $
+ * $Id: log.h,v 1.12 2003-10-09 15:51:36 adam Exp $
*/
#ifndef LOG_H
YAZ_EXPORT void log_event_end (void (*func)(int level, const char *msg, void *info),
void *info);
+YAZ_EXPORT void yaz_log_reopen(void);
YAZ_END_CDECL
#endif
* Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-version.h,v 1.28 2003-09-04 18:18:07 adam Exp $
+ * $Id: yaz-version.h,v 1.29 2003-10-09 15:51:36 adam Exp $
*/
/*
#include <yaz/yconfig.h>
#define YAZ_VERSION "2.0.4"
-#define YAZ_VERSIONL 0x020004
+#define YAZ_VERSIONL 0x020005
#define YAZ_DATE 1
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.38 2003-05-22 13:15:08 heikki Exp $
+ * $Id: log.c,v 1.39 2003-10-09 15:51:36 adam Exp $
*/
#if HAVE_CONFIG_H
static FILE *l_file = NULL;
static char l_prefix[512] = "";
static char l_prefix2[512] = "";
+static char l_fname[512] = "";
static struct {
int mask;
void yaz_log_init_file (const char *fname)
{
+ if (fname)
+ {
+ strncpy(l_fname, fname, sizeof(l_fname)-1);
+ l_fname[sizeof(l_fname)-1] = '\0';
+ }
+ else
+ l_fname[0] = '\0';
+ yaz_log_reopen();
+}
+
+void yaz_log_reopen(void)
+{
FILE *new_file;
if (!l_file)
l_file = stderr;
- if (!fname || !*fname)
+
+ if (!*l_fname)
new_file=stderr;
- else if (!(new_file = fopen(fname, "a")))
+ else if (!(new_file = fopen(l_fname, "a")))
return;
if (l_file != stderr)
{
-; $Id: yaz.nsi,v 1.24 2003-09-04 18:18:07 adam Exp $
+; $Id: yaz.nsi,v 1.25 2003-10-09 15:51:36 adam Exp $
-!define VERSION "2.0.4"
+!define VERSION "2.0.5"
Name "YAZ"
Caption "Index Data YAZ ${VERSION} Setup"
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,0,4,1
- PRODUCTVERSION 2,0,4,1
+ FILEVERSION 2,0,5,1
+ PRODUCTVERSION 2,0,5,1
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", "2, 0, 4, 1\0"
+ VALUE "FileVersion", "2, 0, 5, 1\0"
VALUE "InternalName", "YAZ\0"
VALUE "LegalCopyright", "Copyright © 1995-2003 Index Data\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "yaz.rc\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "Index Data YAZ Toolkit\0"
- VALUE "ProductVersion", "2, 0, 4, 1\0"
+ VALUE "ProductVersion", "2, 0, 5, 1\0"
VALUE "SpecialBuild", "\0"
END
END
Summary: Z39.50 Programs
Name: yaz
Version: @VERSION@
-Release: 2
+Release: 1
Requires: libxml2 openssl readline libyaz = %{version}
Copyright: YAZ License
Group: Other