* All rights reserved.
*
* $Log: zebraapi.c,v $
- * Revision 1.31 2000-04-05 10:07:02 adam
+ * Revision 1.32 2000-04-19 14:35:59 adam
+ * WIN32 update (this version is known not to work on Windows).
+ *
+ * Revision 1.31 2000/04/05 10:07:02 adam
* Minor zebra compile fix.
*
* Revision 1.30 2000/04/05 09:49:35 adam
assert (zs);
if (zs->stop_flag)
- {
- zh->errCode = 1019;
return 0;
- }
zh = (ZebraHandle) xmalloc (sizeof(*zh));
#if HAVE_PTHREAD_H
pthread_mutex_init (&p->mutex, 0);
#endif
+#ifdef WIN32
+ InitializeCriticalSection (&p->mutex);
+#endif
return 0;
}
#if HAVE_PTHREAD_H
pthread_mutex_destroy (&p->mutex);
#endif
+#ifdef WIN32
+ DeleteCriticalSection (&p->mutex);
+#endif
return 0;
}
#if HAVE_PTHREAD_H
pthread_mutex_lock (&p->mutex);
#endif
+#ifdef WIN32
+ EnterCriticalSection (&p->mutex);
+#endif
return 0;
}
#if HAVE_PTHREAD_H
pthread_mutex_unlock (&p->mutex);
#endif
+#ifdef WIN32
+ LeaveCriticalSection (&p->mutex);
+#endif
return 0;
}
# Z'mbol makefile for MS NMAKE
-# $Id: makefile,v 1.3 2000-04-17 14:22:00 adam Exp $
+# $Id: makefile,v 1.4 2000-04-19 14:35:59 adam Exp $
###########################################################
############### Parameters
# need to be specified, though
ZSERVER_OBJS= \
+ $(OBJDIR)\kinput.obj \
$(OBJDIR)\zserver.obj
ZEBRAIDX_OBJS= \
$(OBJDIR)\apitest.obj
ZEBRALIB_OBJS= \
+ $(OBJDIR)\zebra-lock.obj \
$(OBJDIR)\attribute.obj \
$(OBJDIR)\bfile.obj \
$(OBJDIR)\bset.obj \
###########################################################
#
# $Log: makefile,v $
-# Revision 1.3 2000-04-17 14:22:00 adam
+# Revision 1.4 2000-04-19 14:35:59 adam
+# WIN32 update (this version is known not to work on Windows).
+#
+# Revision 1.3 2000/04/17 14:22:00 adam
# WIN32 update.
#
# Revision 1.2 2000/02/08 12:34:17 adam