-const char errlog_rcs[] = "$Id: errlog.c,v 1.12 2001/06/09 10:55:28 jongfoster Exp $";
+const char errlog_rcs[] = "$Id: errlog.c,v 1.14 2001/07/19 19:03:48 haroon Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/errlog.c,v $
*
* Revisions :
* $Log: errlog.c,v $
+ * Revision 1.14 2001/07/19 19:03:48 haroon
+ * - Added case for LOG_LEVEL_POPUPS
+ *
+ * Revision 1.13 2001/07/13 13:58:58 oes
+ * - Added case for LOG_LEVEL_DEANIMATE
+ * - Removed all #ifdef PCRS
+ *
* Revision 1.12 2001/06/09 10:55:28 jongfoster
* Changing BUFSIZ ==> BUFFER_SIZE
*
#endif /* ndef _WIN32 */
#include <errno.h>
-/* #include <pthread.h> */
+#ifdef FEATURE_PTHREAD
+#include <pthread.h>
+#endif /* def FEATURE_PTHREAD */
#ifdef _WIN32
#include <windows.h>
}
/* FIXME get current thread id */
- /* this_thread = (long)pthread_self(); */
+#ifdef FEATURE_PTHREAD
+ this_thread = (long)pthread_self();
+#endif /* def FEATURE_PTHREAD */
switch (loglevel)
{
outc = 0;
outbuf[0] = '\0';
break;
+#ifdef KILLPOPUPS
+ case LOG_LEVEL_POPUPS:
+ outc = sprintf(outbuf, "IJB(%d) Kill-Popups: ", this_thread);
+ break;
+#endif /* def KILLPOPUPS */
default:
outc = sprintf(outbuf, "IJB(%d) UNKNOWN LOG TYPE(%d): ", this_thread, loglevel);
break;