From: Adam Dickmeiss Date: Fri, 5 Apr 2002 12:49:51 +0000 (+0000) Subject: WIN32 work (doesn't compile, yet) X-Git-Tag: CHANGELOG~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d1ea2b7f6c07fa9247c4bfa9996981e57b27948c;p=idzebra-moved-to-github.git WIN32 work (doesn't compile, yet) --- diff --git a/index/zebraapi.c b/index/zebraapi.c index f9effec..47f8882 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -2,7 +2,7 @@ * 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 @@ -556,7 +556,7 @@ int zebra_select_databases (ZebraHandle zh, int num_bases, { int i; const char *cp; - size_t len = 0; + int len = 0; char *new_reg = 0; if (num_bases < 1) @@ -595,7 +595,7 @@ int zebra_select_databases (ZebraHandle zh, int num_bases, zh->errCode = 23; return -1; } - if (len != cp - basenames[i] || + if (len != cp1 - basenames[i] || memcmp (basenames[i], new_reg, len)) { zh->errCode = 23; @@ -1152,7 +1152,9 @@ int zebra_commit (ZebraHandle zh) zebra_set_state (zh, 'c', seqno); logf (LOG_LOG, "commit start"); +#ifndef WIN32 sleep (2); +#endif bf_commitExec (bfs); #ifndef WIN32 sync (); diff --git a/win/makefile b/win/makefile index 4bd9aa7..b0ffe69 100644 --- a/win/makefile +++ b/win/makefile @@ -1,12 +1,12 @@ # 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 @@ -182,8 +182,7 @@ ZEBRAIDX_OBJS= \ APITEST_OBJS= \ $(OBJDIR)\apitest.obj -!if $(ZMBOL) -ZMBOLLIB_OBJS= \ +ZEBRALIB_OBJS= \ $(OBJDIR)\isam.obj \ $(OBJDIR)\isamc.obj \ $(OBJDIR)\isamd.obj \ @@ -192,12 +191,7 @@ ZMBOLLIB_OBJS= \ $(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 \ @@ -278,45 +272,44 @@ ALL_OBJS=\ # 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 @@ -378,7 +371,7 @@ clean: -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)