[kaffe] CVS kaffe (inaba): Really fix for #31.

Kaffe CVS cvs-commits at kaffe.org
Sat Apr 1 14:37:17 PST 2006


PatchSet 7205 
Date: 2006/04/01 22:27:26
Author: inaba
Branch: HEAD
Tag: (none) 
Log:
Really fix for #31.

Members: 
	ChangeLog:1.4712->1.4713 
	kaffe/kaffevm/intrp/methodcalls.c:1.13->1.14 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4712 kaffe/ChangeLog:1.4713
--- kaffe/ChangeLog:1.4712	Sat Apr  1 20:30:51 2006
+++ kaffe/ChangeLog	Sat Apr  1 22:27:26 2006
@@ -1,3 +1,10 @@
+2006-04-01  Kiyo Inaba <inaba at src.ricoh.co.jp>
+
+	Really fix for #31.
+
+	* kaffe/kaffevm/intrp/methodcalls.c: Reorder the variables
+	declaration compatible with older C syntax.
+
 2006-04-01  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/kaffe.def
Index: kaffe/kaffe/kaffevm/intrp/methodcalls.c
diff -u kaffe/kaffe/kaffevm/intrp/methodcalls.c:1.13 kaffe/kaffe/kaffevm/intrp/methodcalls.c:1.14
--- kaffe/kaffe/kaffevm/intrp/methodcalls.c:1.13	Thu Mar 30 17:39:17 2006
+++ kaffe/kaffe/kaffevm/intrp/methodcalls.c	Sat Apr  1 22:27:29 2006
@@ -18,7 +18,6 @@
 #define NEED_sysdepCallMethod 1
 #endif
 
-#include "jni.h"
 #include "locks.h"
 #include "machine.h"
 #include "methodcalls.h"
@@ -89,6 +88,7 @@
 	  jint i;
 	  jint numArgs;
 	  errorInfo einfo;
+	  jvalue *newargs, *curarg;
 
 	  /* Calculate number of arguments */
 	  numArgs = sizeofSigMethod(meth, false);
@@ -98,8 +98,8 @@
 	  }
 	  numArgs += (meth->accflags & ACC_STATIC ? 0 : 1);
 
-	  jvalue *newargs = (jvalue *)alloca(sizeof(jvalue) * numArgs);
-	  jvalue *curarg = newargs;
+	  newargs = (jvalue *)alloca(sizeof(jvalue) * numArgs);
+	  curarg = newargs;
 	  for (i = 2; i < call->nrargs; i++, curarg++)
 	    {
 	      switch (call->calltype[i])




More information about the kaffe mailing list