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
#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>
}
-/*********************** 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.
*******************************************************************************/
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
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
#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>
}
-/*********************** 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.
*******************************************************************************/
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
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
}
/******************************************************************************
-*********************** 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.
******************************************************************************/
}
-/********************** 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.
******************************************************************************/
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
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
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
}
/******************************************************************************
-*********************** 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.
******************************************************************************/
}
-/********************** 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.
******************************************************************************/
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
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