From 78fa75b6333ba14c630b26f84d7fe99931467d2c Mon Sep 17 00:00:00 2001 From: jofret Date: Thu, 23 Feb 2012 13:16:27 +0000 Subject: Scilab2c version 2.2 --- etc/scilab2c.start | 1 + macros/getScilab2cVersion.sci | 15 +++++++++++++++ macros/runsci2c.sci | 7 +++++++ macros/scilab2c.sci | 2 +- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 macros/getScilab2cVersion.sci 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" -- cgit