diff options
author | Abhinav Dronamraju | 2017-07-07 16:41:38 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-07 16:41:38 +0530 |
commit | 4725141f2cb4e7de494d7eae8664ab9172dafc13 (patch) | |
tree | cbcbc1a5c204087e7c54175315e98096ba1101e0 /2.3-1/macros | |
parent | 77da5591c712d5f5819afb4eeb503435336d0741 (diff) | |
download | Scilab2C-4725141f2cb4e7de494d7eae8664ab9172dafc13.tar.gz Scilab2C-4725141f2cb4e7de494d7eae8664ab9172dafc13.tar.bz2 Scilab2C-4725141f2cb4e7de494d7eae8664ab9172dafc13.zip |
Added isscalar
Diffstat (limited to '2.3-1/macros')
-rw-r--r-- | 2.3-1/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci | 32 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllHeaders.sci | 1 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllInterfaces.sci | 1 | ||||
-rw-r--r-- | 2.3-1/macros/findDeps/getAllSources.sci | 8 |
4 files changed, 42 insertions, 0 deletions
diff --git a/2.3-1/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/2.3-1/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci index c203ba70..b890c6fe 100644 --- a/2.3-1/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci +++ b/2.3-1/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci @@ -952,6 +952,38 @@ INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,E INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
// -------------------
+// --- Class Isscalar. ---
+// -------------------
+ClassName = 'Isscalar';
+
+// --- Class Annotation. ---
+PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
+ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
+PrintStringInfo('NIN= 1',ClassFileName,'file','y');
+PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
+//Was FA_TP_USER
+//Cause some trouble if user specify some precision and if input(and also output) is complex.
+PrintStringInfo('OUT(1).TP= ''g''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
+//---Function list class. ----
+ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
+PrintStringInfo('d0'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('d2'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('s2'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('s0'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('g2'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('g0'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('z2'+ArgSeparator+'g0',ClassFileName,'file','y');
+PrintStringInfo('z0'+ArgSeparator+'g0',ClassFileName,'file','y');
+
+// --- Annotation Function And Function List Function. ---
+FunctionName = 'isscalar';
+PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
+
+// -------------------
// --- Class Iscolumn. ---
// -------------------
ClassName = 'Iscolumn';
diff --git a/2.3-1/macros/findDeps/getAllHeaders.sci b/2.3-1/macros/findDeps/getAllHeaders.sci index 5dd7d820..e1ba7f6f 100644 --- a/2.3-1/macros/findDeps/getAllHeaders.sci +++ b/2.3-1/macros/findDeps/getAllHeaders.sci @@ -129,6 +129,7 @@ function allHeaders = getAllHeaders(SharedInfo) "src/c/elementaryFunctions/includes/asecd.h" "src/c/elementaryFunctions/includes/asech.h" "src/c/elementaryFunctions/includes/isrow.h" + "src/c/elementaryFunctions/includes/isscalar.h" "src/c/elementaryFunctions/includes/iscolumn.h" "src/c/elementaryFunctions/includes/ismatrix.h" "src/c/elementaryFunctions/includes/asind.h" diff --git a/2.3-1/macros/findDeps/getAllInterfaces.sci b/2.3-1/macros/findDeps/getAllInterfaces.sci index 84f3cddb..5f1ee025 100644 --- a/2.3-1/macros/findDeps/getAllInterfaces.sci +++ b/2.3-1/macros/findDeps/getAllInterfaces.sci @@ -100,6 +100,7 @@ function allInterfaces = getAllInterfaces(SharedInfo) "src/c/elementaryFunctions/interfaces/int_bitget.h" "src/c/elementaryFunctions/interfaces/int_linspace.h" "src/c/elementaryFunctions/interfaces/int_isrow.h" + "src/c/elementaryFunctions/interfaces/int_isscalar.h" "src/c/elementaryFunctions/interfaces/int_iscolumn.h" "src/c/elementaryFunctions/interfaces/int_ismatrix.h" "src/c/elementaryFunctions/interfaces/int_logspace.h" diff --git a/2.3-1/macros/findDeps/getAllSources.sci b/2.3-1/macros/findDeps/getAllSources.sci index 2124da9e..f08311b5 100644 --- a/2.3-1/macros/findDeps/getAllSources.sci +++ b/2.3-1/macros/findDeps/getAllSources.sci @@ -776,6 +776,14 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/isrow/sisrowa.c" "src/c/elementaryFunctions/isrow/zisrowa.c" "src/c/elementaryFunctions/isrow/zisrows.c" + "src/c/elementaryFunctions/isscalar/disscalara.c" + "src/c/elementaryFunctions/isscalar/disscalars.c" + "src/c/elementaryFunctions/isscalar/gisscalars.c" + "src/c/elementaryFunctions/isscalar/gisscalara.c" + "src/c/elementaryFunctions/isscalar/sisscalars.c" + "src/c/elementaryFunctions/isscalar/sisscalara.c" + "src/c/elementaryFunctions/isscalar/zisscalara.c" + "src/c/elementaryFunctions/isscalar/zisscalars.c" "src/c/elementaryFunctions/iscolumn/discolumna.c" "src/c/elementaryFunctions/iscolumn/discolumns.c" "src/c/elementaryFunctions/iscolumn/giscolumns.c" |