* Copyright (C) 1995-2002, Index Data
* All rights reserved.
*
- * $Id: zebraapi.c,v 1.53 2002-04-05 08:46:26 adam Exp $
+ * $Id: zebraapi.c,v 1.54 2002-04-05 12:49:51 adam Exp $
*/
#include <assert.h>
{
int i;
const char *cp;
- size_t len = 0;
+ int len = 0;
char *new_reg = 0;
if (num_bases < 1)
zh->errCode = 23;
return -1;
}
- if (len != cp - basenames[i] ||
+ if (len != cp1 - basenames[i] ||
memcmp (basenames[i], new_reg, len))
{
zh->errCode = 23;
zebra_set_state (zh, 'c', seqno);
logf (LOG_LOG, "commit start");
+#ifndef WIN32
sleep (2);
+#endif
bf_commitExec (bfs);
#ifndef WIN32
sync ();
# Z'mbol/Zebra makefile for MS NMAKE
-# $Id: makefile,v 1.9 2002-03-21 10:31:54 adam Exp $
+# $Id: makefile,v 1.10 2002-04-05 12:49:51 adam Exp $
###########################################################
############### Parameters
###########################################################
DEBUG=1 # 0 for release, 1 for debug
-ZMBOL=1
+ZMBOL=0
default: all
APITEST_OBJS= \
$(OBJDIR)\apitest.obj
-!if $(ZMBOL)
-ZMBOLLIB_OBJS= \
+ZEBRALIB_OBJS= \
$(OBJDIR)\isam.obj \
$(OBJDIR)\isamc.obj \
$(OBJDIR)\isamd.obj \
$(OBJDIR)\merge.obj \
$(OBJDIR)\merge-d.obj \
$(OBJDIR)\physical.obj \
- $(OBJDIR)\rootblk.obj
-!else
-ZMBOLLIB_OBJS=
-!endif
-ZEBRALIB_OBJS= \
- $(ZMBOLLIB_OBJS) \
+ $(OBJDIR)\rootblk.obj \
$(OBJDIR)\zebra-lock.obj \
$(OBJDIR)\attribute.obj \
$(OBJDIR)\bfile.obj \
# source files. Funny way of doing it, but it works.
{$(SRCDIR)}.cpp{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(SRCDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
# ZebraLib
{$(INDEXDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(BFILEDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(DFADIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(DICTDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(ISAMSDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(ISAMDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(ISAMCDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(RECCTRLDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(RSETDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(UTILDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
+ $(CPP) $(COPT) $<
{$(APITESTDIR)}.c{$(OBJDIR)}.obj:
- @$(CPP) $(COPT) $<
-
+ $(CPP) $(COPT) $<
###########################################################
############### Linking
-del $(OBJDIR)\*.sbr
-del $(BINDIR)\*.exe
-del $(TMPDIR)\*.
- -del $(ZEBRALIB)
+ -del $(LIBDIR)\*.lib
########### check directories and create if needed
dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)