Translation
authorstefan <none@none>
Wed, 4 Dec 2002 13:49:45 +0000 (13:49 +0000)
committerstefan <none@none>
Wed, 4 Dec 2002 13:49:45 +0000 (13:49 +0000)
native.c
src/native/native.c
src/vm/tables.c
tables.c

index ada998033dd8a9cf8069c4ff4b38d839eaa6921f..61481bb9979a5d70779a278805bddf9bfaa8c1bc 100644 (file)
--- a/native.c
+++ b/native.c
@@ -4,11 +4,10 @@
 
        See file COPYRIGHT for information on usage and disclaimer of warranties
 
-       Enth"alt die Tabellen f"ur die native-methods.
-       Die vom Headerfile-Generator erzeugten -.hh - Dateien werden hier
-       eingebunden, und ebenso alle C-Funktionen, mit denen diese
-       Methoden implementiert werden.
-
+    Contains the tables for native methods.
+       The .hh files created with the header file generator are all included here
+       as are the C functions implementing these methods.
+       
        Authors: Reinhard Grafl      EMAIL: cacao@complang.tuwien.ac.at 
                 Roman Obermaisser   EMAIL: cacao@complang.tuwien.ac.at 
                 Andreas Krall       EMAIL: cacao@complang.tuwien.ac.at 
@@ -34,7 +33,7 @@
 #include "threads/thread.h"                       /* schani */
 #include "threads/locks.h"
 
-/* INCLUDE-Files fuer IO-Funktionen */
+/* Include files for IO functions */
 
 #include <fcntl.h>
 #include <dirent.h>
@@ -377,16 +376,14 @@ void throw_classnotfoundexception()
 }
 
 
-/*********************** Funktion: native_findfunction *************************
+/*********************** Function: native_findfunction *************************
 
-       Sucht in der Tabelle die passende Methode (muss mit Klassennamen,
-       Methodennamen, Descriptor und 'static'-Status "ubereinstimmen),
-       und gibt den Funktionszeiger darauf zur"uck.
-       Return: Funktionszeiger oder NULL  (wenn es keine solche Methode gibt)
+       Looks up a method (must have the same class name, method name, descriptor
+       and 'static'ness) and returns a function pointer to it.
+       Returns: function pointer or NULL (if there is no such method)
 
-       Anmerkung: Zu Beschleunigung des Suchens werden die als C-Strings
-          vorliegenden Namen/Descriptors in entsprechende unicode-Symbole
-          umgewandelt (beim ersten Aufruf dieser Funktion).
+       Remark: For faster operation, the names/descriptors are converted from C
+               strings to Unicode the first time this function is called.
 
 *******************************************************************************/
 
@@ -870,7 +867,7 @@ java_objectheader *literalstring_u2 (java_chararray *a, u4 length, bool copymode
     return (java_objectheader *) js;
 }
 
-/******************** Funktion: literalstring_new *****************************
+/******************** Function: literalstring_new *****************************
 
     creates a new javastring with the text of the utf-symbol
     and inserts it into the string hashtable
index ada998033dd8a9cf8069c4ff4b38d839eaa6921f..61481bb9979a5d70779a278805bddf9bfaa8c1bc 100644 (file)
@@ -4,11 +4,10 @@
 
        See file COPYRIGHT for information on usage and disclaimer of warranties
 
-       Enth"alt die Tabellen f"ur die native-methods.
-       Die vom Headerfile-Generator erzeugten -.hh - Dateien werden hier
-       eingebunden, und ebenso alle C-Funktionen, mit denen diese
-       Methoden implementiert werden.
-
+    Contains the tables for native methods.
+       The .hh files created with the header file generator are all included here
+       as are the C functions implementing these methods.
+       
        Authors: Reinhard Grafl      EMAIL: cacao@complang.tuwien.ac.at 
                 Roman Obermaisser   EMAIL: cacao@complang.tuwien.ac.at 
                 Andreas Krall       EMAIL: cacao@complang.tuwien.ac.at 
@@ -34,7 +33,7 @@
 #include "threads/thread.h"                       /* schani */
 #include "threads/locks.h"
 
-/* INCLUDE-Files fuer IO-Funktionen */
+/* Include files for IO functions */
 
 #include <fcntl.h>
 #include <dirent.h>
@@ -377,16 +376,14 @@ void throw_classnotfoundexception()
 }
 
 
-/*********************** Funktion: native_findfunction *************************
+/*********************** Function: native_findfunction *************************
 
-       Sucht in der Tabelle die passende Methode (muss mit Klassennamen,
-       Methodennamen, Descriptor und 'static'-Status "ubereinstimmen),
-       und gibt den Funktionszeiger darauf zur"uck.
-       Return: Funktionszeiger oder NULL  (wenn es keine solche Methode gibt)
+       Looks up a method (must have the same class name, method name, descriptor
+       and 'static'ness) and returns a function pointer to it.
+       Returns: function pointer or NULL (if there is no such method)
 
-       Anmerkung: Zu Beschleunigung des Suchens werden die als C-Strings
-          vorliegenden Namen/Descriptors in entsprechende unicode-Symbole
-          umgewandelt (beim ersten Aufruf dieser Funktion).
+       Remark: For faster operation, the names/descriptors are converted from C
+               strings to Unicode the first time this function is called.
 
 *******************************************************************************/
 
@@ -870,7 +867,7 @@ java_objectheader *literalstring_u2 (java_chararray *a, u4 length, bool copymode
     return (java_objectheader *) js;
 }
 
-/******************** Funktion: literalstring_new *****************************
+/******************** Function: literalstring_new *****************************
 
     creates a new javastring with the text of the utf-symbol
     and inserts it into the string hashtable
index 8797971aacf2849963412267cadbc398ffa2d337..4166fbb615149cca628c6197a1deeddd8438dc0a 100644 (file)
@@ -5,11 +5,11 @@
 
        See file COPYRIGHT for information on usage and disclaimer of warranties
 
-       Enth"alt Supportfunktionen f"ur:
-               - Lesen von JavaClass-Files
-           - unicode-Symbole
-               - den Heap 
-               - zus"atzliche Support-Funktionen
+       Contains support functions for:
+               - Reading of Java class files
+               - Unicode symbols
+               - the heap
+               - additional support functions
 
        Authors: Reinhard Grafl      EMAIL: cacao@complang.tuwien.ac.at
        Changes: Mark Probst         EMAIL: cacao@complang.tuwien.ac.at
@@ -508,14 +508,14 @@ void utf_show ()
 }
 
 /******************************************************************************
-*********************** Diverse Support-Funktionen ****************************
+*********************** Misc support functions ********************************
 ******************************************************************************/
 
 
-/******************** Funktion: desc_to_type **********************************
+/******************** Function: desc_to_type **********************************
    
-    Findet zu einem gegebenen Typdescriptor den entsprechenden 
-    Java-Grunddatentyp.
+       Determines the corresponding Java base data type for a given type
+       descriptor.
        
 ******************************************************************************/
 
@@ -545,10 +545,10 @@ u2 desc_to_type (utf *descriptor)
 }
 
 
-/********************** Funktion: desc_typesize *******************************
+/********************** Function: desc_typesize *******************************
 
-       Berechnet die L"ange (in Byte) eines Datenelements gegebenen Typs,
-       der durch den Typdescriptor gegeben ist.
+       Calculates the lenght in bytes needed for a data element of the type given
+       by its type descriptor.
        
 ******************************************************************************/
 
@@ -616,7 +616,7 @@ u2 utf_nextu2(char **utf_ptr)
     return unicode_char;
 }
  
-/******************** Funktion: class_new **************************************
+/******************** Function: class_new **************************************
 
     searches for the class with the specified name in the classes hashtable,
     if there is no such class a new classinfo structure is created and inserted
@@ -724,7 +724,7 @@ classinfo *class_new (utf *u)
        return c;
 }
 
-/******************** Funktion: class_get **************************************
+/******************** Function: class_get **************************************
 
     searches for the class with the specified name in the classes hashtable
     if there is no such class NULL is returned
index 8797971aacf2849963412267cadbc398ffa2d337..4166fbb615149cca628c6197a1deeddd8438dc0a 100644 (file)
--- a/tables.c
+++ b/tables.c
@@ -5,11 +5,11 @@
 
        See file COPYRIGHT for information on usage and disclaimer of warranties
 
-       Enth"alt Supportfunktionen f"ur:
-               - Lesen von JavaClass-Files
-           - unicode-Symbole
-               - den Heap 
-               - zus"atzliche Support-Funktionen
+       Contains support functions for:
+               - Reading of Java class files
+               - Unicode symbols
+               - the heap
+               - additional support functions
 
        Authors: Reinhard Grafl      EMAIL: cacao@complang.tuwien.ac.at
        Changes: Mark Probst         EMAIL: cacao@complang.tuwien.ac.at
@@ -508,14 +508,14 @@ void utf_show ()
 }
 
 /******************************************************************************
-*********************** Diverse Support-Funktionen ****************************
+*********************** Misc support functions ********************************
 ******************************************************************************/
 
 
-/******************** Funktion: desc_to_type **********************************
+/******************** Function: desc_to_type **********************************
    
-    Findet zu einem gegebenen Typdescriptor den entsprechenden 
-    Java-Grunddatentyp.
+       Determines the corresponding Java base data type for a given type
+       descriptor.
        
 ******************************************************************************/
 
@@ -545,10 +545,10 @@ u2 desc_to_type (utf *descriptor)
 }
 
 
-/********************** Funktion: desc_typesize *******************************
+/********************** Function: desc_typesize *******************************
 
-       Berechnet die L"ange (in Byte) eines Datenelements gegebenen Typs,
-       der durch den Typdescriptor gegeben ist.
+       Calculates the lenght in bytes needed for a data element of the type given
+       by its type descriptor.
        
 ******************************************************************************/
 
@@ -616,7 +616,7 @@ u2 utf_nextu2(char **utf_ptr)
     return unicode_char;
 }
  
-/******************** Funktion: class_new **************************************
+/******************** Function: class_new **************************************
 
     searches for the class with the specified name in the classes hashtable,
     if there is no such class a new classinfo structure is created and inserted
@@ -724,7 +724,7 @@ classinfo *class_new (utf *u)
        return c;
 }
 
-/******************** Funktion: class_get **************************************
+/******************** Function: class_get **************************************
 
     searches for the class with the specified name in the classes hashtable
     if there is no such class NULL is returned