diff options
author | siddhu8990 | 2015-09-07 22:28:38 +0530 |
---|---|---|
committer | siddhu8990 | 2015-09-07 22:28:38 +0530 |
commit | d9d5e15f5b836cecaebe68f823318ed6637554b4 (patch) | |
tree | 79f4b1c9a8da723f12384665e8b759c52a9c49d1 /2.3-1/macros/scilab2c.sci | |
parent | bb798dd246f6eeb17601b7022fada02d613f9e76 (diff) | |
download | Scilab2C-d9d5e15f5b836cecaebe68f823318ed6637554b4.tar.gz Scilab2C-d9d5e15f5b836cecaebe68f823318ed6637554b4.tar.bz2 Scilab2C-d9d5e15f5b836cecaebe68f823318ed6637554b4.zip |
Gui restored to working state
Diffstat (limited to '2.3-1/macros/scilab2c.sci')
-rw-r--r-- | 2.3-1/macros/scilab2c.sci | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/2.3-1/macros/scilab2c.sci b/2.3-1/macros/scilab2c.sci index 82b64da3..d922e0b1 100644 --- a/2.3-1/macros/scilab2c.sci +++ b/2.3-1/macros/scilab2c.sci @@ -34,8 +34,7 @@ function scilab2c(varargin) CCodeOutputDir = varargin(2); UserSciFilesPaths = []; RunMode = 'All'; - BuildTool = getNativeBuildTool(); - OutputFormat = 'StandAlone'; + BuildTool = getNativeBuildTool(); // // scilab2c(UserScilabMainFile, CCodeOutputDir, UserSciFilesPaths) // @@ -54,8 +53,7 @@ function scilab2c(varargin) UserSciFilesPaths = varargin(3); end RunMode = "All"; - BuildTool = getNativeBuildTool(); - OutputFormat = 'StandAlone'; + BuildTool = getNativeBuildTool(); // // scilab2c(UserScilabMainFile, CCodeOutputDir, UserSciFilesPaths, RunMode) // @@ -78,9 +76,7 @@ function scilab2c(varargin) UserSciFilesPaths = varargin(3); end RunMode = varargin(4); - BuildTool = getNativeBuildTool(); - OutputFormat = 'StandAlone'; - + BuildTool = getNativeBuildTool(); case 5 for i = 1:4 if typeof(varargin(i)) <> "string" @@ -104,34 +100,7 @@ function scilab2c(varargin) UserSciFilesPaths = varargin(3); end RunMode = varargin(4); - BuildTool = varargin(5); - OutputFormat = 'StandAlone'; - - case 6 - for i = 1:4 - if typeof(varargin(i)) <> "string" - error(msprintf(gettext("%s: Wrong type for input argument #%d: String expected.\n"),"scilab2c",i)); - return - end - end - if varargin(4) <> "All" & varargin(4) <> "Translate" & varargin(4) <> "GenLibraryStructure" - error(msprintf(gettext("%s: argument #%d must be: ""All"", ""Translate"" or ""GenLibraryStructure"".\n"),"scilab2c",4)); - return - end - if varargin(5) <> "make" & varargin(5) <> "nmake" - error(msprintf(gettext("%s: argument #%d must be: ""make"" or ""nmake"".\n"),"scilab2c",5)); - return - end - UserScilabMainFile = varargin(1); - CCodeOutputDir = varargin(2); - if varargin(3) == "" - UserSciFilesPaths = []; - else - UserSciFilesPaths = varargin(3); - end - RunMode = varargin(4); - BuildTool = varargin(5); - OutputFormat = varargin(6); + BuildTool = varargin(5); else // // Calling scilab2c with more than understood values @@ -152,7 +121,7 @@ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), end if (userchoice == 1) // --- LAUNCH SCI2C --- - runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode, BuildTool, OutputFormat); + runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode, BuildTool); end endfunction @@ -163,4 +132,4 @@ function BuildTool = getNativeBuildTool() else BuildTool = "make" end -endfunction +endfunction
\ No newline at end of file |