summaryrefslogtreecommitdiff
path: root/macros/ASTManagement/AST2Ccode.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-07-08 20:18:17 +0530
committerGitHub2017-07-08 20:18:17 +0530
commitbd03b38be0918837e147e969c6bb2014900009db (patch)
tree2cd9b7b1c15092e1367ed15e81aa71ccc9e05190 /macros/ASTManagement/AST2Ccode.sci
parent97d1c6847a05bdb93557553a6bdcfd0f15feda99 (diff)
downloadScilab2C_fossee_old-bd03b38be0918837e147e969c6bb2014900009db.tar.gz
Scilab2C_fossee_old-bd03b38be0918837e147e969c6bb2014900009db.tar.bz2
Scilab2C_fossee_old-bd03b38be0918837e147e969c6bb2014900009db.zip
Revert "SCi2cDeps updated, Windows compatibility resolved"
Diffstat (limited to 'macros/ASTManagement/AST2Ccode.sci')
-rw-r--r--macros/ASTManagement/AST2Ccode.sci19
1 files changed, 0 insertions, 19 deletions
diff --git a/macros/ASTManagement/AST2Ccode.sci b/macros/ASTManagement/AST2Ccode.sci
index 136c5a1..516291a 100644
--- a/macros/ASTManagement/AST2Ccode.sci
+++ b/macros/ASTManagement/AST2Ccode.sci
@@ -44,9 +44,6 @@ nxtscifunname = SharedInfo.NextSCIFunName;
nxtscifunnumber = SharedInfo.NextSCIFunNumber;
ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName;
-SharedInfo.Function_list = [];
-SharedInfo.Function_list_index = 1;
-
// ---------------------------------
// --- Parameter Initialization. ---
// ---------------------------------
@@ -165,7 +162,6 @@ while ~meof(fidAST)
//NUT: per fare in modo di coprire le ins, anche se ci puo' essere qualche rischio quando
//NUT: ho miste ins e variabili, per esempio [c(1,1), a] = twooutfun();
//NUT: in questo caso solo una delle due equal va scartata.
-
if rc_count > 0 & cc_count == 0
[FileInfo,SharedInfo] = AST_HandleFunRC(FName,FileInfo,SharedInfo);
rc_count = 0;
@@ -186,7 +182,6 @@ while ~meof(fidAST)
SharedInfo.Equal.Enabled = 1; // 1 means enabled -> we are inside an equal AST block.
AST_PushASTStack(treeline);
case 'Lhs :' then
-
if rc_count > 0 & cc_count == 0
SharedInfo.Equal.Lhs = 1;
[EqualInArgName,EqualInArgScope,EqualNInArg] = AST_HandleRC(FileInfo,SharedInfo);
@@ -254,7 +249,6 @@ while ~meof(fidAST)
// -----------------
case 'EndProgram'
SharedInfo = AST_HandleEndProgram(FileInfo,SharedInfo);
-
disp_isthere = 0;
//NUT: per essere precisi si puo' pensare di mettere un check
//NUT: alla fine dell'albero per accertarsi che c'e' end program li' dove ce lo aspettiamo
@@ -305,19 +299,6 @@ while ~meof(fidAST)
AST_PushASTStack(treeline);
end
end
-// ------------------------------------
-// -----List of functions Used--------
-// -------------------------------------
-
-SharedInfo.Function_list_index = SharedInfo.Function_list_index - 2;
-SharedInfo.Function_list = SharedInfo.Function_list(1:SharedInfo.Function_list_index);
-//To remove function repeatedly used----------
-x = size(unique(SharedInfo.Function_list));
-SharedInfo.Function_list_index = x(1);
-SharedInfo.Function_list = unique(SharedInfo.Function_list);
-
-SharedInfo.Function_list = SharedInfo.Function_list(1:SharedInfo.Function_list_index);
-
// --------------------------------------
// --- End main loop to read the AST. ---
// --------------------------------------