Renamed loging to logging
authorstefan <none@none>
Tue, 18 May 2004 10:25:51 +0000 (10:25 +0000)
committerstefan <none@none>
Tue, 18 May 2004 10:25:51 +0000 (10:25 +0000)
76 files changed:
builtin.c
builtin.h
headers.c
jit/codegen.inc
jit/inline.c
jit/jit.c
jit/loop/analyze.c
jit/loop/loop.c
jit/parse.c
jit/parseRT.h
jit/stack.c
jit/typecheck.c
jni.c
loader.c
main.c
mm/boehm.c
nat/Constructor.c
nat/FileChannelImpl.c
nat/Method.c
nat/Proxy.c
nat/Runtime.c
nat/Thread.c
nat/VMClass.c
nat/VMClassLoader.c
nat/VMObject.c
nat/VMObjectStreamClass.c
nat/VMSecurityManager.c
nat/VMSystem.c
native.c
src/cacao/cacao.c
src/cacaoh/headers.c
src/mm/boehm.c
src/mm/memory.c
src/native/jni.c
src/native/native.c
src/native/vm/Constructor.c
src/native/vm/FileChannelImpl.c
src/native/vm/Method.c
src/native/vm/Proxy.c
src/native/vm/VMClass.c
src/native/vm/VMClassLoader.c
src/native/vm/VMObject.c
src/native/vm/VMObjectStreamClass.c
src/native/vm/VMRuntime.c
src/native/vm/VMSecurityManager.c
src/native/vm/VMSystem.c
src/native/vm/VMThread.c
src/threads/green/threads.c
src/threads/native/threads.c
src/toolbox/Makefile.am
src/toolbox/logging.c [new file with mode: 0644]
src/toolbox/logging.h [new file with mode: 0644]
src/vm/builtin.c
src/vm/builtin.h
src/vm/jit/codegen.inc
src/vm/jit/inline/inline.c
src/vm/jit/inline/parseRT.h
src/vm/jit/jit.c
src/vm/jit/loop/analyze.c
src/vm/jit/loop/loop.c
src/vm/jit/parse.c
src/vm/jit/stack.c
src/vm/jit/verify/typecheck.c
src/vm/jit/verify/typeinfo.c
src/vm/loader.c
src/vm/tables.c
tables.c
threads/nativethread.c
threads/thread.c
toolbox/Makefile.am
toolbox/logging.c [new file with mode: 0644]
toolbox/logging.h [new file with mode: 0644]
toolbox/loging.c [deleted file]
toolbox/loging.h [deleted file]
toolbox/memory.c
typeinfo.c

index 4e96a2d87b672a8fc098b14d7376d7f6cfb7e8cb..c205a4101fe90d547d8e3f9144dc73e9ff5bf132 100644 (file)
--- a/builtin.c
+++ b/builtin.c
@@ -34,7 +34,7 @@
    calls instead of machine instructions, using the C calling
    convention.
 
-   $Id: builtin.c 1027 2004-04-26 15:53:01Z twisti $
+   $Id: builtin.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -52,7 +52,7 @@
 #include "mm/boehm.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "nat/java_lang_Cloneable.h"
 #include "nat/java_lang_VMObject.h"
index 4ecbac38bdd8b19b608a097f45d844a5a2765058..111b8cc7c966f4106fcf6fab7858651022c564b7 100644 (file)
--- a/builtin.h
+++ b/builtin.h
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: builtin.h 1027 2004-04-26 15:53:01Z twisti $
+   $Id: builtin.h 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #define _BUILTIN_H
 
 #include "config.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 
 
index 03f24011eaa7ba9002f2be7d84d1a5880c16df8a..0a27f1705bb52e81bef08d58a4a704de69320ded 100644 (file)
--- a/headers.c
+++ b/headers.c
@@ -29,7 +29,7 @@
    Changes: Mark Probst
             Philipp Tomsich
 
-   $Id: headers.c 1053 2004-05-05 12:27:04Z stefan $
+   $Id: headers.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "mm/boehm.h"
 #include "toolbox/chain.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "nat/java_lang_String.h"
 
 
index 7db7d61eb64f16f45c71929e14fd0248d62f2bed..7c5d65df96542d7e95eecd2f81715096a94fd30e 100644 (file)
    memory. All functions writing values into the data area return the offset
    relative the begin of the code area (start of procedure).   
 
-   $Id: codegen.inc 1049 2004-05-05 11:43:11Z stefan $
+   $Id: codegen.inc 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
 
 #include <string.h>
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 
 
index f4e98c5fe8ab7c51a200294c801d8d057b1b530f..a5bd6e385baa0328cba9e354fa7d4392dbc72d8a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Dieter Thuernbeck
 
-   $Id: inline.c 1009 2004-03-31 22:44:07Z edwin $
+   $Id: inline.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -39,7 +39,7 @@
 #include "parse.h"
 #include "loader.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 6516e4bd928e3fc8b8baeb94d5869424bd568a9d..f9886b9c8f5634d53c70d991b0f41c7168fbbcad 100644 (file)
--- a/jit/jit.c
+++ b/jit/jit.c
@@ -29,7 +29,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: jit.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: jit.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -55,7 +55,7 @@
 #include "loop/loop.h"
 #include "loop/graph.h"
 #include "loop/analyze.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 541ae616770814ad47de6ed0e10a9a2c69f83d69..15f9aa283f30a6efa080e6120a29a1eccca01541 100644 (file)
@@ -32,7 +32,7 @@
    bounds are never violated. The function to call is
    optimize_loops().
 
-   $Id: analyze.c 665 2003-11-21 18:36:43Z jowenn $
+   $Id: analyze.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "loop.h"
 #include "graph.h"
 #include "tracing.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
  
index d122cbcc3363aa32d04dbacfed6d3b8941ea365b..cce76ea46e0bc8a8df838a31367981fa81c02457 100644 (file)
@@ -30,7 +30,7 @@
    algorithm that uses dominator trees (found eg. in modern compiler
    implementation by a.w. appel)
 
-   $Id: loop.c 665 2003-11-21 18:36:43Z jowenn $
+   $Id: loop.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -42,7 +42,7 @@
 #include "loop.h"
 #include "graph.h"
 #include "tracing.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 /* GLOBAL VARS                                                                                                                         */
index 3701403f5f50c84eb87bd7c59cce144ed1bf00b9..ccaf00281c43117fe41299d9bdea1da8b102ad2e 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Carolyn Oates
             Edwin Steiner
 
-   $Id: parse.c 1045 2004-04-26 19:17:27Z twisti $
+   $Id: parse.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "native.h"
 #include "loader.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 
 
 /* data about the currently parsed method */
index 4679e9ea342d3ca9d8d7502e82e32be0d85e05a3..0d322e275cfcd90e6bd721b332d3d0b919ba94c7 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Carolyn Oates
 
-   $Id: parseRT.h 907 2004-01-29 13:20:05Z carolyn $
+   $Id: parseRT.h 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "sets.h"
 
 #include "tables.h"
-#include"toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 #include "types.h"
index 99fa4c8d078a9061cf1559b411a0c4f4a008bf6b..dd0db0bf561a147d44c3b2a9de8008e2e8930a03 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: stack.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: stack.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -44,7 +44,7 @@
 #include "reg.h"
 #include "tables.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 801b4c097680862b36720245c233664eb2d4a1b5..82cce1556549353c0ff8c864d48417dfe192809a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typecheck.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: typecheck.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "tables.h"
 #include "loader.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 /****************************************************************************/
diff --git a/jni.c b/jni.c
index 40826da3f694c5c089f7e73ffeb2996e1f8e484d..da6435e187e303df980c58ebc0800c52a22693bb 100644 (file)
--- a/jni.c
+++ b/jni.c
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: jni.c 1030 2004-04-26 16:03:01Z twisti $
+   $Id: jni.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -42,7 +42,7 @@
 #include "native.h"
 #include "builtin.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "nat/java_lang_Byte.h"
 #include "nat/java_lang_Character.h"
index 96402ab61db3f6e2e0355664bec6c0eec58a5a00..55449bd2ac723c81181539363eacced7a2cb0197 100644 (file)
--- a/loader.c
+++ b/loader.c
@@ -30,7 +30,7 @@
             Mark Probst
                        Edwin Steiner
 
-   $Id: loader.c 1058 2004-05-16 13:14:41Z twisti $
+   $Id: loader.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "jit.h"
 #include "asmpart.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
 #include "nat/java_lang_Throwable.h"
diff --git a/main.c b/main.c
index 3365bf48cdb21c71a5811d11b7ddfcd1bd903367..a593d24a461cf5f5891702c52f7f262f44aee2ec 100644 (file)
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: main.c 1032 2004-04-26 16:09:10Z twisti $
+   $Id: main.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -54,7 +54,7 @@
 #include "native.h"
 #include "mm/boehm.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "parseRTstats.h"
 #include "nat/java_lang_Throwable.h"
index 51e747bef3ef1cbc4692806c3c85556f04781569..e8a2c09463aa4578af87e68eceeacaf514bd760f 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Stefan Ring
 
-   $Id: boehm.c 1026 2004-04-25 21:45:48Z twisti $
+   $Id: boehm.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "asmpart.h"
 #include "builtin.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "gc.h"
 
 
index bb8f8f6a6a0031b738cd19751373df6ac4aa06a7..b7aecfc221c28a4df0a2a9eb06adc7b68809f693 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: Constructor.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: Constructor.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "native.h"
 #include "tables.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
 #include "java_lang_reflect_Constructor.h"
index d77b161ea9e478440092d15596a860f1e25a7a31..ffce92421b26a788ae7accc7b55301191422564b 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: FileChannelImpl.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: FileChannelImpl.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include <stdlib.h>
 #include "jni.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "gnu_classpath_RawData.h"
 #include "java_nio_channels_FileChannelImpl.h"
 
index fc47b9abbe7d5582fdc86df924dbf1bc474ce53d..159b008df8b65d0f30b99a747b0534a6f7a5a75d 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: Method.c 940 2004-03-06 14:04:15Z jowenn $
+   $Id: Method.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "types.h"
 #include "builtin.h"
 #include "native.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
 #include "java_lang_reflect_Method.h"
index 16f1cc25526c9f09aa327dfda007ef84bae716ef..d4742a37937857fde348c3b04343529f05760456 100644 (file)
 
    Changes: Joseph Wenninger
 
-   $Id: Proxy.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: Proxy.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
 
 #include "jni.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 #include "java_lang_ClassLoader.h"
 
index ea8f771c40ac038ef069135dc8195bac36ab00e3..83de35979ee3ea9bdec59bdca0d562ccebcc8bed 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Joseph Wenninger
             Christian Thalinger
 
-   $Id: Runtime.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: Runtime.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "tables.h"
 #include "asmpart.h"
 #include "mm/boehm.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_io_File.h"
 #include "java_lang_String.h"
index ae83f5f5bbbbb0adbc24110703546d05e5fd0783..702bfe30421982efa208aefa7a708314ec3f820c 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: Thread.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: Thread.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "loader.h"
 #include "tables.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_ThreadGroup.h"
 #include "java_lang_Object.h"         /* needed for java_lang_Thread.h */
 #include "java_lang_Throwable.h"      /* needed for java_lang_Thread.h */
index 6bad29b20016f472277f8c6f603d995d1de88696..9209ab1630c22cde63b2e1542030f1ba64a6c8e2 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMClass.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMClass.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "loader.h"
 #include "native.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
index 208af3bf4a4055e689077926cd4e60aa32d050f5..23a83c4f91cb6ddf9ff58de141e558f174c1d363 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMClassLoader.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMClassLoader.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #include "loader.h"
 #include "native.h"
 #include "builtin.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 #include "java_lang_String.h"
 #include "java_lang_ClassLoader.h"
index 865318ba6735b5f8dd1dd28f68df202ca7e8aebb..174ef4566f4f2d8686429463167b9c74f79cf4b0 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMObject.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMObject.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "native.h"
 #include "mm/boehm.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_lang_Cloneable.h"
 #include "java_lang_Object.h"
index 8d2b97e4ab34aeefe257b8cb57fa1793f67babba..476d015cc8994cbdc149bfd0baac53b5feb54b9a 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMObjectStreamClass.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: VMObjectStreamClass.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include "jni.h"
 #include "types.h"
 #include "loader.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 
 
index ed5207e17baee4787f7e91c9bd9ecd0eac26553f..dfcb05ac7154c782d0cc679f1dc1c74b85bef685 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMSecurityManager.c 977 2004-03-25 18:37:52Z twisti $
+   $Id: VMSecurityManager.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #include "builtin.h"
 #include "native.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_ClassLoader.h"
 
 
index 15b741563b724b375b006d366716dd065f6f2c18..00a9d38954f9d397fc295699c7797a7c18bd6804 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMSystem.c 1003 2004-03-30 22:56:04Z twisti $
+   $Id: VMSystem.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -38,7 +38,7 @@
 #include "jni.h"
 #include "builtin.h"
 #include "native.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 
 
index 1c7c816e47c94bec6fa27a15f9765cee5d470cc0..785ba73721aeaab8132e4b9dca0bf2ebd74c4363 100644 (file)
--- a/native.c
+++ b/native.c
@@ -31,7 +31,7 @@
    The .hh files created with the header file generator are all
    included here as are the C functions implementing these methods.
 
-   $Id: native.c 1033 2004-04-26 16:18:56Z twisti $
+   $Id: native.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -56,7 +56,7 @@
 #include "tables.h"
 #include "loader.h"
 #include "jni.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "threads/thread.h"
 #include "threads/threadio.h"
index 03737d8941d513e219787d3daa691b151d88e6ff..6ffe2821b73111fa2ad934752aa0116f8fabed0d 100644 (file)
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: cacao.c 1032 2004-04-26 16:09:10Z twisti $
+   $Id: cacao.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -54,7 +54,7 @@
 #include "native.h"
 #include "mm/boehm.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "parseRTstats.h"
 #include "nat/java_lang_Throwable.h"
index 03f24011eaa7ba9002f2be7d84d1a5880c16df8a..0a27f1705bb52e81bef08d58a4a704de69320ded 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Mark Probst
             Philipp Tomsich
 
-   $Id: headers.c 1053 2004-05-05 12:27:04Z stefan $
+   $Id: headers.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "mm/boehm.h"
 #include "toolbox/chain.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "nat/java_lang_String.h"
 
 
index 51e747bef3ef1cbc4692806c3c85556f04781569..e8a2c09463aa4578af87e68eceeacaf514bd760f 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Stefan Ring
 
-   $Id: boehm.c 1026 2004-04-25 21:45:48Z twisti $
+   $Id: boehm.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "asmpart.h"
 #include "builtin.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "gc.h"
 
 
index c0c937b4cd7746de4a6b1845f0de1c4aff9ee8d8..4766f4c780655049ab5969084bfb4a0cffb89188 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: memory.c 799 2003-12-16 22:30:41Z edwin $
+   $Id: memory.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -39,7 +39,7 @@
 #include <unistd.h>
 
 #include "global.h"
-#include "loging.h"
+#include "logging.h"
 #include "memory.h"
 
 
index 40826da3f694c5c089f7e73ffeb2996e1f8e484d..da6435e187e303df980c58ebc0800c52a22693bb 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: jni.c 1030 2004-04-26 16:03:01Z twisti $
+   $Id: jni.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -42,7 +42,7 @@
 #include "native.h"
 #include "builtin.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "nat/java_lang_Byte.h"
 #include "nat/java_lang_Character.h"
index 1c7c816e47c94bec6fa27a15f9765cee5d470cc0..785ba73721aeaab8132e4b9dca0bf2ebd74c4363 100644 (file)
@@ -31,7 +31,7 @@
    The .hh files created with the header file generator are all
    included here as are the C functions implementing these methods.
 
-   $Id: native.c 1033 2004-04-26 16:18:56Z twisti $
+   $Id: native.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -56,7 +56,7 @@
 #include "tables.h"
 #include "loader.h"
 #include "jni.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "threads/thread.h"
 #include "threads/threadio.h"
index bb8f8f6a6a0031b738cd19751373df6ac4aa06a7..b7aecfc221c28a4df0a2a9eb06adc7b68809f693 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: Constructor.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: Constructor.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "native.h"
 #include "tables.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
 #include "java_lang_reflect_Constructor.h"
index d77b161ea9e478440092d15596a860f1e25a7a31..ffce92421b26a788ae7accc7b55301191422564b 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: FileChannelImpl.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: FileChannelImpl.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include <stdlib.h>
 #include "jni.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "gnu_classpath_RawData.h"
 #include "java_nio_channels_FileChannelImpl.h"
 
index fc47b9abbe7d5582fdc86df924dbf1bc474ce53d..159b008df8b65d0f30b99a747b0534a6f7a5a75d 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: Method.c 940 2004-03-06 14:04:15Z jowenn $
+   $Id: Method.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "types.h"
 #include "builtin.h"
 #include "native.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
 #include "java_lang_reflect_Method.h"
index 16f1cc25526c9f09aa327dfda007ef84bae716ef..d4742a37937857fde348c3b04343529f05760456 100644 (file)
 
    Changes: Joseph Wenninger
 
-   $Id: Proxy.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: Proxy.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
 
 #include "jni.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 #include "java_lang_ClassLoader.h"
 
index 6bad29b20016f472277f8c6f603d995d1de88696..9209ab1630c22cde63b2e1542030f1ba64a6c8e2 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMClass.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMClass.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "loader.h"
 #include "native.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_lang_Object.h"
 #include "java_lang_Class.h"
index 208af3bf4a4055e689077926cd4e60aa32d050f5..23a83c4f91cb6ddf9ff58de141e558f174c1d363 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMClassLoader.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMClassLoader.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #include "loader.h"
 #include "native.h"
 #include "builtin.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 #include "java_lang_String.h"
 #include "java_lang_ClassLoader.h"
index 865318ba6735b5f8dd1dd28f68df202ca7e8aebb..174ef4566f4f2d8686429463167b9c74f79cf4b0 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMObject.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMObject.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "native.h"
 #include "mm/boehm.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_lang_Cloneable.h"
 #include "java_lang_Object.h"
index 8d2b97e4ab34aeefe257b8cb57fa1793f67babba..476d015cc8994cbdc149bfd0baac53b5feb54b9a 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMObjectStreamClass.c 873 2004-01-11 20:59:29Z twisti $
+   $Id: VMObjectStreamClass.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include "jni.h"
 #include "types.h"
 #include "loader.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Class.h"
 
 
index 6243b846cec7e4926fa369c6da3c20db59aa997d..df823e0853a32b8e54799e37263250528d2c56f5 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Joseph Wenninger
             Christian Thalinger
 
-   $Id: VMRuntime.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMRuntime.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "tables.h"
 #include "asmpart.h"
 #include "mm/boehm.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "java_io_File.h"
 #include "java_lang_String.h"
index ed5207e17baee4787f7e91c9bd9ecd0eac26553f..dfcb05ac7154c782d0cc679f1dc1c74b85bef685 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMSecurityManager.c 977 2004-03-25 18:37:52Z twisti $
+   $Id: VMSecurityManager.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #include "builtin.h"
 #include "native.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_ClassLoader.h"
 
 
index 15b741563b724b375b006d366716dd065f6f2c18..00a9d38954f9d397fc295699c7797a7c18bd6804 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMSystem.c 1003 2004-03-30 22:56:04Z twisti $
+   $Id: VMSystem.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -38,7 +38,7 @@
 #include "jni.h"
 #include "builtin.h"
 #include "native.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_Object.h"
 
 
index a35f046b8d816f149dc6eb19adb476aaa44a23fb..a6f266f0f66dea12c41c9ade276fb8a4beae53ba 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: VMThread.c 1042 2004-04-26 17:12:47Z twisti $
+   $Id: VMThread.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -40,7 +40,7 @@
 #include "loader.h"
 #include "tables.h"
 #include "threads/thread.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "java_lang_ThreadGroup.h"
 #include "java_lang_Object.h"         /* needed for java_lang_Thread.h */
 #include "java_lang_Throwable.h"      /* needed for java_lang_Thread.h */
index 4a7b37e5c9aaca6dd45d9d09e635e3f8f3a4e453..3fd3ab1c2fb2d774833f3b5cd870586f18e51625 100644 (file)
@@ -34,7 +34,7 @@
 #include "loader.h"
 #include "builtin.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "toolbox/avl.h"
 
index 914092287a18d27c7bbf16a2ad92e88813d93a8c..4309ca54d9fd07635183c44fe88677c6d619e567 100644 (file)
@@ -21,7 +21,7 @@
 #include "loader.h"
 #include "builtin.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "toolbox/avl.h"
 #include "mm/boehm.h"
index 9a8f17084081c8f45323e67187953ea86362079f..0a225b779e0bcfc62f0ab621c427972487bcfbbd 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-# $Id: Makefile.am 882 2004-01-14 12:37:05Z stefan $
+# $Id: Makefile.am 1067 2004-05-18 10:25:51Z stefan $
 
 noinst_LIBRARIES = libtoolbox.a
 
@@ -9,8 +9,8 @@ libtoolbox_a_SOURCES = \
        avl.h \
        memory.c \
        memory.h \
-       loging.c \
-       loging.h \
+       logging.c \
+       logging.h \
        chain.c \
        chain.h \
        tree.c \
diff --git a/src/toolbox/logging.c b/src/toolbox/logging.c
new file mode 100644 (file)
index 0000000..017850a
--- /dev/null
@@ -0,0 +1,239 @@
+/* toolbox/logging.c - 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
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+   Contact: cacao@complang.tuwien.ac.at
+
+   Authors: Reinhard Grafl
+
+   $Id: logging.c 1067 2004-05-18 10:25:51Z stefan $
+
+*/
+
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+
+#include "global.h"
+#include "logging.h"
+
+
+/***************************************************************************
+                        LOG FILE HANDLING 
+***************************************************************************/
+
+FILE *logfile = NULL;
+
+
+
+void log_init(char *fname)
+{
+       if (fname) {
+               if (fname[0]) {
+                       logfile = fopen(fname, "w");
+               }
+       }
+}
+
+
+/*********************** Function: dolog ************************************
+
+Writes logtext to the protocol file (if opened) or to stdout.
+
+**************************************************************************/
+
+void dolog(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "%s\n",logtext);
+               fflush(logfile);
+
+       } else {
+               fprintf(stdout,"LOG: %s\n",logtext);
+               fflush(stdout);
+       }
+}
+
+
+/******************** Function: dolog_plain *******************************
+
+Writes logtext to the protocol file (if opened) or to stdout.
+
+**************************************************************************/
+
+void dolog_plain(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "%s",logtext);
+               fflush(logfile);
+
+       } else {
+               fprintf(stdout,"%s",logtext);
+               fflush(stdout);
+       }
+}
+
+
+/********************* Function: log_text ********************************/
+
+void log_text(char *text)
+{
+       dolog("%s", text);
+}
+
+
+/******************** Function: log_plain *******************************/
+
+void log_plain(char *text)
+{
+       dolog_plain("%s", text);
+}
+
+
+/****************** Function: get_logfile *******************************/
+
+FILE *get_logfile()
+{
+       return (logfile) ? logfile : stdout;
+}
+
+
+/****************** Function: log_flush *********************************/
+
+void log_flush()
+{
+       fflush(get_logfile());
+}
+
+
+/********************* Function: log_nl *********************************/
+
+void log_nl()
+{
+       log_plain("\n");
+       fflush(get_logfile());
+}
+
+
+/********************* Function: log_cputime ****************************/
+
+void log_cputime()
+{
+       s8 t;
+       int sec, usec;
+       char logtext[MAXLOGTEXT];
+
+       t = getcputime();
+       sec = t / 1000000;
+       usec = t % 1000000;
+
+       sprintf(logtext, "Total CPU usage: %d seconds and %d milliseconds",
+                       sec, usec / 1000);
+       log_text(logtext);
+}
+
+
+/************************** Function: error *******************************
+
+Like dolog(), but terminates the program immediately.
+
+**************************************************************************/
+
+void error(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "ERROR: %s\n", logtext);
+       }
+
+       fprintf(stderr, "ERROR: %s\n", logtext);
+       exit(10);
+}
+
+
+/************************ Function: panic (txt) ****************************
+
+  Like error(), takes the text to output as an argument
+
+***************************************************************************/
+
+void panic(char *txt)
+{
+       error("%s", txt);
+}
+
+
+/********************** Function: getcputime ********************************
+
+       Returns the used CPU time in microseconds
+       
+****************************************************************************/
+
+s8 getcputime()
+{
+       struct rusage ru;
+       int sec, usec;
+
+       getrusage(RUSAGE_SELF, &ru);
+       sec = ru.ru_utime.tv_sec + ru.ru_stime.tv_sec;
+       usec = ru.ru_utime.tv_usec + ru.ru_stime.tv_usec;
+
+       return sec * 1000000 + usec;
+}
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
diff --git a/src/toolbox/logging.h b/src/toolbox/logging.h
new file mode 100644 (file)
index 0000000..74e2f0b
--- /dev/null
@@ -0,0 +1,78 @@
+/* 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
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+   Contact: cacao@complang.tuwien.ac.at
+
+   Authors: Reinhard Grafl
+
+   $Id: logging.h 1067 2004-05-18 10:25:51Z stefan $
+
+*/
+
+
+#ifndef _LOGGING_H
+#define _LOGGING_H
+
+#include <stdio.h>
+
+
+#define PANICIF(when,txt)  if(when)panic(txt)
+
+#define MAXLOGTEXT 500
+
+/* 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_cputime();
+
+void dolog(char *txt, ...);
+void dolog_plain(char *txt, ...); /* same as dolog without "LOG: " and newline */
+void error(char *txt, ...);
+void panic(char *txt);
+
+FILE *get_logfile(); /* return the current logfile */
+
+s8 getcputime();
+
+#endif /* _LOGGING_H */
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
index 4e96a2d87b672a8fc098b14d7376d7f6cfb7e8cb..c205a4101fe90d547d8e3f9144dc73e9ff5bf132 100644 (file)
@@ -34,7 +34,7 @@
    calls instead of machine instructions, using the C calling
    convention.
 
-   $Id: builtin.c 1027 2004-04-26 15:53:01Z twisti $
+   $Id: builtin.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -52,7 +52,7 @@
 #include "mm/boehm.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "nat/java_lang_Cloneable.h"
 #include "nat/java_lang_VMObject.h"
index 4ecbac38bdd8b19b608a097f45d844a5a2765058..111b8cc7c966f4106fcf6fab7858651022c564b7 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: builtin.h 1027 2004-04-26 15:53:01Z twisti $
+   $Id: builtin.h 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -37,7 +37,7 @@
 #define _BUILTIN_H
 
 #include "config.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 
 
index 7db7d61eb64f16f45c71929e14fd0248d62f2bed..7c5d65df96542d7e95eecd2f81715096a94fd30e 100644 (file)
    memory. All functions writing values into the data area return the offset
    relative the begin of the code area (start of procedure).   
 
-   $Id: codegen.inc 1049 2004-05-05 11:43:11Z stefan $
+   $Id: codegen.inc 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
 
 #include <string.h>
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 
 
index f4e98c5fe8ab7c51a200294c801d8d057b1b530f..a5bd6e385baa0328cba9e354fa7d4392dbc72d8a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Dieter Thuernbeck
 
-   $Id: inline.c 1009 2004-03-31 22:44:07Z edwin $
+   $Id: inline.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -39,7 +39,7 @@
 #include "parse.h"
 #include "loader.h"
 #include "tables.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 4679e9ea342d3ca9d8d7502e82e32be0d85e05a3..0d322e275cfcd90e6bd721b332d3d0b919ba94c7 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Carolyn Oates
 
-   $Id: parseRT.h 907 2004-01-29 13:20:05Z carolyn $
+   $Id: parseRT.h 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "sets.h"
 
 #include "tables.h"
-#include"toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 #include "types.h"
index 6516e4bd928e3fc8b8baeb94d5869424bd568a9d..f9886b9c8f5634d53c70d991b0f41c7168fbbcad 100644 (file)
@@ -29,7 +29,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: jit.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: jit.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -55,7 +55,7 @@
 #include "loop/loop.h"
 #include "loop/graph.h"
 #include "loop/analyze.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 541ae616770814ad47de6ed0e10a9a2c69f83d69..15f9aa283f30a6efa080e6120a29a1eccca01541 100644 (file)
@@ -32,7 +32,7 @@
    bounds are never violated. The function to call is
    optimize_loops().
 
-   $Id: analyze.c 665 2003-11-21 18:36:43Z jowenn $
+   $Id: analyze.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -45,7 +45,7 @@
 #include "loop.h"
 #include "graph.h"
 #include "tracing.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
  
index d122cbcc3363aa32d04dbacfed6d3b8941ea365b..cce76ea46e0bc8a8df838a31367981fa81c02457 100644 (file)
@@ -30,7 +30,7 @@
    algorithm that uses dominator trees (found eg. in modern compiler
    implementation by a.w. appel)
 
-   $Id: loop.c 665 2003-11-21 18:36:43Z jowenn $
+   $Id: loop.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -42,7 +42,7 @@
 #include "loop.h"
 #include "graph.h"
 #include "tracing.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 /* GLOBAL VARS                                                                                                                         */
index 3701403f5f50c84eb87bd7c59cce144ed1bf00b9..ccaf00281c43117fe41299d9bdea1da8b102ad2e 100644 (file)
@@ -29,7 +29,7 @@
    Changes: Carolyn Oates
             Edwin Steiner
 
-   $Id: parse.c 1045 2004-04-26 19:17:27Z twisti $
+   $Id: parse.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "native.h"
 #include "loader.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 
 
 /* data about the currently parsed method */
index 99fa4c8d078a9061cf1559b411a0c4f4a008bf6b..dd0db0bf561a147d44c3b2a9de8008e2e8930a03 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Edwin Steiner
 
-   $Id: stack.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: stack.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -44,7 +44,7 @@
 #include "reg.h"
 #include "tables.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 801b4c097680862b36720245c233664eb2d4a1b5..82cce1556549353c0ff8c864d48417dfe192809a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typecheck.c 1038 2004-04-26 16:41:30Z twisti $
+   $Id: typecheck.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -41,7 +41,7 @@
 #include "tables.h"
 #include "loader.h"
 #include "types.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 /****************************************************************************/
index 6fdbc2274fcf802b2dbd69caec0571d98749bb0f..bc3d87163ce09e4cdf46251af99c2bffc02f0d7a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typeinfo.c 1035 2004-04-26 16:26:35Z twisti $
+   $Id: typeinfo.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include "typeinfo.h"
 #include "tables.h"
 #include "loader.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "jit/jit.h" /* XXX move typeinfo.* into jit/ */
 
index 96402ab61db3f6e2e0355664bec6c0eec58a5a00..55449bd2ac723c81181539363eacced7a2cb0197 100644 (file)
@@ -30,7 +30,7 @@
             Mark Probst
                        Edwin Steiner
 
-   $Id: loader.c 1058 2004-05-16 13:14:41Z twisti $
+   $Id: loader.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -48,7 +48,7 @@
 #include "jit.h"
 #include "asmpart.h"
 #include "toolbox/memory.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
 #include "nat/java_lang_Throwable.h"
index 537d8e88d4faf40ffd8e06979168dd837ac96b49..96891cbee54942bff3727095705e52fa1bf5c3ef 100644 (file)
@@ -35,7 +35,7 @@
        - the heap
        - additional support functions
 
-   $Id: tables.c 1034 2004-04-26 16:20:33Z twisti $
+   $Id: tables.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -54,7 +54,7 @@
 #include "asmpart.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 537d8e88d4faf40ffd8e06979168dd837ac96b49..96891cbee54942bff3727095705e52fa1bf5c3ef 100644 (file)
--- a/tables.c
+++ b/tables.c
@@ -35,7 +35,7 @@
        - the heap
        - additional support functions
 
-   $Id: tables.c 1034 2004-04-26 16:20:33Z twisti $
+   $Id: tables.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -54,7 +54,7 @@
 #include "asmpart.h"
 #include "threads/thread.h"
 #include "threads/locks.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 
 
index 914092287a18d27c7bbf16a2ad92e88813d93a8c..4309ca54d9fd07635183c44fe88677c6d619e567 100644 (file)
@@ -21,7 +21,7 @@
 #include "loader.h"
 #include "builtin.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "toolbox/avl.h"
 #include "mm/boehm.h"
index 4a7b37e5c9aaca6dd45d9d09e635e3f8f3a4e453..3fd3ab1c2fb2d774833f3b5cd870586f18e51625 100644 (file)
@@ -34,7 +34,7 @@
 #include "loader.h"
 #include "builtin.h"
 #include "asmpart.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "toolbox/avl.h"
 
index 9a8f17084081c8f45323e67187953ea86362079f..0a225b779e0bcfc62f0ab621c427972487bcfbbd 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-# $Id: Makefile.am 882 2004-01-14 12:37:05Z stefan $
+# $Id: Makefile.am 1067 2004-05-18 10:25:51Z stefan $
 
 noinst_LIBRARIES = libtoolbox.a
 
@@ -9,8 +9,8 @@ libtoolbox_a_SOURCES = \
        avl.h \
        memory.c \
        memory.h \
-       loging.c \
-       loging.h \
+       logging.c \
+       logging.h \
        chain.c \
        chain.h \
        tree.c \
diff --git a/toolbox/logging.c b/toolbox/logging.c
new file mode 100644 (file)
index 0000000..017850a
--- /dev/null
@@ -0,0 +1,239 @@
+/* toolbox/logging.c - 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
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+   Contact: cacao@complang.tuwien.ac.at
+
+   Authors: Reinhard Grafl
+
+   $Id: logging.c 1067 2004-05-18 10:25:51Z stefan $
+
+*/
+
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+
+#include "global.h"
+#include "logging.h"
+
+
+/***************************************************************************
+                        LOG FILE HANDLING 
+***************************************************************************/
+
+FILE *logfile = NULL;
+
+
+
+void log_init(char *fname)
+{
+       if (fname) {
+               if (fname[0]) {
+                       logfile = fopen(fname, "w");
+               }
+       }
+}
+
+
+/*********************** Function: dolog ************************************
+
+Writes logtext to the protocol file (if opened) or to stdout.
+
+**************************************************************************/
+
+void dolog(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "%s\n",logtext);
+               fflush(logfile);
+
+       } else {
+               fprintf(stdout,"LOG: %s\n",logtext);
+               fflush(stdout);
+       }
+}
+
+
+/******************** Function: dolog_plain *******************************
+
+Writes logtext to the protocol file (if opened) or to stdout.
+
+**************************************************************************/
+
+void dolog_plain(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "%s",logtext);
+               fflush(logfile);
+
+       } else {
+               fprintf(stdout,"%s",logtext);
+               fflush(stdout);
+       }
+}
+
+
+/********************* Function: log_text ********************************/
+
+void log_text(char *text)
+{
+       dolog("%s", text);
+}
+
+
+/******************** Function: log_plain *******************************/
+
+void log_plain(char *text)
+{
+       dolog_plain("%s", text);
+}
+
+
+/****************** Function: get_logfile *******************************/
+
+FILE *get_logfile()
+{
+       return (logfile) ? logfile : stdout;
+}
+
+
+/****************** Function: log_flush *********************************/
+
+void log_flush()
+{
+       fflush(get_logfile());
+}
+
+
+/********************* Function: log_nl *********************************/
+
+void log_nl()
+{
+       log_plain("\n");
+       fflush(get_logfile());
+}
+
+
+/********************* Function: log_cputime ****************************/
+
+void log_cputime()
+{
+       s8 t;
+       int sec, usec;
+       char logtext[MAXLOGTEXT];
+
+       t = getcputime();
+       sec = t / 1000000;
+       usec = t % 1000000;
+
+       sprintf(logtext, "Total CPU usage: %d seconds and %d milliseconds",
+                       sec, usec / 1000);
+       log_text(logtext);
+}
+
+
+/************************** Function: error *******************************
+
+Like dolog(), but terminates the program immediately.
+
+**************************************************************************/
+
+void error(char *txt, ...)
+{
+       char logtext[MAXLOGTEXT];
+       va_list ap;
+
+       va_start(ap, txt);
+       vsprintf(logtext, txt, ap);
+       va_end(ap);
+
+       if (logfile) {
+               fprintf(logfile, "ERROR: %s\n", logtext);
+       }
+
+       fprintf(stderr, "ERROR: %s\n", logtext);
+       exit(10);
+}
+
+
+/************************ Function: panic (txt) ****************************
+
+  Like error(), takes the text to output as an argument
+
+***************************************************************************/
+
+void panic(char *txt)
+{
+       error("%s", txt);
+}
+
+
+/********************** Function: getcputime ********************************
+
+       Returns the used CPU time in microseconds
+       
+****************************************************************************/
+
+s8 getcputime()
+{
+       struct rusage ru;
+       int sec, usec;
+
+       getrusage(RUSAGE_SELF, &ru);
+       sec = ru.ru_utime.tv_sec + ru.ru_stime.tv_sec;
+       usec = ru.ru_utime.tv_usec + ru.ru_stime.tv_usec;
+
+       return sec * 1000000 + usec;
+}
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
diff --git a/toolbox/logging.h b/toolbox/logging.h
new file mode 100644 (file)
index 0000000..74e2f0b
--- /dev/null
@@ -0,0 +1,78 @@
+/* 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
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+   Contact: cacao@complang.tuwien.ac.at
+
+   Authors: Reinhard Grafl
+
+   $Id: logging.h 1067 2004-05-18 10:25:51Z stefan $
+
+*/
+
+
+#ifndef _LOGGING_H
+#define _LOGGING_H
+
+#include <stdio.h>
+
+
+#define PANICIF(when,txt)  if(when)panic(txt)
+
+#define MAXLOGTEXT 500
+
+/* 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_cputime();
+
+void dolog(char *txt, ...);
+void dolog_plain(char *txt, ...); /* same as dolog without "LOG: " and newline */
+void error(char *txt, ...);
+void panic(char *txt);
+
+FILE *get_logfile(); /* return the current logfile */
+
+s8 getcputime();
+
+#endif /* _LOGGING_H */
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
diff --git a/toolbox/loging.c b/toolbox/loging.c
deleted file mode 100644 (file)
index 79ea12d..0000000
+++ /dev/null
@@ -1,239 +0,0 @@
-/* toolbox/loging.c - contains loging 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
-
-   This file is part of CACAO.
-
-   This program is free software; you can redistribute it and/or
-   modify it under the terms of the GNU General Public License as
-   published by the Free Software Foundation; either version 2, or (at
-   your option) any later version.
-
-   This program is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
-
-   Contact: cacao@complang.tuwien.ac.at
-
-   Authors: Reinhard Grafl
-
-   $Id: loging.c 750 2003-12-13 22:17:44Z twisti $
-
-*/
-
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-
-#include "global.h"
-#include "loging.h"
-
-
-/***************************************************************************
-                        LOG FILE HANDLING 
-***************************************************************************/
-
-FILE *logfile = NULL;
-
-
-
-void log_init(char *fname)
-{
-       if (fname) {
-               if (fname[0]) {
-                       logfile = fopen(fname, "w");
-               }
-       }
-}
-
-
-/*********************** Function: dolog ************************************
-
-Writes logtext to the protocol file (if opened) or to stdout.
-
-**************************************************************************/
-
-void dolog(char *txt, ...)
-{
-       char logtext[MAXLOGTEXT];
-       va_list ap;
-
-       va_start(ap, txt);
-       vsprintf(logtext, txt, ap);
-       va_end(ap);
-
-       if (logfile) {
-               fprintf(logfile, "%s\n",logtext);
-               fflush(logfile);
-
-       } else {
-               fprintf(stdout,"LOG: %s\n",logtext);
-               fflush(stdout);
-       }
-}
-
-
-/******************** Function: dolog_plain *******************************
-
-Writes logtext to the protocol file (if opened) or to stdout.
-
-**************************************************************************/
-
-void dolog_plain(char *txt, ...)
-{
-       char logtext[MAXLOGTEXT];
-       va_list ap;
-
-       va_start(ap, txt);
-       vsprintf(logtext, txt, ap);
-       va_end(ap);
-
-       if (logfile) {
-               fprintf(logfile, "%s",logtext);
-               fflush(logfile);
-
-       } else {
-               fprintf(stdout,"%s",logtext);
-               fflush(stdout);
-       }
-}
-
-
-/********************* Function: log_text ********************************/
-
-void log_text(char *text)
-{
-       dolog("%s", text);
-}
-
-
-/******************** Function: log_plain *******************************/
-
-void log_plain(char *text)
-{
-       dolog_plain("%s", text);
-}
-
-
-/****************** Function: get_logfile *******************************/
-
-FILE *get_logfile()
-{
-       return (logfile) ? logfile : stdout;
-}
-
-
-/****************** Function: log_flush *********************************/
-
-void log_flush()
-{
-       fflush(get_logfile());
-}
-
-
-/********************* Function: log_nl *********************************/
-
-void log_nl()
-{
-       log_plain("\n");
-       fflush(get_logfile());
-}
-
-
-/********************* Function: log_cputime ****************************/
-
-void log_cputime()
-{
-       s8 t;
-       int sec, usec;
-       char logtext[MAXLOGTEXT];
-
-       t = getcputime();
-       sec = t / 1000000;
-       usec = t % 1000000;
-
-       sprintf(logtext, "Total CPU usage: %d seconds and %d milliseconds",
-                       sec, usec / 1000);
-       log_text(logtext);
-}
-
-
-/************************** Function: error *******************************
-
-Like dolog(), but terminates the program immediately.
-
-**************************************************************************/
-
-void error(char *txt, ...)
-{
-       char logtext[MAXLOGTEXT];
-       va_list ap;
-
-       va_start(ap, txt);
-       vsprintf(logtext, txt, ap);
-       va_end(ap);
-
-       if (logfile) {
-               fprintf(logfile, "ERROR: %s\n", logtext);
-       }
-
-       fprintf(stderr, "ERROR: %s\n", logtext);
-       exit(10);
-}
-
-
-/************************ Function: panic (txt) ****************************
-
-  Like error(), takes the text to output as an argument
-
-***************************************************************************/
-
-void panic(char *txt)
-{
-       error("%s", txt);
-}
-
-
-/********************** Function: getcputime ********************************
-
-       Returns the used CPU time in microseconds
-       
-****************************************************************************/
-
-s8 getcputime()
-{
-       struct rusage ru;
-       int sec, usec;
-
-       getrusage(RUSAGE_SELF, &ru);
-       sec = ru.ru_utime.tv_sec + ru.ru_stime.tv_sec;
-       usec = ru.ru_utime.tv_usec + ru.ru_stime.tv_usec;
-
-       return sec * 1000000 + usec;
-}
-
-
-/*
- * These are local overrides for various environment variables in Emacs.
- * Please do not remove this and leave it at the end of the file, where
- * Emacs will automagically detect them.
- * ---------------------------------------------------------------------
- * Local variables:
- * mode: c
- * indent-tabs-mode: t
- * c-basic-offset: 4
- * tab-width: 4
- * End:
- */
diff --git a/toolbox/loging.h b/toolbox/loging.h
deleted file mode 100644 (file)
index 25b94bc..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/* toolbox/loging.h - contains loging 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
-
-   This file is part of CACAO.
-
-   This program is free software; you can redistribute it and/or
-   modify it under the terms of the GNU General Public License as
-   published by the Free Software Foundation; either version 2, or (at
-   your option) any later version.
-
-   This program is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
-
-   Contact: cacao@complang.tuwien.ac.at
-
-   Authors: Reinhard Grafl
-
-   $Id: loging.h 750 2003-12-13 22:17:44Z twisti $
-
-*/
-
-
-#ifndef _LOGGING_H
-#define _LOGGING_H
-
-#include <stdio.h>
-
-
-#define PANICIF(when,txt)  if(when)panic(txt)
-
-#define MAXLOGTEXT 500
-
-/* 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_cputime();
-
-void dolog(char *txt, ...);
-void dolog_plain(char *txt, ...); /* same as dolog without "LOG: " and newline */
-void error(char *txt, ...);
-void panic(char *txt);
-
-FILE *get_logfile(); /* return the current logfile */
-
-s8 getcputime();
-
-#endif /* _LOGGING_H */
-
-
-/*
- * These are local overrides for various environment variables in Emacs.
- * Please do not remove this and leave it at the end of the file, where
- * Emacs will automagically detect them.
- * ---------------------------------------------------------------------
- * Local variables:
- * mode: c
- * indent-tabs-mode: t
- * c-basic-offset: 4
- * tab-width: 4
- * End:
- */
index c0c937b4cd7746de4a6b1845f0de1c4aff9ee8d8..4766f4c780655049ab5969084bfb4a0cffb89188 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: memory.c 799 2003-12-16 22:30:41Z edwin $
+   $Id: memory.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -39,7 +39,7 @@
 #include <unistd.h>
 
 #include "global.h"
-#include "loging.h"
+#include "logging.h"
 #include "memory.h"
 
 
index 6fdbc2274fcf802b2dbd69caec0571d98749bb0f..bc3d87163ce09e4cdf46251af99c2bffc02f0d7a 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typeinfo.c 1035 2004-04-26 16:26:35Z twisti $
+   $Id: typeinfo.c 1067 2004-05-18 10:25:51Z stefan $
 
 */
 
@@ -36,7 +36,7 @@
 #include "typeinfo.h"
 #include "tables.h"
 #include "loader.h"
-#include "toolbox/loging.h"
+#include "toolbox/logging.h"
 #include "toolbox/memory.h"
 #include "jit/jit.h" /* XXX move typeinfo.* into jit/ */