diff options
Diffstat (limited to 'js/Branching/GOTO.js')
-rw-r--r-- | js/Branching/GOTO.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js index 137b92df..9c9bca66 100644 --- a/js/Branching/GOTO.js +++ b/js/Branching/GOTO.js @@ -1,21 +1,21 @@ /* autogenerated from "macros/Branching/GOTO.sci" */ function GOTO() { GOTO.prototype.define = function GOTO() { - model = scicos_model(); - model.sim = "goto"; - model.in1 = -1; - model.in2 = -2; - model.intyp = -1; - model.out = []; - model.out2 = []; - model.outtyp = 1; - model.ipar = int(1); - model.opar = list("A"); - model.blocktype = "c"; - model.dep_ut = [false,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString("goto"); + this.model.in1 = new ScilabDouble(-1); + this.model.in2 = new ScilabDouble(-2); + this.model.intyp = new ScilabDouble(-1); + this.model.out = []; + this.model.out2 = []; + this.model.outtyp = new ScilabDouble(1); + this.model.ipar = new ScilabDouble(int(1)); + this.model.opar = list("A"); + this.model.blocktype = new ScilabString("c"); + this.model.dep_ut = [false,false]; exprs = [["A"],[sci2exp(1)]]; gr_i = []; - this.x = standard_define([2,1],model,exprs,gr_i); + this.x = standard_define([2,1],this.model,exprs,gr_i); this.x.graphics.id = "Goto"; return new BasicBlock(this.x); } @@ -35,7 +35,7 @@ function GOTO() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; while (true) { [ok,this.tag,this.tagvis,exprs] = scicos_getvalue("Set parameters",["Tag","Tag Visibility(1=Local 2=scoped 3= global)"],list("str",-1,"vec",1),exprs); if (!ok) { @@ -47,14 +47,14 @@ function GOTO() { ok = false; } if (ok) { - if (((model.ipar!=this.tagvis)||(model.opar!=list(this.tag)))) { + if (((this.model.ipar!=this.tagvis)||(this.model.opar!=list(this.tag)))) { needcompile = 4; y = needcompile; } graphics.exprs = exprs; - model.opar = list(this.tag); - model.ipar = this.tagvis; - this.x.model = model; + this.model.opar = list(this.tag); + this.model.ipar = new ScilabDouble(this.tagvis); + this.x.model = this.model; this.x.graphics = graphics; arg1 = this.x; break; |