From 2cf94e58cbde0c5e906720768bd738588a1a075a Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Wed, 8 Feb 2006 20:38:13 +0000 Subject: link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const char *". 2006-02-08 Bryce McKinlay * link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const char *". * verify.cc (verify_fail): Likewise. * gnu/classpath/natSystemProperties.cc (file_encoding): Likewise. * interpret.cc (throw_internal_error, throw_class_format_error): Likewise. * gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed, _Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise. * java/lang/Class.h (_Jv_InitPrimClass): Likewise. * include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise. * defineclass.cc (throw_internal_error, throw_no_class_def_found_error, is_attribute_name): Likewise. * prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init, _Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise. From-SVN: r110767 --- libjava/include/jvm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/include/jvm.h') diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index e5187f4..2894224 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -132,10 +132,10 @@ union _Jv_value ? (((PTR)[-3]&0x0F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \ : ((PTR)++, -1)) -extern int _Jv_strLengthUtf8(char* str, int len); +extern int _Jv_strLengthUtf8(const char* str, int len); typedef struct _Jv_Utf8Const Utf8Const; -_Jv_Utf8Const *_Jv_makeUtf8Const (char *s, int len); +_Jv_Utf8Const *_Jv_makeUtf8Const (const char *s, int len); _Jv_Utf8Const *_Jv_makeUtf8Const (jstring string); extern jboolean _Jv_equalUtf8Consts (const _Jv_Utf8Const *, const _Jv_Utf8Const *); extern jboolean _Jv_equal (_Jv_Utf8Const *, jstring, jint); -- cgit v1.1