summaryrefslogtreecommitdiff
path: root/js/Misc/generic_block.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-18 17:30:31 +0530
committerSunil Shetye2018-06-18 20:30:18 +0530
commitcd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76 (patch)
tree56407047bba37f94b7b5f00890b4385cefa502fd /js/Misc/generic_block.js
parent0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (diff)
downloadsci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.tar.gz
sci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.tar.bz2
sci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.zip
use format string
Diffstat (limited to 'js/Misc/generic_block.js')
-rw-r--r--js/Misc/generic_block.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js
index 5b420771..81a7aad4 100644
--- a/js/Misc/generic_block.js
+++ b/js/Misc/generic_block.js
@@ -35,7 +35,7 @@ label[9-1]=[];
while (true) {
[ok,function_name,funtyp,i,o,ci,co,xx,z,rpar,ipar,auto0,depu,dept,lab]=scicos_getvalue("Set GENERIC block parameters",["simulation function","function type (0,1,2,..)","input ports sizes","output port sizes","input event ports sizes","output events ports sizes","initial continuous state","initial discrete state","Real parameters vector","Integer parameters vector","initial firing vector (<0 for no firing)","direct feedthrough (y or n)","time dependence (y or n)"],list("str",1,"vec",1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec","sum(%6)","str",1,"str",1),label);
if (!ok) {
-break
+break;
}
label=lab;
function_name=stripblanks(function_name);
@@ -89,7 +89,7 @@ arg1.model=model;
graphics.exprs=label;
arg1.graphics=graphics;
x=arg1;
-break
+break;
}
}
needcompile=resume(needcompile)