diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2001-01-17 08:13:06 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2001-01-17 00:13:06 -0800 |
commit | ed8cc5fdf820abfc547edaad2e5e1bfd7f9c1b99 (patch) | |
tree | cfe0de1a60892065af8b8023b24409d4a4026f27 /libjava/prims.cc | |
parent | d34786e3fe35c316fa46da13d80a30cf3bf25ee5 (diff) | |
download | gcc-ed8cc5fdf820abfc547edaad2e5e1bfd7f9c1b99.zip gcc-ed8cc5fdf820abfc547edaad2e5e1bfd7f9c1b99.tar.gz gcc-ed8cc5fdf820abfc547edaad2e5e1bfd7f9c1b99.tar.bz2 |
prims.cc (init_prim_class): Deleted.
2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
* prims.cc (init_prim_class): Deleted.
(DECLARE_PRIM_TYPE): Rewritten.
* java/lang/Class.h (stdio.h): Include removed.
(stddef.h): Included.
(java/lang/reflect/Modifier.h): Likewise.
(Class): Contructor now takes arguments, initializes fields.
(initializePrim): Prototype deleted.
* java/lang/natClass.cc (initializePrim): Deleted.
(http://sources.redhat.com/ml/java-patches/2001-q1/msg00081.html)
From-SVN: r39088
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc index 415c82c..85264bb 100644 --- a/libjava/prims.cc +++ b/libjava/prims.cc @@ -510,21 +510,11 @@ _Jv_NewMultiArray (jclass array_type, jint dimensions, ...) -// Initialize Class object for primitive types. The `return' statement -// does the actuall job. -static java::lang::Class -init_prim_class (jobject cname, jbyte sig, jint len, jobject array_vtable) -{ - static java::lang::Class iclass; - iclass.initializePrim (cname, sig, len, array_vtable); - return iclass; -} - #define DECLARE_PRIM_TYPE(NAME, SIG, LEN) \ _Jv_ArrayVTable _Jv_##NAME##VTable; \ - java::lang::Class _Jv_##NAME##Class = \ - init_prim_class ((jobject) #NAME, (jbyte) SIG, \ - (jint) LEN, (jobject) &_Jv_##NAME##VTable); + java::lang::Class _Jv_##NAME##Class ((jobject) #NAME, \ + (jbyte) SIG, (jint) LEN, \ + (jobject) &_Jv_##NAME##VTable); DECLARE_PRIM_TYPE(byte, 'B', 1); DECLARE_PRIM_TYPE(short, 'S', 2); |