summaryrefslogtreecommitdiff
path: root/macros/ToolInitialization/UpdateSCI2CInfo.sci
diff options
context:
space:
mode:
authorMushirahmed2016-01-15 16:47:41 +0530
committerMushirahmed2016-01-15 16:47:41 +0530
commit05ccd0b6ec64ec92722e482e00d3082306b21a0a (patch)
treef56951f10d7fe8e534aff81d4287bb090bf157c5 /macros/ToolInitialization/UpdateSCI2CInfo.sci
parentcad39eb3d3f3509eb44e87e2aeac210e9328fdc0 (diff)
parent1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff)
downloadScilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.gz
Scilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.tar.bz2
Scilab2C_fossee_old-05ccd0b6ec64ec92722e482e00d3082306b21a0a.zip
merge before windows testing lapack and Makefile.mak file
Diffstat (limited to 'macros/ToolInitialization/UpdateSCI2CInfo.sci')
-rw-r--r--macros/ToolInitialization/UpdateSCI2CInfo.sci7
1 files changed, 6 insertions, 1 deletions
diff --git a/macros/ToolInitialization/UpdateSCI2CInfo.sci b/macros/ToolInitialization/UpdateSCI2CInfo.sci
index 445507b..253299a 100644
--- a/macros/ToolInitialization/UpdateSCI2CInfo.sci
+++ b/macros/ToolInitialization/UpdateSCI2CInfo.sci
@@ -61,7 +61,12 @@ FileInfo.Funct(funnumber).PfxP1WhileEpilFileName = fullfile(FileInfo.WorkingDir,
FileInfo.Funct(funnumber).CPass1FreeFileName = fullfile(FileInfo.WorkingDir,funname,SharedInfo.NextCFunName+'_pass1free.c');
FileInfo.Funct(funnumber).CPass2FileName = fullfile(FileInfo.WorkingDir,funname,SharedInfo.NextCFunName+'_pass2.c');
FileInfo.Funct(funnumber).Pass1HeaderFileName = fullfile(FileInfo.WorkingDir,funname,SharedInfo.NextCFunName+'.h');
-FileInfo.Funct(funnumber).FinalCFileName = fullfile(FileInfo.OutCCCodeDir,SharedInfo.NextCFunName+'.c');
+if (SharedInfo.OutFormat == 'Arduino')
+//In case of "Arduino" target, *.cpp files should be generated, not *.c files.
+ FileInfo.Funct(funnumber).FinalCFileName = fullfile(FileInfo.OutCCCodeDir,SharedInfo.NextCFunName+'.cpp');
+else
+ FileInfo.Funct(funnumber).FinalCFileName = fullfile(FileInfo.OutCCCodeDir,SharedInfo.NextCFunName+'.c');
+end
FileInfo.Funct(funnumber).FinalHeaderFileName = fullfile(FileInfo.OutCCCodeDir,SharedInfo.NextCFunName+'.h');
FileInfo.Funct(funnumber).CInitVarsFileName = fullfile(FileInfo.WorkingDir,funname,SharedInfo.NextCFunName+'_initvars.c');
FileInfo.Funct(funnumber).CDeclarationFileName = fullfile(FileInfo.WorkingDir,funname,SharedInfo.NextCFunName+'_declarations.c');