diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2006-02-08 20:38:13 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2006-02-08 20:38:13 +0000 |
commit | 2cf94e58cbde0c5e906720768bd738588a1a075a (patch) | |
tree | cf833007c737395cb44ea9f031474173d9ab680a /libjava/prims.cc | |
parent | 8b1753e3ec0f38a18b8bcd3c13e2b6b55f799099 (diff) | |
download | gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.zip gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.tar.gz gcc-2cf94e58cbde0c5e906720768bd738588a1a075a.tar.bz2 |
link.cc (_Jv_Linker::print_class_loaded): Declare string constants as "const char *".
2006-02-08 Bryce McKinlay <mckinlay@redhat.com>
* 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
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc index 0352669..1ef5674 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -353,7 +353,7 @@ _Jv_equalUtf8Classnames (const Utf8Const *a, const Utf8Const *b) /* Count the number of Unicode chars encoded in a given Ut8 string. */ int -_Jv_strLengthUtf8(char* str, int len) +_Jv_strLengthUtf8(const char* str, int len) { unsigned char* ptr; unsigned char* limit; @@ -374,7 +374,7 @@ _Jv_strLengthUtf8(char* str, int len) * This returns the same hash value as specified or java.lang.String.hashCode. */ jint -_Jv_hashUtf8String (char* str, int len) +_Jv_hashUtf8String (const char* str, int len) { unsigned char* ptr = (unsigned char*) str; unsigned char* limit = ptr + len; @@ -391,7 +391,7 @@ _Jv_hashUtf8String (char* str, int len) } void -_Jv_Utf8Const::init(char *s, int len) +_Jv_Utf8Const::init(const char *s, int len) { ::memcpy (data, s, len); data[len] = 0; @@ -400,7 +400,7 @@ _Jv_Utf8Const::init(char *s, int len) } _Jv_Utf8Const * -_Jv_makeUtf8Const (char* s, int len) +_Jv_makeUtf8Const (const char* s, int len) { if (len < 0) len = strlen (s); @@ -794,7 +794,7 @@ DECLARE_PRIM_TYPE(double) DECLARE_PRIM_TYPE(void) void -_Jv_InitPrimClass (jclass cl, char *cname, char sig, int len) +_Jv_InitPrimClass (jclass cl, const char *cname, char sig, int len) { using namespace java::lang::reflect; |