* intrp_md_stacktrace_get_returnaddress: Added.
[cacao.git] / src / vm / utf8.h
index 36814867b2a539b1bb3ae4421b7f4c54e1c244c9..73d99b106aee51ee3522d301c582936e330d5b50 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: utf8.h 3541 2005-11-03 20:33:51Z twisti $
+   $Id: utf8.h 3807 2005-11-26 21:51:11Z edwin $
 
 */
 
@@ -43,6 +43,8 @@
 
 typedef struct utf utf;
 
+#include "config.h"
+#include "vm/types.h"
 
 #include "vm/global.h"
 
@@ -51,7 +53,7 @@ typedef struct utf utf;
 
 struct utf {
        utf  *hashlink;                     /* link for external hash chain       */
-       int   blength;                      /* text length in bytes               */
+       s4    blength;                      /* text length in bytes               */
        char *text;                         /* pointer to text                    */
 };
 
@@ -77,6 +79,8 @@ extern utf *utf_java_lang_Throwable;
 extern utf *utf_java_lang_VMThrowable;
 extern utf *utf_java_lang_Error;
 extern utf *utf_java_lang_NoClassDefFoundError;
+extern utf *utf_java_lang_LinkageError;
+extern utf *utf_java_lang_NoSuchMethodError;
 extern utf *utf_java_lang_OutOfMemoryError;
 
 extern utf *utf_java_lang_Exception;
@@ -161,7 +165,8 @@ extern utf *array_packagename;
 
 /* function prototypes ********************************************************/
 
-void utf8_init(void);
+/* initialize the utf8 subsystem */
+bool utf8_init(void);
 
 u4 utf_hashkey(const char *text, u4 length);
 
@@ -171,9 +176,6 @@ u4 unicode_hashkey(u2 *text, u2 length);
 /* create new utf-symbol */
 utf *utf_new(const char *text, u2 length);
 
-/* without locking (caller already holding lock*/
-utf *utf_new_intern(const char *text, u2 length);
-
 /* make utf symbol from u2 array */
 utf *utf_new_u2(u2 *unicodedata, u4 unicodelength, bool isclassname);