[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: many imaging fixes

Kaffe CVS cvs-commits at kaffe.org
Fri Dec 3 16:16:35 PST 2004


PatchSet 5530 
Date: 2004/12/03 23:21:52
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: many imaging fixes

2004-12-03  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/awt/classpath-gtk/classpath/.cvsignore,
        libraries/clib/awt/classpath-gtk/classpath/Makefile.am,
        libraries/clib/awt/classpath-gtk/classpath/Makefile.in,
        libraries/clib/awt/classpath-gtk/classpath/jcl.c,
        libraries/clib/awt/classpath-gtk/classpath/jcl.h,
        libraries/clib/awt/classpath-gtk/classpath/jnilink.c,
        libraries/clib/awt/classpath-gtk/classpath/jnilink.h,
        libraries/clib/awt/classpath-gtk/classpath/native_state.c,
        libraries/clib/awt/classpath-gtk/classpath/native_state.h,
        libraries/clib/awt/classpath-gtk/classpath/primlib.c,
        libraries/clib/awt/classpath-gtk/classpath/primlib.h:
        Removed.

        * libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
        libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
        libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics.java,
        libraries/javalib/gnu/java/awt/peer/gtk/GtkComponentPeer.java,
        libraries/javalib/gnu/java/awt/peer/gtk/GtkFramePeer.java,
        libraries/javalib/gnu/java/awt/peer/gtk/GtkImage.java,
        libraries/javalib/gnu/java/awt/peer/gtk/GtkImagePainter.java,
        libraries/javalib/java/applet/Applet.java,
        libraries/javalib/java/awt/Component.java,
        libraries/javalib/java/awt/image/MemoryImageSource.java:
        Resynced with GNU Classpath.

        2004-12-01  Thomas Fitzsimmons  <fitzsim at redhat.com>

        * gnu/java/awt/peer/gtk/GdkGraphics.java (drawImage variants):
        Update image observer.
        * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage):
        Start image production.
        * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Protect
        against negative menu bar widths.
        (setBounds): Likewise.
        (postConfigureEvent): Likewise.
        * gnu/java/awt/peer/gtk/GtkImage.java (imageComplete): Don't
        remove consumer unless only a single frame has completed.
        * gnu/java/awt/peer/gtk/GtkImagePainter.java (GtkImagePainter):
        Add observer parameter.
        (setPixels): Update image observer.
        (imageComplete): Likewise.
        * java/applet/Applet.java (width): New field.
        (height): Likewise.
        (setStub): Set size if width or height field has been set.
        (resize): If stub is null save width and height values.
        * java/awt/Component.java (reshape): Protect against null
        parent.
        * java/awt/image/MemoryImageSource.java
        (MemoryImageSource(int,int,ColorModel,byte[],int,int)):
        Document.
        (MemoryImageSource(int,int,ColorModel,int[],int,int)):
        Likewise.
        (MemoryImageSource(int,int,ColorModel,byte[],int,int,Hashtable)):
        Reference pixel array directly, rather than creating a local
        copy.
        (MemoryImageSource(int,int,ColorModel,int[],int,int,Hashtable)):
        Likewise.
        (newPixels(int,int,int,int)): Fix for loop and array copy
        bounds.
        (newPixels(int,int,int,int,boolean)): Likewise.
        (startProduction): If animated call imageComplete with
        SINGLEFRAME.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Uncomment
        gdk_flush lines.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
        (drawPixels): Return if g is null or g->drawable is not a gdk
        drawable.

Members: 
	ChangeLog:1.3076->1.3077 
	libraries/clib/awt/classpath-gtk/classpath/.cvsignore:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/Makefile.am:1.2->1.3(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/Makefile.in:1.12->1.13(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/jcl.c:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/jcl.h:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/jnilink.c:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/jnilink.h:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/native_state.c:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/native_state.h:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/primlib.c:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/classpath/primlib.h:1.1->1.2(DEAD) 
	libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c:1.7->1.8 
	libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c:1.3->1.4 
	libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics.java:1.6->1.7 
	libraries/javalib/gnu/java/awt/peer/gtk/GtkComponentPeer.java:1.8->1.9 
	libraries/javalib/gnu/java/awt/peer/gtk/GtkFramePeer.java:1.5->1.6 
	libraries/javalib/gnu/java/awt/peer/gtk/GtkImage.java:1.3->1.4 
	libraries/javalib/gnu/java/awt/peer/gtk/GtkImagePainter.java:1.3->1.4 
	libraries/javalib/java/applet/Applet.java:1.13->1.14 
	libraries/javalib/java/awt/Component.java:1.43->1.44 
	libraries/javalib/java/awt/image/MemoryImageSource.java:1.11->1.12 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3076 kaffe/ChangeLog:1.3077
--- kaffe/ChangeLog:1.3076	Fri Dec  3 22:05:55 2004
+++ kaffe/ChangeLog	Fri Dec  3 23:21:52 2004
@@ -1,3 +1,73 @@
+2004-12-03  Dalibor Topic  <robilad at kaffe.org>
+
+	* libraries/clib/awt/classpath-gtk/classpath/.cvsignore,
+	libraries/clib/awt/classpath-gtk/classpath/Makefile.am,
+	libraries/clib/awt/classpath-gtk/classpath/Makefile.in,
+	libraries/clib/awt/classpath-gtk/classpath/jcl.c,
+	libraries/clib/awt/classpath-gtk/classpath/jcl.h,
+	libraries/clib/awt/classpath-gtk/classpath/jnilink.c,
+	libraries/clib/awt/classpath-gtk/classpath/jnilink.h,
+	libraries/clib/awt/classpath-gtk/classpath/native_state.c,
+	libraries/clib/awt/classpath-gtk/classpath/native_state.h,
+	libraries/clib/awt/classpath-gtk/classpath/primlib.c,
+	libraries/clib/awt/classpath-gtk/classpath/primlib.h:
+	Removed.
+
+	* libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
+	libraries/clib/awt/classpath-gtk/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,	
+	libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics.java,
+	libraries/javalib/gnu/java/awt/peer/gtk/GtkComponentPeer.java,
+	libraries/javalib/gnu/java/awt/peer/gtk/GtkFramePeer.java,
+	libraries/javalib/gnu/java/awt/peer/gtk/GtkImage.java,
+	libraries/javalib/gnu/java/awt/peer/gtk/GtkImagePainter.java,
+	libraries/javalib/java/applet/Applet.java,
+	libraries/javalib/java/awt/Component.java,
+	libraries/javalib/java/awt/image/MemoryImageSource.java:
+	Resynced with GNU Classpath.
+	
+	2004-12-01  Thomas Fitzsimmons  <fitzsim at redhat.com>
+
+        * gnu/java/awt/peer/gtk/GdkGraphics.java (drawImage variants):
+        Update image observer.
+        * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage):
+        Start image production.
+        * gnu/java/awt/peer/gtk/GtkFramePeer.java (setMenuBar): Protect
+        against negative menu bar widths.
+        (setBounds): Likewise.
+        (postConfigureEvent): Likewise.
+        * gnu/java/awt/peer/gtk/GtkImage.java (imageComplete): Don't
+        remove consumer unless only a single frame has completed.
+        * gnu/java/awt/peer/gtk/GtkImagePainter.java (GtkImagePainter):
+        Add observer parameter.
+        (setPixels): Update image observer.
+        (imageComplete): Likewise.
+        * java/applet/Applet.java (width): New field.
+        (height): Likewise.
+        (setStub): Set size if width or height field has been set.
+        (resize): If stub is null save width and height values.
+        * java/awt/Component.java (reshape): Protect against null
+        parent.
+        * java/awt/image/MemoryImageSource.java
+        (MemoryImageSource(int,int,ColorModel,byte[],int,int)):
+        Document.
+        (MemoryImageSource(int,int,ColorModel,int[],int,int)):
+        Likewise.
+        (MemoryImageSource(int,int,ColorModel,byte[],int,int,Hashtable)):
+        Reference pixel array directly, rather than creating a local
+        copy.
+        (MemoryImageSource(int,int,ColorModel,int[],int,int,Hashtable)):
+        Likewise.
+        (newPixels(int,int,int,int)): Fix for loop and array copy
+        bounds.
+        (newPixels(int,int,int,int,boolean)): Likewise.
+        (startProduction): If animated call imageComplete with
+        SINGLEFRAME.
+        * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c: Uncomment
+        gdk_flush lines.
+        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c
+        (drawPixels): Return if g is null or g->drawable is not a gdk
+        drawable.
+
 2004-12-03  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* libraries/javalib/java/io/ObjectInputStream.java
===================================================================
Checking out kaffe/libraries/clib/awt/classpath-gtk/classpath/.cvsignore
RCS:  /home/cvs/kaffe/kaffe/libraries/clib/awt/classpath-gtk/classpath/Attic/.cvsignore,v
VERS: 1.1
***************
--- kaffe/libraries/clib/awt/classpath-gtk/classpath/.cvsignore	Sat Dec  4 00:16:34 2004
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,8 +0,0 @@
-*.o
-*.a
-*.lo
-*.la
-.libs
-.deps
-Makefile
-Makefile.in
===================================================================
Checking out kaffe/libraries/clib/awt/classpath-gtk/classpath/Makefile.am
RCS:  /home/cvs/kaffe/kaffe/libraries/clib/awt/classpath-gtk/classpath/Attic/Makefile.am,v
VERS: 1.2
***************
--- kaffe/libraries/clib/awt/classpath-gtk/classpath/Makefile.am	Sat Dec  4 00:16:34 2004
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,12 +0,0 @@
-noinst_LTLIBRARIES = libclasspath.la
-
-AM_CPPFLAGS = \
-        -I$(top_srcdir)/kaffe/jvmpi -I$(top_builddir)/include \
-        -I$(top_srcdir)/kaffe/kaffevm/jni
-
-libclasspath_la_SOURCES = jcl.c jcl.h \
-			  jnilink.c jnilink.h \
-			  primlib.c primlib.h \
-			  native_state.c native_state.h
-
-libclasspath_la_LDFLAGS = @CLASSPATH_MODULE@
===================================================================
Checking out kaffe/libraries/clib/awt/classpath-gtk/classpath/Makefile.in
RCS:  /home/cvs/kaffe/kaffe/libraries/clib/awt/classpath-gtk/classpath/Attic/Makefile.in,v
VERS: 1.12
***************
--- kaffe/libraries/clib/awt/classpath-gtk/classpath/Makefile.in	Sat Dec  4 00:16:34 2004
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,620 +0,0 @@
-# Makefile.in generated by automake 1.9.2 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004  Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
- at SET_MAKE@
-
-SOURCES = $(libclasspath_la_SOURCES)
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../../../../..
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = libraries/clib/awt/classpath-gtk/classpath
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ac_c_bigendian_cross.m4 \
-	$(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/alsa.m4 \
-	$(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
-	$(top_srcdir)/m4/binreloc.m4 $(top_srcdir)/m4/compile_value.m4 \
-	$(top_srcdir)/m4/esd.m4 $(top_srcdir)/m4/gcc_attribute.m4 \
-	$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibcver.m4 \
-	$(top_srcdir)/m4/gmp.m4 $(top_srcdir)/m4/gwqt.m4 \
-	$(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \
-	$(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lcmessage.m4 \
-	$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
-	$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
-	$(top_srcdir)/m4/libxml.m4 $(top_srcdir)/m4/libxslt.m4 \
-	$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/pkg.m4 \
-	$(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-	$(top_srcdir)/m4/semaphore.m4 $(top_srcdir)/m4/sockaddrin6.m4 \
-	$(top_srcdir)/m4/sockinttypes.m4 \
-	$(top_srcdir)/m4/solarispthread.m4 $(top_srcdir)/m4/valist.m4 \
-	$(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config/config.h \
-	$(top_builddir)/include/kaffe/jni_md.h
-CONFIG_CLEAN_FILES =
-LTLIBRARIES = $(noinst_LTLIBRARIES)
-libclasspath_la_LIBADD =
-am_libclasspath_la_OBJECTS = jcl.lo jnilink.lo primlib.lo \
-	native_state.lo
-libclasspath_la_OBJECTS = $(am_libclasspath_la_OBJECTS)
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/config -I$(top_builddir)/include/kaffe
-depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
-am__depfiles_maybe = depfiles
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-	$(AM_CFLAGS) $(CFLAGS)
-LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
-	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-SOURCES = $(libclasspath_la_SOURCES)
-DIST_SOURCES = $(libclasspath_la_SOURCES)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-ALSA_CFLAGS = @ALSA_CFLAGS@
-ALSA_LIBS = @ALSA_LIBS@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AR = @AR@
-AS = @AS@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-AWT_LIBS = @AWT_LIBS@
-BCEL_JAR = @BCEL_JAR@
-BINRELOC_CFLAGS = @BINRELOC_CFLAGS@
-BOEHMGC_SPECIFIC_FLAGS = @BOEHMGC_SPECIFIC_FLAGS@
-CAIRO_CFLAGS = @CAIRO_CFLAGS@
-CAIRO_LIBS = @CAIRO_LIBS@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CCLD = @CCLD@
-CFLAGS = @CFLAGS@
-CFLAGS_PG = @CFLAGS_PG@
-CFLAGS_WITHOUT_PG = @CFLAGS_WITHOUT_PG@
-COND_CLASSPATH_GTK_AWT_FALSE = @COND_CLASSPATH_GTK_AWT_FALSE@
-COND_CLASSPATH_GTK_AWT_TRUE = @COND_CLASSPATH_GTK_AWT_TRUE@
-COND_GJDOC_FALSE = @COND_GJDOC_FALSE@
-COND_GJDOC_TRUE = @COND_GJDOC_TRUE@
-COND_KAFFE_QT_AWT_FALSE = @COND_KAFFE_QT_AWT_FALSE@
-COND_KAFFE_QT_AWT_TRUE = @COND_KAFFE_QT_AWT_TRUE@
-COND_KAFFE_X_AWT_FALSE = @COND_KAFFE_X_AWT_FALSE@
-COND_KAFFE_X_AWT_TRUE = @COND_KAFFE_X_AWT_TRUE@
-COND_LIBXMLJ_FALSE = @COND_LIBXMLJ_FALSE@
-COND_LIBXMLJ_TRUE = @COND_LIBXMLJ_TRUE@
-COND_NATIVE_AWT_FALSE = @COND_NATIVE_AWT_FALSE@
-COND_NATIVE_AWT_TRUE = @COND_NATIVE_AWT_TRUE@
-COND_PURE_JAVA_MATH_FALSE = @COND_PURE_JAVA_MATH_FALSE@
-COND_PURE_JAVA_MATH_TRUE = @COND_PURE_JAVA_MATH_TRUE@
-COND_SOUND_ALSA_FALSE = @COND_SOUND_ALSA_FALSE@
-COND_SOUND_ALSA_TRUE = @COND_SOUND_ALSA_TRUE@
-COND_SOUND_ESD_FALSE = @COND_SOUND_ESD_FALSE@
-COND_SOUND_ESD_TRUE = @COND_SOUND_ESD_TRUE@
-CONFIG_CALLKAFFEEXCEPTION_H = @CONFIG_CALLKAFFEEXCEPTION_H@
-CONFIG_JIT_MD_H = @CONFIG_JIT_MD_H@
-CONFIG_MD_H = @CONFIG_MD_H@
-CONFIG_XPROFILE_MD_H = @CONFIG_XPROFILE_MD_H@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DIRSEP = @DIRSEP@
-DLLTOOL = @DLLTOOL@
-DLOPEN_JAVA_LIBS = @DLOPEN_JAVA_LIBS@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-ENABLE_BINRELOC_FALSE = @ENABLE_BINRELOC_FALSE@
-ENABLE_BINRELOC_TRUE = @ENABLE_BINRELOC_TRUE@
-ENABLE_JVMPI_FALSE = @ENABLE_JVMPI_FALSE@
-ENABLE_JVMPI_TRUE = @ENABLE_JVMPI_TRUE@
-ENABLE_XPROF_FALSE = @ENABLE_XPROF_FALSE@
-ENABLE_XPROF_TRUE = @ENABLE_XPROF_TRUE@
-ENGINE_NAME = @ENGINE_NAME@
-ESD_CFLAGS = @ESD_CFLAGS@
-ESD_CONFIG = @ESD_CONFIG@
-ESD_LIBS = @ESD_LIBS@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
-GC_NAME = @GC_NAME@
-GMSGFMT = @GMSGFMT@
-GTK_CAIRO_FALSE = @GTK_CAIRO_FALSE@
-GTK_CAIRO_TRUE = @GTK_CAIRO_TRUE@
-GTK_CFLAGS = @GTK_CFLAGS@
-GTK_LIBS = @GTK_LIBS@
-HAVE_BCEL_FALSE = @HAVE_BCEL_FALSE@
-HAVE_BCEL_TRUE = @HAVE_BCEL_TRUE@
-HAVE_CONFIG_JIT_MD_H = @HAVE_CONFIG_JIT_MD_H@
-HAVE_GCJ_SUPPORT_FALSE = @HAVE_GCJ_SUPPORT_FALSE@
-HAVE_GCJ_SUPPORT_TRUE = @HAVE_GCJ_SUPPORT_TRUE@
-HAVE_JASMIN_FALSE = @HAVE_JASMIN_FALSE@
-HAVE_JASMIN_TRUE = @HAVE_JASMIN_TRUE@
-HAVE_JIKES_FALSE = @HAVE_JIKES_FALSE@
-HAVE_JIKES_TRUE = @HAVE_JIKES_TRUE@
-HAVE_MKTEMP_FALSE = @HAVE_MKTEMP_FALSE@
-HAVE_MKTEMP_TRUE = @HAVE_MKTEMP_TRUE@
-HAVE_ZIP_FALSE = @HAVE_ZIP_FALSE@
-HAVE_ZIP_TRUE = @HAVE_ZIP_TRUE@
-INCLUDED_EXTENSIONS = @INCLUDED_EXTENSIONS@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-JASMIN = @JASMIN@
-JAVAC_FLAGS = @JAVAC_FLAGS@
-JAVA_LIBS = @JAVA_LIBS@
-JIKES = @JIKES@
-JIKESPROG = @JIKESPROG@
-KAFFEH = @KAFFEH@
-KAFFEVM_ICODE_H = @KAFFEVM_ICODE_H@
-KAFFEVM_JIT_DEF = @KAFFEVM_JIT_DEF@
-KAFFEVM_MD_C = @KAFFEVM_MD_C@
-KAFFEVM_TRAMPOLINES_C = @KAFFEVM_TRAMPOLINES_C@
-KAFFE_ARCHOS = @KAFFE_ARCHOS@
-KAFFE_LIBS = @KAFFE_LIBS@
-KLIBFLAGS = @KLIBFLAGS@
-KPREFIX = @KPREFIX@
-KVMBINFLAGS = @KVMBINFLAGS@
-KVMLIBFLAGS = @KVMLIBFLAGS@
-LDFLAGS = @LDFLAGS@
-LIBADD_GMP = @LIBADD_GMP@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBLTDL = @LIBLTDL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
-MAKEINFO = @MAKEINFO@
-MAKE_KAFFEH = @MAKE_KAFFEH@
-MATH_LIB = @MATH_LIB@
-MAY_RUN_PO_FALSE = @MAY_RUN_PO_FALSE@
-MAY_RUN_PO_TRUE = @MAY_RUN_PO_TRUE@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-MKTEMP = @MKTEMP@
-MOC = @MOC@
-MSGFMT = @MSGFMT@
-MSGMERGE = @MSGMERGE@
-M_LIBS = @M_LIBS@
-NEED_LIBXPROF_FALSE = @NEED_LIBXPROF_FALSE@
-NEED_LIBXPROF_TRUE = @NEED_LIBXPROF_TRUE@
-NET_LIBS = @NET_LIBS@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OPT_DLOPEN_JAVA_LIBS = @OPT_DLOPEN_JAVA_LIBS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PANGOFT2_CFLAGS = @PANGOFT2_CFLAGS@
-PANGOFT2_LIBS = @PANGOFT2_LIBS@
-PATHSEP = @PATHSEP@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PATH_TO_RT_JAR = @PATH_TO_RT_JAR@
-PKG_CONFIG = @PKG_CONFIG@
-POSUB = @POSUB@
-PROFILE = @PROFILE@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-QASSISTANTCLIENT_LDADD = @QASSISTANTCLIENT_LDADD@
-QEMBED = @QEMBED@
-QT_CXXFLAGS = @QT_CXXFLAGS@
-QT_GUILINK = @QT_GUILINK@
-QT_LDADD = @QT_LDADD@
-RANLIB = @RANLIB@
-REGEN_FORWARD = @REGEN_FORWARD@
-SECURITY_LIBS = @SECURITY_LIBS@
-SEMAPHORE_LIB = @SEMAPHORE_LIB@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-SUN_COMPAT_FALSE = @SUN_COMPAT_FALSE@
-SUN_COMPAT_TRUE = @SUN_COMPAT_TRUE@
-THREAD_DIR = @THREAD_DIR@
-THREAD_SYSTEM = @THREAD_SYSTEM@
-UIC = @UIC@
-USE_COMPAT_IFADDRS_FALSE = @USE_COMPAT_IFADDRS_FALSE@
-USE_COMPAT_IFADDRS_TRUE = @USE_COMPAT_IFADDRS_TRUE@
-USE_GMP = @USE_GMP@
-USE_JIT_FALSE = @USE_JIT_FALSE@
-USE_JIT_TRUE = @USE_JIT_TRUE@
-USE_NLS = @USE_NLS@
-USE_PRECOMPILED_RT_JAR_FALSE = @USE_PRECOMPILED_RT_JAR_FALSE@
-USE_PRECOMPILED_RT_JAR_TRUE = @USE_PRECOMPILED_RT_JAR_TRUE@
-VERSION = @VERSION@
-VM_LIBS = @VM_LIBS@
-XGETTEXT = @XGETTEXT@
-XML2_CONFIG = @XML2_CONFIG@
-XML_CFLAGS = @XML_CFLAGS@
-XML_LIBS = @XML_LIBS@
-XSLT_CFLAGS = @XSLT_CFLAGS@
-XSLT_CONFIG = @XSLT_CONFIG@
-XSLT_LIBS = @XSLT_LIBS@
-X_CFLAGS = @X_CFLAGS@
-X_EXTRA_LIBS = @X_EXTRA_LIBS@
-X_LIBS = @X_LIBS@
-X_PRE_LIBS = @X_PRE_LIBS@
-ZIP = @ZIP@
-ZIP_LIBS = @ZIP_LIBS@
-abssrcdir = @abssrcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_AS = @ac_ct_AS@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
-ac_ct_F77 = @ac_ct_F77@
-ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
-ac_ct_RANLIB = @ac_ct_RANLIB@
-ac_ct_STRIP = @ac_ct_STRIP@
-acx_pthread_config = @acx_pthread_config@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-datadir = @datadir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-jrebindir = @jrebindir@
-jredir = @jredir@
-jrelibdir = @jrelibdir@
-kaffe_TRANSF = @kaffe_TRANSF@
-kaffebin_TRANSF = @kaffebin_TRANSF@
-kaffeh_TRANSF = @kaffeh_TRANSF@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-nativedir = @nativedir@
-oldincludedir = @oldincludedir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-sbindir = @sbindir@
-securitydir = @securitydir@
-sharedstatedir = @sharedstatedir@
-subdirs = @subdirs@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-toolslibdir = @toolslibdir@
-with_engine = @with_engine@
-noinst_LTLIBRARIES = libclasspath.la
-AM_CPPFLAGS = \
-        -I$(top_srcdir)/kaffe/jvmpi -I$(top_builddir)/include \
-        -I$(top_srcdir)/kaffe/kaffevm/jni
-
-libclasspath_la_SOURCES = jcl.c jcl.h \
-			  jnilink.c jnilink.h \
-			  primlib.c primlib.h \
-			  native_state.c native_state.h
-
-libclasspath_la_LDFLAGS = @CLASSPATH_MODULE@
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-		&& exit 0; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  libraries/clib/awt/classpath-gtk/classpath/Makefile'; \
-	cd $(top_srcdir) && \
-	  $(AUTOMAKE) --gnu  libraries/clib/awt/classpath-gtk/classpath/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-clean-noinstLTLIBRARIES:
-	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
-	@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
-	  test "$$dir" != "$$p" || dir=.; \
-	  echo "rm -f \"$${dir}/so_locations\""; \
-	  rm -f "$${dir}/so_locations"; \
-	done
-libclasspath.la: $(libclasspath_la_OBJECTS) $(libclasspath_la_DEPENDENCIES) 
-	$(LINK)  $(libclasspath_la_LDFLAGS) $(libclasspath_la_OBJECTS) $(libclasspath_la_LIBADD) $(LIBS)
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/jcl.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/jnilink.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/native_state.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/primlib.Plo at am__quote@
-
-.c.o:
- at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
- at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c $<
-
-.c.obj:
- at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
- at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
-
-.c.lo:
- at am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
- at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
-	-rm -f *.lo
-
-clean-libtool:
-	-rm -rf .libs _libs
-
-distclean-libtool:
-	-rm -f libtool
-uninstall-info-am:
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '    { files[$$0] = 1; } \
-	       END { for (i in files) print i; }'`; \
-	mkid -fID $$unique
-tags: TAGS
-
-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	tags=; \
-	here=`pwd`; \
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '    { files[$$0] = 1; } \
-	       END { for (i in files) print i; }'`; \
-	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	    $$tags $$unique; \
-	fi
-ctags: CTAGS
-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-		$(TAGS_FILES) $(LISP)
-	tags=; \
-	here=`pwd`; \
-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-	unique=`for i in $$list; do \
-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-	  done | \
-	  $(AWK) '    { files[$$0] = 1; } \
-	       END { for (i in files) print i; }'`; \
-	test -z "$(CTAGS_ARGS)$$tags$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$tags $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && cd $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
-	list='$(DISTFILES)'; for file in $$list; do \
-	  case $$file in \
-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
-	  esac; \
-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
-	    dir="/$$dir"; \
-	    $(mkdir_p) "$(distdir)$$dir"; \
-	  else \
-	    dir=''; \
-	  fi; \
-	  if test -d $$d/$$file; then \
-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-	    fi; \
-	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-	  else \
-	    test -f $(distdir)/$$file \
-	    || cp -p $$d/$$file $(distdir)/$$file \
-	    || exit 1; \
-	  fi; \
-	done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LTLIBRARIES)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	  `test -z '$(STRIP)' || \
-	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-	mostlyclean-am
-
-distclean: distclean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-libtool distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-exec-am:
-
-install-info: install-info-am
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -rf ./$(DEPDIR)
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-	mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-info-am
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
-	clean-libtool clean-noinstLTLIBRARIES ctags distclean \
-	distclean-compile distclean-generic distclean-libtool \
-	distclean-tags distdir dvi dvi-am html html-am info info-am \
-	install install-am install-data install-data-am install-exec \
-	install-exec-am install-info install-info-am install-man \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
-	pdf pdf-am ps ps-am tags uninstall uninstall-am \
-	uninstall-info-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
===================================================================
Checking out kaffe/libraries/clib/awt/classpath-gtk/classpath/jcl.c
RCS:  /home/cvs/kaffe/kaffe/libraries/clib/awt/classpath-gtk/classpath/Attic/jcl.c,v
VERS: 1.1
***************
--- kaffe/libraries/clib/awt/classpath-gtk/classpath/jcl.c	Sat Dec  4 00:16:34 2004
+++ /dev/null	Sun Aug  4 19:57:58 2002
@@ -1,180 +0,0 @@
-/* jcl.c
-   Copyright (C) 1998 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
- 
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-/* do not move; needed here because of some macro definitions */
-#include "config.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <jcl.h>
-
-#ifndef __GNUC__
-#define __attribute__(x)	/* nothing */
-#endif
-
-JNIEXPORT void JNICALL
-JCL_ThrowException (JNIEnv * env, const char *className, const char *errMsg)
-{
-  jclass excClass;
-  if ((*env)->ExceptionOccurred (env))
-    {
-      (*env)->ExceptionClear (env);
-    }
-  excClass = (*env)->FindClass (env, className);
-  if (excClass == NULL)
-    {
-      jclass errExcClass;
-      errExcClass =
-	(*env)->FindClass (env, "java/lang/ClassNotFoundException");
-      if (errExcClass == NULL)
-	{
-	  errExcClass = (*env)->FindClass (env, "java/lang/InternalError");
-	  if (errExcClass == NULL)
-	    {
-	      fprintf (stderr, "JCL: Utterly failed to throw exeption ");
-	      fprintf (stderr, className);
-	      fprintf (stderr, " with message ");
-	      fprintf (stderr, errMsg);
-	      return;
-	    }
-	}
-      /* Removed this (more comprehensive) error string to avoid the need for
-       * a static variable or allocation of a buffer for this message in this
-       * (unlikely) error case. --Fridi. 
-       *
-       * sprintf(errstr,"JCL: Failed to throw exception %s with message %s: could not find exception class.", className, errMsg); 
-       */
-      (*env)->ThrowNew (env, errExcClass, className);
-    }
-  (*env)->ThrowNew (env, excClass, errMsg);
-}
-
-JNIEXPORT void *JNICALL
-JCL_malloc (JNIEnv * env, size_t size)
-{
-  void *mem = malloc (size);
-  if (mem == NULL)
-    {
-      JCL_ThrowException (env, "java/lang/OutOfMemoryError",
-			  "malloc() failed.");
-      return NULL;
-    }
-  return mem;
-}
-
-JNIEXPORT void *JNICALL
-JCL_realloc (JNIEnv * env, void *ptr, size_t size)
-{
-  ptr = realloc (ptr, size);
-  if (ptr == 0)
-    {
-      JCL_ThrowException (env, "java/lang/OutOfMemoryError",
-			  "malloc() failed.");
-      return NULL;
-    }
-  return (ptr);
-}
-
-JNIEXPORT void JNICALL
-JCL_free (JNIEnv * env __attribute__ ((unused)), void *p)
-{
-  if (p != NULL)
-    {
-      free (p);
-    }
-}
-
-JNIEXPORT const char *JNICALL
-JCL_jstring_to_cstring (JNIEnv * env, jstring s)
-{
-  const char *cstr;
-  if (s == NULL)
-    {
-      JCL_ThrowException (env, "java/lang/NullPointerException",
-			  "Null string");
-      return NULL;
-    }
-  cstr = (const char *) (*env)->GetStringUTFChars (env, s, NULL);
-  if (cstr == NULL)
-    {
-      JCL_ThrowException (env, "java/lang/InternalError",
-			  "GetStringUTFChars() failed.");
-      return NULL;
-    }
-  return cstr;
-}
-
-JNIEXPORT void JNICALL
-JCL_free_cstring (JNIEnv * env, jstring s, const char *cstr)
-{
-  (*env)->ReleaseStringUTFChars (env, s, cstr);
-}
-
-JNIEXPORT jint JNICALL
-JCL_MonitorEnter (JNIEnv * env, jobject o)

*** Patch too long, truncated ***




More information about the kaffe mailing list