summaryrefslogtreecommitdiff
path: root/src/Scilab2C/Scilab2C/CCodeGeneration/GetWhileCondVariable.sci
blob: 1a76023ae8df78559b5fa952c1afe902f6cb68a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function SharedInfo = GetWhileCondVariable(OutArg,NOutArg,FunctionName,FileInfo,SharedInfo)
// function SharedInfo = GetWhileCondVariable(OutArg,NOutArg,FunctionName,FileInfo,SharedInfo)
// -----------------------------------------------------------------
//
// Status:
// 26-Oct-2007 -- Raffaele Nutricato: Author.
// 26-Oct-2007 -- Alberto Morea: Test Ok.
//
// Copyright 2007 Raffaele Nutricato.
// Contact: raffaele.nutricato@tiscali.it
// -----------------------------------------------------------------

SCI2CNInArgCheck(argn(2),5,5);

nxtscifunname        = SharedInfo.NextSCIFunName;
nxtscifunnumber      = SharedInfo.NextSCIFunNumber;
ReportFileName       = FileInfo.Funct(nxtscifunnumber).ReportFileName;

if ((SharedInfo.WhileExpr.OnExec > 0) & (NOutArg==1))
   SharedInfo.WhileExpr.CondVar = OutArg(1).Name;
      SharedInfo.WhileExpr.DimCondVar = OutArg(1).Dimension;
end

endfunction