From: DeaDDooMER Date: Sun, 27 Aug 2017 15:32:03 +0000 (+0300) Subject: JVM: исправлена лишняя печать локальных переменных (.var) X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=9cc08bacbf56ebf49e17c8745ac6418fa4be1d0c;p=dsw-obn.git JVM: исправлена лишняя печать локальных переменных (.var) --- diff --git a/Test.obn b/Test.obn index f8a3688..6fae529 100644 --- a/Test.obn +++ b/Test.obn @@ -1,22 +1,3 @@ MODULE Test; -IMPORT Out, CPMath, CPStrings; - - -VAR - s : ARRAY 80 OF CHAR; - v, m, r, f : LONGREAL; - e : LONGINT; - -BEGIN - v := CPMath.Pi(); - m := CPMath.Mantissa(v); - e := CPMath.Exponent(v); - r := CPMath.Real(m, e); - f := CPMath.Frac(v); - Out.LongReal(v, 0); Out.Ln; - Out.LongReal(m, 0); Out.Ln; - Out.Int(e, 0); Out.Ln; - Out.LongReal(r, 0); Out.Ln; - Out.LongReal(f, 0); Out.Ln; END Test. diff --git a/src/backends/jvm/generator-jvm-abi.c b/src/backends/jvm/generator-jvm-abi.c index d1e87f1..f277188 100644 --- a/src/backends/jvm/generator-jvm-abi.c +++ b/src/backends/jvm/generator-jvm-abi.c @@ -256,12 +256,13 @@ jvm_generate_var(gen_var_t * v) case JVM_STORAGE_REGISTER: case JVM_STORAGE_PARAM: case JVM_STORAGE_PARAM_VAR: - case JVM_STORAGE_FRAME: - case JVM_STORAGE_FRAME_VAR: case JVM_STORAGE_FRAME_PARAM: case JVM_STORAGE_FRAME_PARAM_VAR: jvm_generate(p, 0, 0, ".var %i is '%s' %s from start to end", reg, name, desc); break; + case JVM_STORAGE_FRAME: + case JVM_STORAGE_FRAME_VAR: + break; case JVM_STORAGE_REGISTER_VAR: jvm_generate(p, 0, 0, ".var %i is '%s' [%s from start to end", reg, name, desc); break;