Warning fixes (const char *, (void)).
[cacao.git] / src / toolbox / logging.h
index 74e2f0b6aa1e5240648d31a4a7bef651fe0ae5c1..90270045a504f0434d7df59206766f6292dbd4eb 100644 (file)
@@ -1,10 +1,9 @@
 /* toolbox/logging.h - contains logging functions
 
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-   Institut f. Computersprachen, TU Wien
-   R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
-   S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
-   J. Wenninger
+   Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+   Institut f. Computersprachen - TU Wien
 
    This file is part of CACAO.
 
@@ -27,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: logging.h 1067 2004-05-18 10:25:51Z stefan $
+   $Id: logging.h 1848 2005-01-04 11:35:10Z twisti $
 
 */
 
 
 #include <stdio.h>
 
+#include "vm/global.h"
 
-#define PANICIF(when,txt)  if(when)panic(txt)
 
 #define MAXLOGTEXT 500
 
-/* function prototypes */
+/* function prototypes ********************************************************/
 
-void log_init(char *fname);
-void log_text(char *txt);
-void log_plain(char *txt); /* same as log_text without "LOG: " and newline */
-void log_flush();          /* fflush logfile */
-void log_nl();             /* newline and fflush */
+void log_init(const char *fname);
+void log_text(const char *txt);
 
-void log_cputime();
+/* same as log_text without "LOG: " and newline */
+void log_plain(const char *txt);
 
-void dolog(char *txt, ...);
-void dolog_plain(char *txt, ...); /* same as dolog without "LOG: " and newline */
-void error(char *txt, ...);
-void panic(char *txt);
+/* fflush logfile */
+void log_flush(void);
 
-FILE *get_logfile(); /* return the current logfile */
+/* newline and fflush */
+void log_nl(void);
 
-s8 getcputime();
+void log_cputime(void);
+
+void log_message_class(const char *msg, classinfo *c);
+void log_message_method(const char *msg, methodinfo *m);
+
+void dolog(const char *txt, ...);
+
+/* same as dolog without "LOG: " and newline*/
+void dolog_plain(const char *txt, ...);
+
+void error(const char *txt, ...);
+
+/* XXX this is just a quick hack on darwin */
+#if !defined(__DARWIN__)
+void panic(const char *txt);
+#endif
+
+FILE *get_logfile(void);                        /* return the current logfile */
 
 #endif /* _LOGGING_H */