diff options
author | jofret | 2012-02-23 13:16:27 +0000 |
---|---|---|
committer | jofret | 2012-02-23 13:16:27 +0000 |
commit | 78fa75b6333ba14c630b26f84d7fe99931467d2c (patch) | |
tree | 25fd6618e96fee59d57fde6e4a58c1e2b378f2a9 | |
parent | 862211299a3ac69e95e9b40fc030a53705bab044 (diff) | |
download | scilab2c-78fa75b6333ba14c630b26f84d7fe99931467d2c.tar.gz scilab2c-78fa75b6333ba14c630b26f84d7fe99931467d2c.tar.bz2 scilab2c-78fa75b6333ba14c630b26f84d7fe99931467d2c.zip |
Scilab2c version 2.2
-rw-r--r-- | etc/scilab2c.start | 1 | ||||
-rw-r--r-- | macros/getScilab2cVersion.sci | 15 | ||||
-rw-r--r-- | macros/runsci2c.sci | 7 | ||||
-rw-r--r-- | macros/scilab2c.sci | 2 |
4 files changed, 24 insertions, 1 deletions
diff --git a/etc/scilab2c.start b/etc/scilab2c.start index 65b47781..14feb3c2 100644 --- a/etc/scilab2c.start +++ b/etc/scilab2c.start @@ -45,6 +45,7 @@ if or(getscilabmode() == ["NW";"STD"]) then clear pathdemos ; end +mprintf("\tVersion: "+getScilab2cVersion()+"\n"); global SCI2CHOME SCI2CHOME = root_tlbx; diff --git a/macros/getScilab2cVersion.sci b/macros/getScilab2cVersion.sci new file mode 100644 index 00000000..3ffdc197 --- /dev/null +++ b/macros/getScilab2cVersion.sci @@ -0,0 +1,15 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012-2012 - Scilab Enterprises - Bruno JOFRET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// +// + +function version=getScilab2cVersion() + version = "2.2" +endfunction diff --git a/macros/runsci2c.sci b/macros/runsci2c.sci index a6c4f38c..cb2d9823 100644 --- a/macros/runsci2c.sci +++ b/macros/runsci2c.sci @@ -123,6 +123,13 @@ for i = 1:size(allInterfaces, "*") copyfile(allInterfaces(i), SCI2COutputPath+"/interfaces/");
end
+// ------------------------------
+// --- Generate SCI2C Header. ---
+// ------------------------------
+// FIXME : Give the user the ability to set this prefix
+FunctionPrefix = "SCI2C";
+C_GenerateSCI2CHeader(SCI2COutputPath+"/includes/", FunctionPrefix);
+
// --------------------------
// --- Generate Makefile. ---
// --------------------------
diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci index 2900a625..d922e0b1 100644 --- a/macros/scilab2c.sci +++ b/macros/scilab2c.sci @@ -127,7 +127,7 @@ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), endfunction function BuildTool = getNativeBuildTool() - if MSDOS + if getos() == "Windows" BuildTool = "nmake" else BuildTool = "make" |