[kaffe] CVS kaffe-extras (kaz): Added kaffe-extras/patches/kjc-main-checkInitializers.diff.

Kaffe CVS cvs-commits at kaffe.org
Fri Nov 21 14:57:01 PST 2003


PatchSet 18 
Date: 2003/11/21 22:56:39
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
Added kaffe-extras/patches/kjc-main-checkInitializers.diff.
This is to prevent some constant fields from being left unset.

Members: 
	patches/kjc-main-checkInitializers.diff:INITIAL->1.1 

===================================================================
Checking out kaffe-extras/patches/kjc-main-checkInitializers.diff
RCS:  /home/cvs/kaffe/kaffe-extras/patches/kjc-main-checkInitializers.diff,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe-extras/patches/kjc-main-checkInitializers.diff	Fri Nov 21 22:56:40 2003
@@ -0,0 +1,22 @@
+--- kopi-2.1B/src/kjc/Main.java.orig	2002-07-16 03:53:32.000000000 +0900
++++ kopi-2.1B/src/kjc/Main.java	2003-11-21 11:33:46.000000000 +0900
+@@ -179,6 +179,18 @@
+ 	return false;
+       }
+ 
++      /* Check once again.
++       * If we could know whether this second round of checkInitializers is
++       * needed or not,  we would be able to skip it.
++       */
++      for (int count = 0; count < tree.length; count++) {
++	checkInitializers(tree[count]);
++      }
++
++      if (errorFound) {
++	return false;
++      }
++
+       for (int count = 0; count < tree.length; count++) {
+         checkBody(tree[count]);
+         if (!options.java && !options.beautify && !(environment.getAssertExtension() == KjcEnvironment.AS_ALL)) {
+




More information about the kaffe mailing list