summaryrefslogtreecommitdiff
path: root/macros/ASTManagement
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-08-22 20:54:30 +0530
committerAbhinav Dronamraju2017-08-22 20:54:30 +0530
commitfe525aa0b13baa3113ec22fe4f2d373db6e093d8 (patch)
treee879b5c3483c0d6b2405fc001b065f5b8c3bf182 /macros/ASTManagement
parent5b728d8239b1a1f4467e2485d54c7ed7db1d4f11 (diff)
downloadscilab2c-fe525aa0b13baa3113ec22fe4f2d373db6e093d8.tar.gz
scilab2c-fe525aa0b13baa3113ec22fe4f2d373db6e093d8.tar.bz2
scilab2c-fe525aa0b13baa3113ec22fe4f2d373db6e093d8.zip
Faurre, kalm, Mvcorrel added
Diffstat (limited to 'macros/ASTManagement')
-rw-r--r--macros/ASTManagement/AST2Ccode.sci9
-rw-r--r--macros/ASTManagement/AST_HandleEndGenFun.sci4
2 files changed, 2 insertions, 11 deletions
diff --git a/macros/ASTManagement/AST2Ccode.sci b/macros/ASTManagement/AST2Ccode.sci
index 20aa999e..d44a3393 100644
--- a/macros/ASTManagement/AST2Ccode.sci
+++ b/macros/ASTManagement/AST2Ccode.sci
@@ -16,7 +16,6 @@ function AST2Ccode(FileInfoDatFile)
// Copyright 2007 Raffaele Nutricato.
// Contact: raffaele.nutricato@tiscali.it
// -----------------------------------------------------------------
-
// ------------------------------
// --- Check input arguments. ---
// ------------------------------
@@ -75,7 +74,6 @@ FName = null
ASTFileName = FileInfo.Funct(nxtscifunnumber).ASTFileName;
-
// -----------------------
// --- Initialization. ---
// -----------------------
@@ -121,7 +119,6 @@ AST_PushASTStack('Dummy');
SharedInfo.UsedTempScalarVars = OrigUsedTempScalarVars;
//NUT: put here a manageeol so that you can have all the save and load you want.
SharedInfo.ASTReader.UsedTempVars = 0;
-
// ----------------------------------
// --- Main loop to read the AST. ---
// ----------------------------------
@@ -137,7 +134,6 @@ while ~meof(fidAST)
if STACKDEDUG == 1
disp('Read AST Line: '+treeline);
end
-
// Analyze line.
select treeline
@@ -179,7 +175,6 @@ while ~meof(fidAST)
end
disp_isthere = 0;
FName = null
-
case 'Equal' then
SharedInfo.Equal.Enabled = 1; // 1 means enabled -> we are inside an equal AST block.
AST_PushASTStack(treeline);
@@ -218,7 +213,6 @@ while ~meof(fidAST)
end
AST_PushASTStack(treeline);
end
-
// ----------------
// --- If/Else. ---
// ----------------
@@ -237,7 +231,6 @@ while ~meof(fidAST)
SharedInfo = C_IfElseBlocks(FileInfo,SharedInfo,'out');
end
SharedInfo.CountNestedIf = 0;
-
// --------------
// --- Dummy. ---
// --------------
@@ -254,7 +247,6 @@ while ~meof(fidAST)
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
-
// ------------
// --- For. ---
// ------------
@@ -316,7 +308,6 @@ SharedInfo.Function_list = SharedInfo.Function_list(1:SharedInfo.Function_list_i
-
// --------------------------------------
// --- End main loop to read the AST. ---
// --------------------------------------
diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci
index 79ec976c..455cd404 100644
--- a/macros/ASTManagement/AST_HandleEndGenFun.sci
+++ b/macros/ASTManagement/AST_HandleEndGenFun.sci
@@ -348,8 +348,8 @@ NOutArg_mod = NOutArg
OutArg(1).FindLike = InArg(1).FindLike;
OutArg(1).Scope = 'Number_d';
else
- OutArg = FA_GetOutArgInfo(InArg,NInArg,OutArg,NOutArg,SharedInfo,FunPrecSpecifier,FunTypeAnnot,FunSizeAnnot,ReportFileName,ASTFunName);
- end
+ OutArg = FA_GetOutArgInfo(InArg,NInArg,OutArg,NOutArg,SharedInfo,FunPrecSpecifier,FunTypeAnnot,FunSizeAnnot,ReportFileName,ASTFunName);
+end
// #RNU_RES_B
// --- Generate the names for the output arguments. ---