Ok, once again: variable declarations at block beginnings! Not everyone has
authortwisti <none@none>
Sat, 6 Mar 2004 21:33:21 +0000 (21:33 +0000)
committertwisti <none@none>
Sat, 6 Mar 2004 21:33:21 +0000 (21:33 +0000)
a gcc-3.x, not even a gcc.

loader.c
src/vm/loader.c

index a258a085fe0a933190b08731644a4eded48e44f9..dc6d256c8c1e926e071b9e210f3f136320146f53 100644 (file)
--- a/loader.c
+++ b/loader.c
@@ -30,7 +30,7 @@
             Mark Probst
                        Edwin Steiner
 
-   $Id: loader.c 941 2004-03-06 17:27:56Z jowenn $
+   $Id: loader.c 945 2004-03-06 21:33:21Z twisti $
 
 */
 
@@ -2879,6 +2879,7 @@ bool class_issubclass(classinfo *sub, classinfo *super)
 void class_init(classinfo *c)
 {
        methodinfo *m;
+       native_stackframeinfo **info;
        s4 i;
 #if defined(USE_THREADS) && !defined(NATIVE_THREADS)
        int b;
@@ -2949,16 +2950,17 @@ void class_init(classinfo *c)
        blockInts = 0;
 #endif
 
+       info = builtin_asm_new_stackframeinfo();
+       (*info)->method = m;
+       (*info)->returnFromNative = 0;
+       (*info)->addrReturnFromNative = 0;
+       log_text("cl_init");
+       utf_display(m->class->name);
 
-                        native_stackframeinfo **info=builtin_asm_new_stackframeinfo();
-                        (*info)->method=m;
-                        (*info)->returnFromNative=0;
-                        (*info)->addrReturnFromNative=0;
-                       log_text("cl_init");
-                       utf_display(m->class->name);
        /* now call the initializer */
        asm_calljavafunction(m, NULL, NULL, NULL, NULL);
-                        *info=(*info)->prev;
+
+       *info = (*info)->prev;
 
 #if defined(USE_THREADS) && !defined(NATIVE_THREADS)
        assert(blockInts == 0);
index a258a085fe0a933190b08731644a4eded48e44f9..dc6d256c8c1e926e071b9e210f3f136320146f53 100644 (file)
@@ -30,7 +30,7 @@
             Mark Probst
                        Edwin Steiner
 
-   $Id: loader.c 941 2004-03-06 17:27:56Z jowenn $
+   $Id: loader.c 945 2004-03-06 21:33:21Z twisti $
 
 */
 
@@ -2879,6 +2879,7 @@ bool class_issubclass(classinfo *sub, classinfo *super)
 void class_init(classinfo *c)
 {
        methodinfo *m;
+       native_stackframeinfo **info;
        s4 i;
 #if defined(USE_THREADS) && !defined(NATIVE_THREADS)
        int b;
@@ -2949,16 +2950,17 @@ void class_init(classinfo *c)
        blockInts = 0;
 #endif
 
+       info = builtin_asm_new_stackframeinfo();
+       (*info)->method = m;
+       (*info)->returnFromNative = 0;
+       (*info)->addrReturnFromNative = 0;
+       log_text("cl_init");
+       utf_display(m->class->name);
 
-                        native_stackframeinfo **info=builtin_asm_new_stackframeinfo();
-                        (*info)->method=m;
-                        (*info)->returnFromNative=0;
-                        (*info)->addrReturnFromNative=0;
-                       log_text("cl_init");
-                       utf_display(m->class->name);
        /* now call the initializer */
        asm_calljavafunction(m, NULL, NULL, NULL, NULL);
-                        *info=(*info)->prev;
+
+       *info = (*info)->prev;
 
 #if defined(USE_THREADS) && !defined(NATIVE_THREADS)
        assert(blockInts == 0);