From: Doni Pracner Date: Wed, 8 Jan 2014 16:09:16 +0000 (+0100) Subject: mjc2wsl - minor - use 'loc' to generate local names always X-Git-Tag: v0.1.4~38 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=9a00b56dbb4af4b59c426387e4a2156c5757b0c4;p=mjc2wsl.git mjc2wsl - minor - use 'loc' to generate local names always --- diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index fd360e2..65b6348 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -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: {