gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - minor - use 'loc' to generate local names always
authorDoni Pracner <quinnuendo@gmail.com>
Wed, 8 Jan 2014 16:09:16 +0000 (17:09 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Wed, 8 Jan 2014 16:09:16 +0000 (17:09 +0100)
src/mjc2wsl.java

index fd360e2ba7717552a53358f4b3115889fc84b1f9..65b6348cf19b08e6e239f10510daf14464b3a69a 100644 (file)
@@ -114,7 +114,7 @@ public class mjc2wsl{
 
                ret.append("VAR < tempa := 0, tempb := 0, tempres :=0,\n\t");
                for (int i = 0; i <= 3; i++)
-                       ret.append("mjvm_loc" + i + " := 0, ");
+                       ret.append(loc(i) + " := 0, ");
                ret.append("\n  mjvm_estack := < >, mjvm_mstack := < >, "); 
                ret.append("\n  mjvm_fp := 0, mjvm_sp := 0,");
                ret.append("\n  t_e_m_p := 0 > :");
@@ -419,7 +419,7 @@ public class mjc2wsl{
                                
                                get();
                                for (int i = parameters-1; i >= 0; i--)
-                                               prl(cmdFromEStack("mjvm_loc" + i));
+                                               prl(cmdFromEStack(loc(i)));
                                break;
                        }
                        case exit: {
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner