From a49d310cb92bfa7c171f70afcc624c629a5c1c67 Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 31 Aug 2006 17:23:57 +0000 Subject: [PATCH] PR libgcj/28698: * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive classes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116603 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 6 ++++++ libjava/libgcj_bc.c | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 0a694de..4550790 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2006-08-31 Tom Tromey + + PR libgcj/28698: + * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive + classes. + 2006-08-24 Keith Seitz * prims.cc (remoteDebug): New global. diff --git a/libjava/libgcj_bc.c b/libjava/libgcj_bc.c index 66a1468..d48ce7d 100644 --- a/libjava/libgcj_bc.c +++ b/libjava/libgcj_bc.c @@ -92,3 +92,19 @@ void _Jv_CreateJavaVM () {} void _Jv_AttachCurrentThread () {} void _Jv_AttachCurrentThreadAsDaemon () {} void _Jv_DetachCurrentThread () {} + + +/* Classes for primitive types. */ + +#define DECLARE_PRIM_TYPE(NAME) \ + int _Jv_##NAME##Class; + +DECLARE_PRIM_TYPE(byte) +DECLARE_PRIM_TYPE(short) +DECLARE_PRIM_TYPE(int) +DECLARE_PRIM_TYPE(long) +DECLARE_PRIM_TYPE(boolean) +DECLARE_PRIM_TYPE(char) +DECLARE_PRIM_TYPE(float) +DECLARE_PRIM_TYPE(double) +DECLARE_PRIM_TYPE(void) -- 2.7.4