summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/AST_HandleFunCC.sci
diff options
context:
space:
mode:
authorukashanoor2017-06-27 16:51:16 +0530
committerukashanoor2017-06-27 16:51:16 +0530
commitf15ab8a9f06e3936309886b52b0eb547ab1094e0 (patch)
treeda9c1a9de0bc0d96fc3821120efc34d074f99ca8 /macros/ASTManagement/AST_HandleFunCC.sci
parent956aa2b9bcf6171234bc9749acbfabf8660beade (diff)
downloadScilab2C_fossee_old-f15ab8a9f06e3936309886b52b0eb547ab1094e0.tar.gz
Scilab2C_fossee_old-f15ab8a9f06e3936309886b52b0eb547ab1094e0.tar.bz2
Scilab2C_fossee_old-f15ab8a9f06e3936309886b52b0eb547ab1094e0.zip
matrix complete1
Diffstat (limited to 'macros/ASTManagement/AST_HandleFunCC.sci')
-rw-r--r--macros/ASTManagement/AST_HandleFunCC.sci24
1 files changed, 17 insertions, 7 deletions
diff --git a/macros/ASTManagement/AST_HandleFunCC.sci b/macros/ASTManagement/AST_HandleFunCC.sci
index 063cdc4..12cb577 100644
--- a/macros/ASTManagement/AST_HandleFunCC.sci
+++ b/macros/ASTManagement/AST_HandleFunCC.sci
@@ -160,13 +160,23 @@ for i = 1:NInArg
end
-PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y');
-OutArg(1).Type = InArg(1).Type;
-OutArg(1).Size(1) = string(NRow);
-OutArg(1).Size(2) = string(NCol);
-OutArg(1).Dimension = 2;
-OutArg(1).Value = InArg(1).Value;
-OutArg(1).FindLike = InArg(1).FindLike;
+if com_type == 0
+ PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y');
+ OutArg(1).Type = InArg(1).Type;
+ OutArg(1).Size(1) = string(NCol);
+ OutArg(1).Size(2) = string(NRow);
+ OutArg(1).Dimension = 2;
+ OutArg(1).Value = InArg(1).Value;
+ OutArg(1).FindLike = InArg(1).FindLike;
+else
+ PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y');
+ OutArg(1).Type = 'z';
+ OutArg(1).Size(1) = string(NCol);
+ OutArg(1).Size(2) = string(NRow);
+ OutArg(1).Dimension = 2;
+ OutArg(1).Value = InArg(1).Value;
+ OutArg(1).FindLike = InArg(1).FindLike;
+end
//--- Check for output Argument in symbol table ---//
OutArg = ST_AnalyzeScope(OutArg,NOutArg,FileInfo,SharedInfo);