summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorsiddhu89902015-12-08 11:43:14 +0530
committersiddhu89902015-12-08 11:43:14 +0530
commit56d929da6683ca38ab07870173dba5aadb451403 (patch)
tree481583d1acbde742f975ea7b140f005d4ac08216 /macros
parent28917732a0c500c5db111ed49dbd7755758f5f72 (diff)
downloadScilab2C_fossee_old-56d929da6683ca38ab07870173dba5aadb451403.tar.gz
Scilab2C_fossee_old-56d929da6683ca38ab07870173dba5aadb451403.tar.bz2
Scilab2C_fossee_old-56d929da6683ca38ab07870173dba5aadb451403.zip
Modified so that code for all three output formats can be generated
Diffstat (limited to 'macros')
-rw-r--r--macros/ASTManagement/AST2Ccode.binbin31992 -> 31992 bytes
-rw-r--r--macros/ASTManagement/AST_CheckCommonInOutArgs.binbin16824 -> 16824 bytes
-rw-r--r--macros/ASTManagement/AST_CheckLastFunc.binbin9164 -> 9164 bytes
-rw-r--r--macros/ASTManagement/AST_CheckPrecSpecifier.binbin10864 -> 10864 bytes
-rw-r--r--macros/ASTManagement/AST_DisplayStack.binbin4704 -> 4704 bytes
-rw-r--r--macros/ASTManagement/AST_GetPrecAndLhsArg.binbin12360 -> 12360 bytes
-rw-r--r--macros/ASTManagement/AST_HandleEOL.binbin11572 -> 11572 bytes
-rw-r--r--macros/ASTManagement/AST_HandleEndProgram.binbin7968 -> 7968 bytes
-rw-r--r--macros/ASTManagement/AST_HandleHeader.binbin38100 -> 38100 bytes
-rw-r--r--macros/ASTManagement/AST_HandleWhileStatem.binbin16524 -> 16524 bytes
-rw-r--r--macros/ASTManagement/AST_ParseEqualStruct.binbin20312 -> 20312 bytes
-rw-r--r--macros/ASTManagement/AST_ParseFuncallStruct.binbin14808 -> 14808 bytes
-rw-r--r--macros/ASTManagement/AST_ParseIfExprStruct.binbin12944 -> 12944 bytes
-rw-r--r--macros/ASTManagement/AST_ParseOperStruct.binbin15484 -> 15484 bytes
-rw-r--r--macros/ASTManagement/AST_PopASTStack.binbin3896 -> 3896 bytes
-rw-r--r--macros/ASTManagement/AST_PushASTStack.binbin3300 -> 3300 bytes
-rw-r--r--macros/ASTManagement/AST_ReadASTHeader.binbin11288 -> 11288 bytes
-rw-r--r--macros/ASTManagement/AST_ReadEqualRhsNames.binbin6972 -> 6972 bytes
-rw-r--r--macros/ASTManagement/GenOutArgNames.binbin13348 -> 13348 bytes
-rw-r--r--macros/ASTManagement/SciFile2ASTFile.binbin4192 -> 4192 bytes
-rw-r--r--macros/ASTManagement/libbin1644 -> 1680 bytes
-rw-r--r--macros/ASTManagement/objectlist2string.binbin1384 -> 1384 bytes
-rw-r--r--macros/CCodeGeneration/C_FinalizeCode.binbin13696 -> 13584 bytes
-rw-r--r--macros/CCodeGeneration/C_ForExpression.binbin32208 -> 32208 bytes
-rw-r--r--macros/CCodeGeneration/C_Funcall.binbin62060 -> 62220 bytes
-rw-r--r--macros/CCodeGeneration/C_GenDeclarations.binbin21532 -> 21532 bytes
-rw-r--r--macros/CCodeGeneration/C_GenerateMakefile.binbin17792 -> 23080 bytes
-rw-r--r--macros/CCodeGeneration/C_IfExpression.binbin10612 -> 10612 bytes
-rw-r--r--macros/CCodeGeneration/C_InitHeader.binbin13696 -> 14056 bytes
-rw-r--r--macros/CCodeGeneration/C_InitHeader.sci2
-rw-r--r--macros/CCodeGeneration/C_MemAllocOutTempVars.binbin12996 -> 12996 bytes
-rw-r--r--macros/CCodeGeneration/C_Type.binbin9600 -> 4680 bytes
-rw-r--r--macros/CCodeGeneration/C_WhileExpression.binbin13196 -> 13196 bytes
-rw-r--r--macros/CCodeGeneration/GenCFunDatFiles.binbin9348 -> 9348 bytes
-rw-r--r--macros/CCodeGeneration/GetClsFileName.binbin13340 -> 13340 bytes
-rw-r--r--macros/CCodeGeneration/GetSymbolDimension.binbin8944 -> 8944 bytes
-rw-r--r--macros/CCodeGeneration/GetWhileCondVariable.binbin10228 -> 10228 bytes
-rw-r--r--macros/CCodeGeneration/JoinDeclarAndCcode.binbin21988 -> 21988 bytes
-rw-r--r--macros/CCodeGeneration/Sci2AnnotationFile.binbin7400 -> 7400 bytes
-rw-r--r--macros/CCodeGeneration/libbin972 -> 1184 bytes
-rw-r--r--macros/CCodeGeneration/names34
-rw-r--r--macros/ErrorMessages/libbin484 -> 696 bytes
-rw-r--r--macros/ErrorMessages/names2
-rw-r--r--macros/FunctionAnnotation/FA_GetFunAnn.binbin30676 -> 30676 bytes
-rw-r--r--macros/FunctionAnnotation/FA_GetOutArgInfo.binbin16712 -> 16712 bytes
-rw-r--r--macros/FunctionAnnotation/FA_GetResizeApproach.binbin10484 -> 10484 bytes
-rw-r--r--macros/FunctionAnnotation/FA_MAX.binbin5320 -> 5320 bytes
-rw-r--r--macros/FunctionAnnotation/FA_MIN.binbin4524 -> 4524 bytes
-rw-r--r--macros/FunctionAnnotation/FA_SZ_OPPLUS.binbin14040 -> 14040 bytes
-rw-r--r--macros/FunctionAnnotation/FA_SZ_OPPLUS.sci73
-rw-r--r--macros/FunctionAnnotation/FA_TP_INT16.binbin9600 -> 2888 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_INT8.binbin9600 -> 2876 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_MAX.binbin5028 -> 5028 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_MIN_REAL.binbin3512 -> 3512 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_REAL.binbin4036 -> 4036 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_UINT16.binbin9600 -> 2896 bytes
-rw-r--r--macros/FunctionAnnotation/FA_TP_UINT8.binbin9600 -> 2884 bytes
-rw-r--r--macros/FunctionAnnotation/libbin1928 -> 1964 bytes
-rw-r--r--macros/FunctionList/FL_ExistCFunction.binbin12304 -> 12304 bytes
-rw-r--r--macros/FunctionList/FL_GetFunctionClass.binbin6832 -> 6832 bytes
-rw-r--r--macros/FunctionList/FL_UpdateConverted.binbin5572 -> 5572 bytes
-rw-r--r--macros/FunctionList/FL_UpdateToBeConv.binbin14628 -> 14628 bytes
-rw-r--r--macros/FunctionList/libbin552 -> 764 bytes
-rw-r--r--macros/FunctionList/names4
-rw-r--r--macros/GeneralFunctions/File2StringArray.binbin5808 -> 5808 bytes
-rw-r--r--macros/GeneralFunctions/FunName2SciFileName.binbin6964 -> 6964 bytes
-rw-r--r--macros/GeneralFunctions/IsNanSize.binbin4344 -> 4344 bytes
-rw-r--r--macros/GeneralFunctions/KeyStr2FileStrPos.binbin10872 -> 10872 bytes
-rw-r--r--macros/GeneralFunctions/PrintStepInfo.binbin7356 -> 7356 bytes
-rw-r--r--macros/GeneralFunctions/PrintStringInfo.binbin8556 -> 8556 bytes
-rw-r--r--macros/GeneralFunctions/ReadStringCard.binbin7752 -> 7752 bytes
-rw-r--r--macros/GeneralFunctions/SCI2CCreateDir.binbin3316 -> 3316 bytes
-rw-r--r--macros/GeneralFunctions/SCI2CFindFile.binbin4344 -> 4344 bytes
-rw-r--r--macros/GeneralFunctions/SCI2CNInArgCheck.binbin3144 -> 3144 bytes
-rw-r--r--macros/GeneralFunctions/SCI2COpenFileRead.binbin3424 -> 3424 bytes
-rw-r--r--macros/GeneralFunctions/SCI2COpenFileWrite.binbin3476 -> 3476 bytes
-rw-r--r--macros/GeneralFunctions/SCI2Ccopyfile.binbin5712 -> 5712 bytes
-rw-r--r--macros/GeneralFunctions/SCI2Cmdelete.binbin4132 -> 4132 bytes
-rw-r--r--macros/GeneralFunctions/filenamefprintf.binbin6576 -> 6576 bytes
-rw-r--r--macros/GeneralFunctions/libbin1096 -> 1308 bytes
-rw-r--r--macros/GeneralFunctions/names40
-rw-r--r--macros/Hardware/AVR/AVRADCSetup.binbin0 -> 4168 bytes
-rw-r--r--macros/Hardware/AVR/AVRDigitalIn.binbin0 -> 3688 bytes
-rw-r--r--macros/Hardware/AVR/AVRDigitalIn.sci32
-rw-r--r--macros/Hardware/AVR/AVRReadADC.binbin0 -> 4048 bytes
-rw-r--r--macros/Hardware/AVR/libbin728 -> 836 bytes
-rw-r--r--macros/Hardware/AVR/names3
-rw-r--r--macros/SymbolTable/ST_AnalyzeScope.binbin16788 -> 16788 bytes
-rw-r--r--macros/SymbolTable/ST_Del.binbin4552 -> 4552 bytes
-rw-r--r--macros/SymbolTable/ST_FindPos.binbin5104 -> 5104 bytes
-rw-r--r--macros/SymbolTable/ST_Get.binbin8108 -> 8108 bytes
-rw-r--r--macros/SymbolTable/ST_GetInArgInfo.binbin28200 -> 28200 bytes
-rw-r--r--macros/SymbolTable/ST_GetSymbolInfo.binbin13320 -> 13320 bytes
-rw-r--r--macros/SymbolTable/ST_InsForCntVars.binbin25508 -> 25508 bytes
-rw-r--r--macros/SymbolTable/ST_InsOutArg.binbin32432 -> 32432 bytes
-rw-r--r--macros/SymbolTable/ST_Load.binbin4288 -> 4288 bytes
-rw-r--r--macros/SymbolTable/ST_MatchSymbol.binbin9116 -> 9116 bytes
-rw-r--r--macros/SymbolTable/ST_Save.binbin5440 -> 5440 bytes
-rw-r--r--macros/SymbolTable/ST_Set.binbin7048 -> 7048 bytes
-rw-r--r--macros/SymbolTable/libbin692 -> 904 bytes
-rw-r--r--macros/SymbolTable/names14
-rw-r--r--macros/ToolInitialization/INIT_CreateDirs.binbin9600 -> 8900 bytes
-rw-r--r--macros/ToolInitialization/INIT_FillSCI2LibCDirs.binbin895476 -> 929056 bytes
-rw-r--r--macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci54
-rw-r--r--macros/ToolInitialization/INIT_GenAnnFLFunctions.binbin9600 -> 3460 bytes
-rw-r--r--macros/ToolInitialization/INIT_GenFileInfo.binbin13696 -> 19356 bytes
-rw-r--r--macros/ToolInitialization/INIT_GenLibraries.binbin9600 -> 8556 bytes
-rw-r--r--macros/ToolInitialization/INIT_GenSharedInfo.binbin13696 -> 19080 bytes
-rw-r--r--macros/ToolInitialization/INIT_LoadLibraries.binbin9600 -> 8844 bytes
-rw-r--r--macros/ToolInitialization/INIT_RemoveDirs.binbin13696 -> 11880 bytes
-rw-r--r--macros/ToolInitialization/INIT_SCI2C.binbin21248 -> 23840 bytes
-rw-r--r--macros/ToolInitialization/INIT_SharedInfoEqual.binbin9600 -> 6500 bytes
-rw-r--r--macros/ToolInitialization/ManageNextConversion.binbin13696 -> 11012 bytes
-rw-r--r--macros/ToolInitialization/UpdateSCI2CInfo.binbin30256 -> 37748 bytes
-rw-r--r--macros/ToolInitialization/libbin944 -> 980 bytes
-rw-r--r--macros/cb_sci2c_gui.binbin17088 -> 17820 bytes
-rw-r--r--macros/cb_sci2c_gui.sci5
-rw-r--r--macros/findDeps/findDeps.binbin5400 -> 5400 bytes
-rw-r--r--macros/findDeps/getAllHeaders.binbin21056 -> 24080 bytes
-rw-r--r--macros/findDeps/getAllInterfaces.binbin20960 -> 25384 bytes
-rw-r--r--macros/findDeps/getAllSources.binbin89504 -> 152368 bytes
-rw-r--r--macros/findDeps/getArduinoFiles.binbin9600 -> 544 bytes
-rw-r--r--macros/findDeps/libbin512 -> 748 bytes
-rw-r--r--macros/findDeps/names6
-rw-r--r--macros/libbin676 -> 712 bytes
-rw-r--r--macros/runsci2c.binbin26052 -> 26048 bytes
-rw-r--r--macros/runsci2c.sci6
-rw-r--r--macros/sci2c_gui.binbin55932 -> 57340 bytes
-rw-r--r--macros/sci2c_gui.sci14
-rw-r--r--macros/scilab2c.binbin18696 -> 19368 bytes
-rw-r--r--macros/scilab2c.sci24
131 files changed, 173 insertions, 140 deletions
diff --git a/macros/ASTManagement/AST2Ccode.bin b/macros/ASTManagement/AST2Ccode.bin
index ba4249a..8a4fc96 100644
--- a/macros/ASTManagement/AST2Ccode.bin
+++ b/macros/ASTManagement/AST2Ccode.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_CheckCommonInOutArgs.bin b/macros/ASTManagement/AST_CheckCommonInOutArgs.bin
index 1e0f617..5c190ba 100644
--- a/macros/ASTManagement/AST_CheckCommonInOutArgs.bin
+++ b/macros/ASTManagement/AST_CheckCommonInOutArgs.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_CheckLastFunc.bin b/macros/ASTManagement/AST_CheckLastFunc.bin
index cbe8308..9cac227 100644
--- a/macros/ASTManagement/AST_CheckLastFunc.bin
+++ b/macros/ASTManagement/AST_CheckLastFunc.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_CheckPrecSpecifier.bin b/macros/ASTManagement/AST_CheckPrecSpecifier.bin
index 44ecf54..8e50397 100644
--- a/macros/ASTManagement/AST_CheckPrecSpecifier.bin
+++ b/macros/ASTManagement/AST_CheckPrecSpecifier.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_DisplayStack.bin b/macros/ASTManagement/AST_DisplayStack.bin
index 5dabb75..90cbcc7 100644
--- a/macros/ASTManagement/AST_DisplayStack.bin
+++ b/macros/ASTManagement/AST_DisplayStack.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_GetPrecAndLhsArg.bin b/macros/ASTManagement/AST_GetPrecAndLhsArg.bin
index ba06562..d35ce90 100644
--- a/macros/ASTManagement/AST_GetPrecAndLhsArg.bin
+++ b/macros/ASTManagement/AST_GetPrecAndLhsArg.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_HandleEOL.bin b/macros/ASTManagement/AST_HandleEOL.bin
index c6a5a45..6547b54 100644
--- a/macros/ASTManagement/AST_HandleEOL.bin
+++ b/macros/ASTManagement/AST_HandleEOL.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_HandleEndProgram.bin b/macros/ASTManagement/AST_HandleEndProgram.bin
index 1be4e8d..5e02fdc 100644
--- a/macros/ASTManagement/AST_HandleEndProgram.bin
+++ b/macros/ASTManagement/AST_HandleEndProgram.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_HandleHeader.bin b/macros/ASTManagement/AST_HandleHeader.bin
index d5e7b6b..b2ef857 100644
--- a/macros/ASTManagement/AST_HandleHeader.bin
+++ b/macros/ASTManagement/AST_HandleHeader.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_HandleWhileStatem.bin b/macros/ASTManagement/AST_HandleWhileStatem.bin
index 441bafc..3e9942c 100644
--- a/macros/ASTManagement/AST_HandleWhileStatem.bin
+++ b/macros/ASTManagement/AST_HandleWhileStatem.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ParseEqualStruct.bin b/macros/ASTManagement/AST_ParseEqualStruct.bin
index 2000da8..459c62e 100644
--- a/macros/ASTManagement/AST_ParseEqualStruct.bin
+++ b/macros/ASTManagement/AST_ParseEqualStruct.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ParseFuncallStruct.bin b/macros/ASTManagement/AST_ParseFuncallStruct.bin
index b0fb22c..c9d996a 100644
--- a/macros/ASTManagement/AST_ParseFuncallStruct.bin
+++ b/macros/ASTManagement/AST_ParseFuncallStruct.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ParseIfExprStruct.bin b/macros/ASTManagement/AST_ParseIfExprStruct.bin
index fa6b82d..cbf6341 100644
--- a/macros/ASTManagement/AST_ParseIfExprStruct.bin
+++ b/macros/ASTManagement/AST_ParseIfExprStruct.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ParseOperStruct.bin b/macros/ASTManagement/AST_ParseOperStruct.bin
index d8d70dd..eea4c28 100644
--- a/macros/ASTManagement/AST_ParseOperStruct.bin
+++ b/macros/ASTManagement/AST_ParseOperStruct.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_PopASTStack.bin b/macros/ASTManagement/AST_PopASTStack.bin
index 245f470..f9b85d3 100644
--- a/macros/ASTManagement/AST_PopASTStack.bin
+++ b/macros/ASTManagement/AST_PopASTStack.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_PushASTStack.bin b/macros/ASTManagement/AST_PushASTStack.bin
index 98b5dc4..8fcd563 100644
--- a/macros/ASTManagement/AST_PushASTStack.bin
+++ b/macros/ASTManagement/AST_PushASTStack.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ReadASTHeader.bin b/macros/ASTManagement/AST_ReadASTHeader.bin
index e599aaf..614231c 100644
--- a/macros/ASTManagement/AST_ReadASTHeader.bin
+++ b/macros/ASTManagement/AST_ReadASTHeader.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_ReadEqualRhsNames.bin b/macros/ASTManagement/AST_ReadEqualRhsNames.bin
index a7bbfa6..a131c49 100644
--- a/macros/ASTManagement/AST_ReadEqualRhsNames.bin
+++ b/macros/ASTManagement/AST_ReadEqualRhsNames.bin
Binary files differ
diff --git a/macros/ASTManagement/GenOutArgNames.bin b/macros/ASTManagement/GenOutArgNames.bin
index e2ff5ff..c0d1834 100644
--- a/macros/ASTManagement/GenOutArgNames.bin
+++ b/macros/ASTManagement/GenOutArgNames.bin
Binary files differ
diff --git a/macros/ASTManagement/SciFile2ASTFile.bin b/macros/ASTManagement/SciFile2ASTFile.bin
index 186252c..be8bc0d 100644
--- a/macros/ASTManagement/SciFile2ASTFile.bin
+++ b/macros/ASTManagement/SciFile2ASTFile.bin
Binary files differ
diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib
index 4cd697c..36d91de 100644
--- a/macros/ASTManagement/lib
+++ b/macros/ASTManagement/lib
Binary files differ
diff --git a/macros/ASTManagement/objectlist2string.bin b/macros/ASTManagement/objectlist2string.bin
index 508d98f..96159f2 100644
--- a/macros/ASTManagement/objectlist2string.bin
+++ b/macros/ASTManagement/objectlist2string.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_FinalizeCode.bin b/macros/CCodeGeneration/C_FinalizeCode.bin
index f306cc1..5cc2148 100644
--- a/macros/CCodeGeneration/C_FinalizeCode.bin
+++ b/macros/CCodeGeneration/C_FinalizeCode.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_ForExpression.bin b/macros/CCodeGeneration/C_ForExpression.bin
index 8441f44..1c3f674 100644
--- a/macros/CCodeGeneration/C_ForExpression.bin
+++ b/macros/CCodeGeneration/C_ForExpression.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_Funcall.bin b/macros/CCodeGeneration/C_Funcall.bin
index 64ff20d..fec4712 100644
--- a/macros/CCodeGeneration/C_Funcall.bin
+++ b/macros/CCodeGeneration/C_Funcall.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_GenDeclarations.bin b/macros/CCodeGeneration/C_GenDeclarations.bin
index 8511639..8bd7257 100644
--- a/macros/CCodeGeneration/C_GenDeclarations.bin
+++ b/macros/CCodeGeneration/C_GenDeclarations.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_GenerateMakefile.bin b/macros/CCodeGeneration/C_GenerateMakefile.bin
index 57bbf43..cf4ea0e 100644
--- a/macros/CCodeGeneration/C_GenerateMakefile.bin
+++ b/macros/CCodeGeneration/C_GenerateMakefile.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_IfExpression.bin b/macros/CCodeGeneration/C_IfExpression.bin
index 46a0db7..c6cda7b 100644
--- a/macros/CCodeGeneration/C_IfExpression.bin
+++ b/macros/CCodeGeneration/C_IfExpression.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_InitHeader.bin b/macros/CCodeGeneration/C_InitHeader.bin
index 1bc3876..4513310 100644
--- a/macros/CCodeGeneration/C_InitHeader.bin
+++ b/macros/CCodeGeneration/C_InitHeader.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_InitHeader.sci b/macros/CCodeGeneration/C_InitHeader.sci
index 1c2efd6..1d67b60 100644
--- a/macros/CCodeGeneration/C_InitHeader.sci
+++ b/macros/CCodeGeneration/C_InitHeader.sci
@@ -19,7 +19,7 @@ function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName,OutForm
// ------------------------------
// --- Check input arguments. ---
// ------------------------------
-SCI2CNInArgCheck(argn(2),3,3);
+SCI2CNInArgCheck(argn(2),4,4);
// -----------------------
// --- Initialization. ---
diff --git a/macros/CCodeGeneration/C_MemAllocOutTempVars.bin b/macros/CCodeGeneration/C_MemAllocOutTempVars.bin
index 0e9c6f7..443ad3c 100644
--- a/macros/CCodeGeneration/C_MemAllocOutTempVars.bin
+++ b/macros/CCodeGeneration/C_MemAllocOutTempVars.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_Type.bin b/macros/CCodeGeneration/C_Type.bin
index 83996bb..64037d4 100644
--- a/macros/CCodeGeneration/C_Type.bin
+++ b/macros/CCodeGeneration/C_Type.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_WhileExpression.bin b/macros/CCodeGeneration/C_WhileExpression.bin
index 736c977..cff8f38 100644
--- a/macros/CCodeGeneration/C_WhileExpression.bin
+++ b/macros/CCodeGeneration/C_WhileExpression.bin
Binary files differ
diff --git a/macros/CCodeGeneration/GenCFunDatFiles.bin b/macros/CCodeGeneration/GenCFunDatFiles.bin
index 0a4f77e..6a374f5 100644
--- a/macros/CCodeGeneration/GenCFunDatFiles.bin
+++ b/macros/CCodeGeneration/GenCFunDatFiles.bin
Binary files differ
diff --git a/macros/CCodeGeneration/GetClsFileName.bin b/macros/CCodeGeneration/GetClsFileName.bin
index c5462aa..30b2571 100644
--- a/macros/CCodeGeneration/GetClsFileName.bin
+++ b/macros/CCodeGeneration/GetClsFileName.bin
Binary files differ
diff --git a/macros/CCodeGeneration/GetSymbolDimension.bin b/macros/CCodeGeneration/GetSymbolDimension.bin
index c8041cf..5c73f43 100644
--- a/macros/CCodeGeneration/GetSymbolDimension.bin
+++ b/macros/CCodeGeneration/GetSymbolDimension.bin
Binary files differ
diff --git a/macros/CCodeGeneration/GetWhileCondVariable.bin b/macros/CCodeGeneration/GetWhileCondVariable.bin
index 011320b..6815fb4 100644
--- a/macros/CCodeGeneration/GetWhileCondVariable.bin
+++ b/macros/CCodeGeneration/GetWhileCondVariable.bin
Binary files differ
diff --git a/macros/CCodeGeneration/JoinDeclarAndCcode.bin b/macros/CCodeGeneration/JoinDeclarAndCcode.bin
index d8a8408..66286eb 100644
--- a/macros/CCodeGeneration/JoinDeclarAndCcode.bin
+++ b/macros/CCodeGeneration/JoinDeclarAndCcode.bin
Binary files differ
diff --git a/macros/CCodeGeneration/Sci2AnnotationFile.bin b/macros/CCodeGeneration/Sci2AnnotationFile.bin
index b447d0c..95fe561 100644
--- a/macros/CCodeGeneration/Sci2AnnotationFile.bin
+++ b/macros/CCodeGeneration/Sci2AnnotationFile.bin
Binary files differ
diff --git a/macros/CCodeGeneration/lib b/macros/CCodeGeneration/lib
index dda98e1..9007df7 100644
--- a/macros/CCodeGeneration/lib
+++ b/macros/CCodeGeneration/lib
Binary files differ
diff --git a/macros/CCodeGeneration/names b/macros/CCodeGeneration/names
index e41125f..efbb400 100644
--- a/macros/CCodeGeneration/names
+++ b/macros/CCodeGeneration/names
@@ -1,23 +1,23 @@
-C_IfElseBlocks
-Sci2AnnotationFile
-C_GenerateSCI2CHeader
-C_SCI2CHeader
+C_FinalizeCode
+C_ForExpression
+C_Funcall
C_GenDeclarations
+C_GenerateFunName
+C_GenerateLaunchScript
+C_GenerateMakefile
+C_GenerateMakefile_msvc
+C_GenerateSCI2CHeader
+C_IfElseBlocks
+C_IfExpression
+C_IndentBlanks
+C_InitHeader
C_MemAllocOutTempVars
+C_SCI2CHeader
+C_Type
C_WhileExpression
-C_InitHeader
GenCFunDatFiles
-C_IfExpression
-C_Type
+GetClsFileName
GetSymbolDimension
-C_Funcall
-C_FinalizeCode
-JoinDeclarAndCcode
GetWhileCondVariable
-C_GenerateMakefile_msvc
-C_GenerateLaunchScript
-C_ForExpression
-C_GenerateFunName
-C_GenerateMakefile
-GetClsFileName
-C_IndentBlanks
+JoinDeclarAndCcode
+Sci2AnnotationFile
diff --git a/macros/ErrorMessages/lib b/macros/ErrorMessages/lib
index e61aba5..2b3ee2f 100644
--- a/macros/ErrorMessages/lib
+++ b/macros/ErrorMessages/lib
Binary files differ
diff --git a/macros/ErrorMessages/names b/macros/ErrorMessages/names
index b327192..f55e8f8 100644
--- a/macros/ErrorMessages/names
+++ b/macros/ErrorMessages/names
@@ -1,3 +1,3 @@
EM_NanSize
-EM_ZeroSize
EM_UnknownStep
+EM_ZeroSize
diff --git a/macros/FunctionAnnotation/FA_GetFunAnn.bin b/macros/FunctionAnnotation/FA_GetFunAnn.bin
index 7bb2f2b..d3ca8c0 100644
--- a/macros/FunctionAnnotation/FA_GetFunAnn.bin
+++ b/macros/FunctionAnnotation/FA_GetFunAnn.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_GetOutArgInfo.bin b/macros/FunctionAnnotation/FA_GetOutArgInfo.bin
index 177df55..1deaff6 100644
--- a/macros/FunctionAnnotation/FA_GetOutArgInfo.bin
+++ b/macros/FunctionAnnotation/FA_GetOutArgInfo.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_GetResizeApproach.bin b/macros/FunctionAnnotation/FA_GetResizeApproach.bin
index 6ebef2c..77397e0 100644
--- a/macros/FunctionAnnotation/FA_GetResizeApproach.bin
+++ b/macros/FunctionAnnotation/FA_GetResizeApproach.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_MAX.bin b/macros/FunctionAnnotation/FA_MAX.bin
index b69cd8f..a9debba 100644
--- a/macros/FunctionAnnotation/FA_MAX.bin
+++ b/macros/FunctionAnnotation/FA_MAX.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_MIN.bin b/macros/FunctionAnnotation/FA_MIN.bin
index 6010c4b..cc9bd02 100644
--- a/macros/FunctionAnnotation/FA_MIN.bin
+++ b/macros/FunctionAnnotation/FA_MIN.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin b/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin
index a0fa542..da84349 100644
--- a/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin
+++ b/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_SZ_OPPLUS.sci b/macros/FunctionAnnotation/FA_SZ_OPPLUS.sci
index 4ad282f..f439e23 100644
--- a/macros/FunctionAnnotation/FA_SZ_OPPLUS.sci
+++ b/macros/FunctionAnnotation/FA_SZ_OPPLUS.sci
@@ -53,110 +53,41 @@ SCI2CNInArgCheck(argn(2),4,4);
// --- Generate Output. ---
// ------------------------
// --- Get dimensions of input arguments. ---
-disp(in1type,'in1type before casting : ');
-disp(type(in1type),'in1type before casting using type function : ');
-disp(in2type,'in2type before casting : ');
-disp(type(in2type),'in2type is before casting using type function : ');
-disp(in1size,'in1size before casting : ');
-disp(size(in1size),'in1size before casting using size funcion : ');
-disp(in2size,'in2size before casting : ')
-disp(size(in2size),'in2size before casting using size function : ');
in1size = string(in1size);
in2size = string(in2size);
in1type = string(in1type);
in2type = string(in2type);
-disp(in1type,'in1type After casting : ');
-disp(type(in1type),'in1type After casting using type function : ');
-disp(in2type,'in2type After casting : ');
-disp(type(in2type),'in2type After casting using type function : ');
-disp(in1size,'in1size After casting : ');
-disp(size(in1size),'in1size After casting using size funcion : ');
-disp(in2size,'in2size After casting : ')
-disp(size(in2size),'in2size After casting using size function : ');
in1dim = GetSymbolDimension(in1size);
-in2dim = GetSymbolDimension(in2size);
-disp(in1dim,'in1dimension is : ');
-disp(in2dim,'in2dimension is : ');
+
if ((in1type ~= 'g') & (in2type ~= 'g'))
- disp("Inside 1st if condition");
opoutsize = FA_SZ_OPPLUSA(in1size,in2size);
- disp(opoutsize,'Opoutsize in 1st if condition is : ');
-disp("Going to 1st elseif statement");
elseif ((in1type == 'g') & (in2type == 'g'))
- disp("Inside to elseif statement");
opoutsize(1) = '1';
- disp(opoutsize(1),"oputsize(1) is : ")
if (isnum(in1size(1)) & isnum(in2size(1)))
- disp("Inside 2nd if condition");
in1num = eval(in1size(1));
- disp(in1num,"in1num is in 2nd if : ");
in2num = eval(in2size(1));
- disp(in2num,"in2num is in 2nd if : ");
- if (in1num > 1 & in2num > 1)
- disp("Inside 3rd if condition");
+ if (in1num > 1 | in2num > 1)
error(9999, 'String catenation can be performed only on strings of 1 x N size not N x 1 size');
//NUT: mi pare che non possano proprio esistere stringe di dimensione Nx1 perche' in
//NUT: scilab esiste il tipo string che e' di size 1x1 e sono io a trasformarlo in
//NUT: 1xN per cui se uso sempre questa convenzione non sbaglio mai.
//NUT: ho provato in scilab a fare la trasposta di una stringa e ottengo sempre 1x1.
- disp("End of 3rd if condition");
end
- disp("End of 2nd if condition");
end
if (isnum(in1size(2)) & isnum(in2size(2)))
- disp("Inside 4th if condition");
in1num = eval(in1size(2));
- disp(in1num,"in1num is in 4th if : ");
in2num = eval(in2size(2));
- disp(in2num,"in2num is in 4th if : ");
opoutsize(2) = string(in1num+in2num-1);
- disp(opoutsize(2),"Final Oputsize(2) without casting to String : ");
if isnan(opoutsize(2))
- disp("Inside 5th if condition");
opoutsize(2) = '__SCI2CNANSIZE';
- disp(opoutsize(2),"Opoutsize(2) is when it is not a Number : ");
else
opoutsize(2) = string(opoutsize(2));
- disp(opoutsize(2),"Opoutsize(2) is casting to String : ");
end
- disp("Outside of 5th if condition");
else
opoutsize(2) = '('+string(in1size(2))+'+'+string(in2size(2))+'-1)';
- disp(opoutsize(2),"Final Opoutsize(2) casting to String : ")
- end
- disp("Outside 4th if condition");
-disp("Going to Inside 2nd elseif condition");
-
-elseif (in2type == 'g')
- disp("Inside 4th elseif condition");
- if (isnum(in2size(2)))
- disp(in2size(2),"in2size(2) is inside 1st if of 4th elseif : ");
- if(in2size(2) == 3)
- in1num = eval(in1size(2));
- opoutsize(2) = string(in1num);
- #opoutsize = string(in1num);
- disp(opoutsize,"opoutsize inside 1st If condition of 4th elseif : ");
- else
- in2num = eval(in1size(1));
- opoutsize(1) = string(in2num);
- #opoutsize = in2num;
- disp(opoutsize,"opoutsize inside 1st Else condition of 4th elseif : ");
- end
- disp("OutSide of 1st if condition of 4th elseif");
-
- else
- disp("Inside else condition of 4th else")
- if(in2size(2) == 3)
- opoutsize(2) = '('+string(in1size(2))+')';
- disp(opoutsize(2),"Final Opoutsize(2) is not a number : ")
- else
- opoutsize(1) = '('+string(in1size(1))+')';
- disp(opoutsize(1),"Final Opoutsize(1) is not a number : ")
- end
end
else
error(9999, 'Unexpected type combination for ""+"" operator (type1,type2): ('+in1type+in2type+').');
end
endfunction
-
diff --git a/macros/FunctionAnnotation/FA_TP_INT16.bin b/macros/FunctionAnnotation/FA_TP_INT16.bin
index 2ffc10e..2ebb734 100644
--- a/macros/FunctionAnnotation/FA_TP_INT16.bin
+++ b/macros/FunctionAnnotation/FA_TP_INT16.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_INT8.bin b/macros/FunctionAnnotation/FA_TP_INT8.bin
index 3455174..3f5055f 100644
--- a/macros/FunctionAnnotation/FA_TP_INT8.bin
+++ b/macros/FunctionAnnotation/FA_TP_INT8.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_MAX.bin b/macros/FunctionAnnotation/FA_TP_MAX.bin
index fabb6d2..099ea1b 100644
--- a/macros/FunctionAnnotation/FA_TP_MAX.bin
+++ b/macros/FunctionAnnotation/FA_TP_MAX.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin b/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin
index fa2d4c3..60293a1 100644
--- a/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin
+++ b/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_REAL.bin b/macros/FunctionAnnotation/FA_TP_REAL.bin
index 14f3101..7e54122 100644
--- a/macros/FunctionAnnotation/FA_TP_REAL.bin
+++ b/macros/FunctionAnnotation/FA_TP_REAL.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_UINT16.bin b/macros/FunctionAnnotation/FA_TP_UINT16.bin
index 5c0ec30..687024f 100644
--- a/macros/FunctionAnnotation/FA_TP_UINT16.bin
+++ b/macros/FunctionAnnotation/FA_TP_UINT16.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/FA_TP_UINT8.bin b/macros/FunctionAnnotation/FA_TP_UINT8.bin
index 6966139..02e7404 100644
--- a/macros/FunctionAnnotation/FA_TP_UINT8.bin
+++ b/macros/FunctionAnnotation/FA_TP_UINT8.bin
Binary files differ
diff --git a/macros/FunctionAnnotation/lib b/macros/FunctionAnnotation/lib
index 50f6251..c2025c8 100644
--- a/macros/FunctionAnnotation/lib
+++ b/macros/FunctionAnnotation/lib
Binary files differ
diff --git a/macros/FunctionList/FL_ExistCFunction.bin b/macros/FunctionList/FL_ExistCFunction.bin
index 1182a7f..1c85aa2 100644
--- a/macros/FunctionList/FL_ExistCFunction.bin
+++ b/macros/FunctionList/FL_ExistCFunction.bin
Binary files differ
diff --git a/macros/FunctionList/FL_GetFunctionClass.bin b/macros/FunctionList/FL_GetFunctionClass.bin
index 5ad5b2f..faa210e 100644
--- a/macros/FunctionList/FL_GetFunctionClass.bin
+++ b/macros/FunctionList/FL_GetFunctionClass.bin
Binary files differ
diff --git a/macros/FunctionList/FL_UpdateConverted.bin b/macros/FunctionList/FL_UpdateConverted.bin
index 9bb513b..73f2cf0 100644
--- a/macros/FunctionList/FL_UpdateConverted.bin
+++ b/macros/FunctionList/FL_UpdateConverted.bin
Binary files differ
diff --git a/macros/FunctionList/FL_UpdateToBeConv.bin b/macros/FunctionList/FL_UpdateToBeConv.bin
index 99a4a71..44b5803 100644
--- a/macros/FunctionList/FL_UpdateToBeConv.bin
+++ b/macros/FunctionList/FL_UpdateToBeConv.bin
Binary files differ
diff --git a/macros/FunctionList/lib b/macros/FunctionList/lib
index 9e2efca..32c92be 100644
--- a/macros/FunctionList/lib
+++ b/macros/FunctionList/lib
Binary files differ
diff --git a/macros/FunctionList/names b/macros/FunctionList/names
index 60e9c04..c40e30c 100644
--- a/macros/FunctionList/names
+++ b/macros/FunctionList/names
@@ -1,6 +1,6 @@
FL_ExistCFunction
-FL_UpdateConverted
FL_ExtractFuncList
-FL_InOutArgs2CFunNames
FL_GetFunctionClass
+FL_InOutArgs2CFunNames
+FL_UpdateConverted
FL_UpdateToBeConv
diff --git a/macros/GeneralFunctions/File2StringArray.bin b/macros/GeneralFunctions/File2StringArray.bin
index 861d324..1b050f4 100644
--- a/macros/GeneralFunctions/File2StringArray.bin
+++ b/macros/GeneralFunctions/File2StringArray.bin
Binary files differ
diff --git a/macros/GeneralFunctions/FunName2SciFileName.bin b/macros/GeneralFunctions/FunName2SciFileName.bin
index 9e4a57c..c3cb538 100644
--- a/macros/GeneralFunctions/FunName2SciFileName.bin
+++ b/macros/GeneralFunctions/FunName2SciFileName.bin
Binary files differ
diff --git a/macros/GeneralFunctions/IsNanSize.bin b/macros/GeneralFunctions/IsNanSize.bin
index 1f8a65e..7173512 100644
--- a/macros/GeneralFunctions/IsNanSize.bin
+++ b/macros/GeneralFunctions/IsNanSize.bin
Binary files differ
diff --git a/macros/GeneralFunctions/KeyStr2FileStrPos.bin b/macros/GeneralFunctions/KeyStr2FileStrPos.bin
index c5f5456..5c6cfaf 100644
--- a/macros/GeneralFunctions/KeyStr2FileStrPos.bin
+++ b/macros/GeneralFunctions/KeyStr2FileStrPos.bin
Binary files differ
diff --git a/macros/GeneralFunctions/PrintStepInfo.bin b/macros/GeneralFunctions/PrintStepInfo.bin
index 2387918..98208f8 100644
--- a/macros/GeneralFunctions/PrintStepInfo.bin
+++ b/macros/GeneralFunctions/PrintStepInfo.bin
Binary files differ
diff --git a/macros/GeneralFunctions/PrintStringInfo.bin b/macros/GeneralFunctions/PrintStringInfo.bin
index 0e301c4..c936b20 100644
--- a/macros/GeneralFunctions/PrintStringInfo.bin
+++ b/macros/GeneralFunctions/PrintStringInfo.bin
Binary files differ
diff --git a/macros/GeneralFunctions/ReadStringCard.bin b/macros/GeneralFunctions/ReadStringCard.bin
index b53000a..f9b2828 100644
--- a/macros/GeneralFunctions/ReadStringCard.bin
+++ b/macros/GeneralFunctions/ReadStringCard.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2CCreateDir.bin b/macros/GeneralFunctions/SCI2CCreateDir.bin
index 881cd54..007b6fb 100644
--- a/macros/GeneralFunctions/SCI2CCreateDir.bin
+++ b/macros/GeneralFunctions/SCI2CCreateDir.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2CFindFile.bin b/macros/GeneralFunctions/SCI2CFindFile.bin
index 86048da..fe8e783 100644
--- a/macros/GeneralFunctions/SCI2CFindFile.bin
+++ b/macros/GeneralFunctions/SCI2CFindFile.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2CNInArgCheck.bin b/macros/GeneralFunctions/SCI2CNInArgCheck.bin
index 1a86841..8d96b6e 100644
--- a/macros/GeneralFunctions/SCI2CNInArgCheck.bin
+++ b/macros/GeneralFunctions/SCI2CNInArgCheck.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2COpenFileRead.bin b/macros/GeneralFunctions/SCI2COpenFileRead.bin
index c4cefcc..7d5f101 100644
--- a/macros/GeneralFunctions/SCI2COpenFileRead.bin
+++ b/macros/GeneralFunctions/SCI2COpenFileRead.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2COpenFileWrite.bin b/macros/GeneralFunctions/SCI2COpenFileWrite.bin
index 0174493..0287b3a 100644
--- a/macros/GeneralFunctions/SCI2COpenFileWrite.bin
+++ b/macros/GeneralFunctions/SCI2COpenFileWrite.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2Ccopyfile.bin b/macros/GeneralFunctions/SCI2Ccopyfile.bin
index 2252cf5..e6d0a86 100644
--- a/macros/GeneralFunctions/SCI2Ccopyfile.bin
+++ b/macros/GeneralFunctions/SCI2Ccopyfile.bin
Binary files differ
diff --git a/macros/GeneralFunctions/SCI2Cmdelete.bin b/macros/GeneralFunctions/SCI2Cmdelete.bin
index e226baf..67694b7 100644
--- a/macros/GeneralFunctions/SCI2Cmdelete.bin
+++ b/macros/GeneralFunctions/SCI2Cmdelete.bin
Binary files differ
diff --git a/macros/GeneralFunctions/filenamefprintf.bin b/macros/GeneralFunctions/filenamefprintf.bin
index 253ea28..864a494 100644
--- a/macros/GeneralFunctions/filenamefprintf.bin
+++ b/macros/GeneralFunctions/filenamefprintf.bin
Binary files differ
diff --git a/macros/GeneralFunctions/lib b/macros/GeneralFunctions/lib
index fe5c5d2..a3af87e 100644
--- a/macros/GeneralFunctions/lib
+++ b/macros/GeneralFunctions/lib
Binary files differ
diff --git a/macros/GeneralFunctions/names b/macros/GeneralFunctions/names
index 3f5c626..eb8300a 100644
--- a/macros/GeneralFunctions/names
+++ b/macros/GeneralFunctions/names
@@ -1,28 +1,28 @@
-SCI2Cstrncmp
+Array2String
ConvertPathMat2C
-dispina
-SCI2Cresize
+File2StringArray
+FunName2SciFileName
+IsNanSize
KeyStr2FileStrPos
-SCI2COpenFileWrite
-SCI2COpenFileRead
-SCI2Cflipud
-Array2String
-SCI2Ccopyfile
-SCI2Cstrncmps1size
-SCI2Cfileexist
PrintStepInfo
+PrintStringInfo
+ReadStringCard
SCI2CCreateDir
-SCI2CTemplate
-squeezestrings
-File2StringArray
+SCI2CFindFile
SCI2CNInArgCheck
+SCI2COpenFileRead
+SCI2COpenFileWrite
+SCI2CTemplate
+SCI2Ccopyfile
+SCI2Cfileexist
+SCI2Cflipud
+SCI2Cmdelete
+SCI2Cresize
SCI2Cstring
+SCI2Cstrncmp
+SCI2Cstrncmps1size
SizeInByte
-IsNanSize
-FunName2SciFileName
-SCI2Cmdelete
-float
-ReadStringCard
-PrintStringInfo
+dispina
filenamefprintf
-SCI2CFindFile
+float
+squeezestrings
diff --git a/macros/Hardware/AVR/AVRADCSetup.bin b/macros/Hardware/AVR/AVRADCSetup.bin
new file mode 100644
index 0000000..6cf45dc
--- /dev/null
+++ b/macros/Hardware/AVR/AVRADCSetup.bin
Binary files differ
diff --git a/macros/Hardware/AVR/AVRDigitalIn.bin b/macros/Hardware/AVR/AVRDigitalIn.bin
new file mode 100644
index 0000000..7ff2c98
--- /dev/null
+++ b/macros/Hardware/AVR/AVRDigitalIn.bin
Binary files differ
diff --git a/macros/Hardware/AVR/AVRDigitalIn.sci b/macros/Hardware/AVR/AVRDigitalIn.sci
new file mode 100644
index 0000000..ef57564
--- /dev/null
+++ b/macros/Hardware/AVR/AVRDigitalIn.sci
@@ -0,0 +1,32 @@
+function state = AVRDigitalIn(port,pin)
+// Function to get state (high\low) of a digital input pin on AVR
+//
+// Calling Sequence
+// state=AVRDigitalIn(port,pin)
+//
+// Parameters
+// port : port of microcontroller to be used
+// pin : pin of port (mentioned above) to be used
+// Returns
+// state : state of an input pin (HIGH\LOW)
+//
+// Description
+// Each AVR microcontroller has pins which can be configured as digital
+// inputs. These are normally divided among some 'ports' (group of pins).
+// User has to select one of these port and which pin of that port as
+// digital input.
+//
+// Examples
+// pinA0 = AVRDigitalIn(1,0) //To read state on pin 0 of port A
+//
+// See also
+// AVRDigitalOut AVRDigitalSetup
+//
+//
+// Authors
+// Siddhesh Wani
+//
+
+// This is curretly dummy function. It provides no functionality but is required
+// for providing support for generating C code for AVR.
+endfunction
diff --git a/macros/Hardware/AVR/AVRReadADC.bin b/macros/Hardware/AVR/AVRReadADC.bin
new file mode 100644
index 0000000..c106708
--- /dev/null
+++ b/macros/Hardware/AVR/AVRReadADC.bin
Binary files differ
diff --git a/macros/Hardware/AVR/lib b/macros/Hardware/AVR/lib
index 097a89f..d08afbd 100644
--- a/macros/Hardware/AVR/lib
+++ b/macros/Hardware/AVR/lib
Binary files differ
diff --git a/macros/Hardware/AVR/names b/macros/Hardware/AVR/names
index 4b941e9..6e5b61b 100644
--- a/macros/Hardware/AVR/names
+++ b/macros/Hardware/AVR/names
@@ -1,5 +1,8 @@
+AVRADCSetup
+AVRDigitalIn
AVRDigitalOut
AVRDigitalSetup
+AVRReadADC
GetAVRSupportFunctions
GetPeripheral
InsertPeripheralInList
diff --git a/macros/SymbolTable/ST_AnalyzeScope.bin b/macros/SymbolTable/ST_AnalyzeScope.bin
index db6f03f..950f704 100644
--- a/macros/SymbolTable/ST_AnalyzeScope.bin
+++ b/macros/SymbolTable/ST_AnalyzeScope.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_Del.bin b/macros/SymbolTable/ST_Del.bin
index 97af45e..c26e2e5 100644
--- a/macros/SymbolTable/ST_Del.bin
+++ b/macros/SymbolTable/ST_Del.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_FindPos.bin b/macros/SymbolTable/ST_FindPos.bin
index bdfd1b2..c7003f3 100644
--- a/macros/SymbolTable/ST_FindPos.bin
+++ b/macros/SymbolTable/ST_FindPos.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_Get.bin b/macros/SymbolTable/ST_Get.bin
index b746dbf..512e72b 100644
--- a/macros/SymbolTable/ST_Get.bin
+++ b/macros/SymbolTable/ST_Get.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_GetInArgInfo.bin b/macros/SymbolTable/ST_GetInArgInfo.bin
index 725a788..46c2154 100644
--- a/macros/SymbolTable/ST_GetInArgInfo.bin
+++ b/macros/SymbolTable/ST_GetInArgInfo.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_GetSymbolInfo.bin b/macros/SymbolTable/ST_GetSymbolInfo.bin
index 66cf57a..b8a7cf7 100644
--- a/macros/SymbolTable/ST_GetSymbolInfo.bin
+++ b/macros/SymbolTable/ST_GetSymbolInfo.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_InsForCntVars.bin b/macros/SymbolTable/ST_InsForCntVars.bin
index 0404b5a..12882fc 100644
--- a/macros/SymbolTable/ST_InsForCntVars.bin
+++ b/macros/SymbolTable/ST_InsForCntVars.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_InsOutArg.bin b/macros/SymbolTable/ST_InsOutArg.bin
index a4c9be9..94bcd3a 100644
--- a/macros/SymbolTable/ST_InsOutArg.bin
+++ b/macros/SymbolTable/ST_InsOutArg.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_Load.bin b/macros/SymbolTable/ST_Load.bin
index 4d9be56..f158c2b 100644
--- a/macros/SymbolTable/ST_Load.bin
+++ b/macros/SymbolTable/ST_Load.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_MatchSymbol.bin b/macros/SymbolTable/ST_MatchSymbol.bin
index 08d6571..bf3fb98 100644
--- a/macros/SymbolTable/ST_MatchSymbol.bin
+++ b/macros/SymbolTable/ST_MatchSymbol.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_Save.bin b/macros/SymbolTable/ST_Save.bin
index a0e1b0c..4aa50a2 100644
--- a/macros/SymbolTable/ST_Save.bin
+++ b/macros/SymbolTable/ST_Save.bin
Binary files differ
diff --git a/macros/SymbolTable/ST_Set.bin b/macros/SymbolTable/ST_Set.bin
index 3efdc24..cbd2627 100644
--- a/macros/SymbolTable/ST_Set.bin
+++ b/macros/SymbolTable/ST_Set.bin
Binary files differ
diff --git a/macros/SymbolTable/lib b/macros/SymbolTable/lib
index 3b181b8..7ff755e 100644
--- a/macros/SymbolTable/lib
+++ b/macros/SymbolTable/lib
Binary files differ
diff --git a/macros/SymbolTable/names b/macros/SymbolTable/names
index 0fdad1c..b5a7d65 100644
--- a/macros/SymbolTable/names
+++ b/macros/SymbolTable/names
@@ -1,12 +1,12 @@
-ST_FindPos
ST_AnalyzeScope
-ST_GetInArgInfo
ST_Del
-ST_GetSymbolInfo
-ST_MatchSymbol
+ST_FindPos
ST_Get
-ST_Load
-ST_InsOutArg
-ST_Set
+ST_GetInArgInfo
+ST_GetSymbolInfo
ST_InsForCntVars
+ST_InsOutArg
+ST_Load
+ST_MatchSymbol
ST_Save
+ST_Set
diff --git a/macros/ToolInitialization/INIT_CreateDirs.bin b/macros/ToolInitialization/INIT_CreateDirs.bin
index 2d6fb62..16ebab8 100644
--- a/macros/ToolInitialization/INIT_CreateDirs.bin
+++ b/macros/ToolInitialization/INIT_CreateDirs.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin
index a85721c..b2642d4 100644
--- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin
+++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
index 067a332..6d829ce 100644
--- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
+++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci
@@ -993,13 +993,9 @@ PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
PrintStringInfo('NIN= 2',ClassFileName,'file','y');
PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
-disp("Going to FA_TP_MAX");
PrintStringInfo('OUT(1).TP= FA_TP_MAX(IN(1).TP,IN(2).TP)',ClassFileName,'file','y');
-disp("Going to FA_SZ_1");
PrintStringInfo('OUT(1).SZ(1)= FA_SZ_1(FA_SZ_OPPLUS(IN(1).SZ,IN(2).SZ,IN(1).TP,IN(2).TP))',ClassFileName,'file','y');
-disp("Going to FA_SZ_2");
PrintStringInfo('OUT(1).SZ(2)= FA_SZ_2(FA_SZ_OPPLUS(IN(1).SZ,IN(2).SZ,IN(1).TP,IN(2).TP))',ClassFileName,'file','y');
-disp("Outside of FA_SZ_2");
//PrintStringInfo('NIN= 2',ClassFileName,'file','y');
@@ -4036,6 +4032,56 @@ PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file',
INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
+//------------------------------------
+//---- Class AVRADCSetup -----------
+//------------------------------------
+ClassName = 'AVRADCSetup';
+
+// --- Class Annotation. ---
+PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
+ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
+PrintStringInfo('NIN= 2',ClassFileName,'file','y');
+PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).TP= ''u8''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
+
+// --- Function List Class. ---
+ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
+PrintStringInfo('d0d0'+ArgSeparator+'u80',ClassFileName,'file','y');
+
+
+// --- Annotation Function And Function List Function. ---
+FunctionName = 'AVRADCSetup';
+PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
+
+//------------------------------------
+//---- Class AVRReadADC -----------
+//------------------------------------
+ClassName = 'AVRReadADC';
+
+// --- Class Annotation. ---
+PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y');
+ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls);
+PrintStringInfo('NIN= 1',ClassFileName,'file','y');
+PrintStringInfo('NOUT= 1 ',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).TP= ''u16''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(1)= ''1''',ClassFileName,'file','y');
+PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y');
+
+// --- Function List Class. ---
+ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls);
+PrintStringInfo('d0'+ArgSeparator+'u160',ClassFileName,'file','y');
+
+
+// --- Annotation Function And Function List Function. ---
+FunctionName = 'AVRReadADC';
+PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y');
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun);
+INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun);
+
// ////////////////////////////////////////////
// /////PARTE INTRODOTTA DA ALBERTO MOREA
diff --git a/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin b/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin
index 62ea01a..f7d2aa5 100644
--- a/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin
+++ b/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_GenFileInfo.bin b/macros/ToolInitialization/INIT_GenFileInfo.bin
index ab778fa..8f114a7 100644
--- a/macros/ToolInitialization/INIT_GenFileInfo.bin
+++ b/macros/ToolInitialization/INIT_GenFileInfo.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_GenLibraries.bin b/macros/ToolInitialization/INIT_GenLibraries.bin
index 5752c04..bc3bc87 100644
--- a/macros/ToolInitialization/INIT_GenLibraries.bin
+++ b/macros/ToolInitialization/INIT_GenLibraries.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_GenSharedInfo.bin b/macros/ToolInitialization/INIT_GenSharedInfo.bin
index 577d0d6..4a82f12 100644
--- a/macros/ToolInitialization/INIT_GenSharedInfo.bin
+++ b/macros/ToolInitialization/INIT_GenSharedInfo.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_LoadLibraries.bin b/macros/ToolInitialization/INIT_LoadLibraries.bin
index 3e87dfb..4cf0283 100644
--- a/macros/ToolInitialization/INIT_LoadLibraries.bin
+++ b/macros/ToolInitialization/INIT_LoadLibraries.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_RemoveDirs.bin b/macros/ToolInitialization/INIT_RemoveDirs.bin
index 84268c3..5b11b8d 100644
--- a/macros/ToolInitialization/INIT_RemoveDirs.bin
+++ b/macros/ToolInitialization/INIT_RemoveDirs.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_SCI2C.bin b/macros/ToolInitialization/INIT_SCI2C.bin
index 615ca83..72623b2 100644
--- a/macros/ToolInitialization/INIT_SCI2C.bin
+++ b/macros/ToolInitialization/INIT_SCI2C.bin
Binary files differ
diff --git a/macros/ToolInitialization/INIT_SharedInfoEqual.bin b/macros/ToolInitialization/INIT_SharedInfoEqual.bin
index 37ed1ac..31238a3 100644
--- a/macros/ToolInitialization/INIT_SharedInfoEqual.bin
+++ b/macros/ToolInitialization/INIT_SharedInfoEqual.bin
Binary files differ
diff --git a/macros/ToolInitialization/ManageNextConversion.bin b/macros/ToolInitialization/ManageNextConversion.bin
index 2bddc80..a34ee4f 100644
--- a/macros/ToolInitialization/ManageNextConversion.bin
+++ b/macros/ToolInitialization/ManageNextConversion.bin
Binary files differ
diff --git a/macros/ToolInitialization/UpdateSCI2CInfo.bin b/macros/ToolInitialization/UpdateSCI2CInfo.bin
index 8abfbaf..16e99c9 100644
--- a/macros/ToolInitialization/UpdateSCI2CInfo.bin
+++ b/macros/ToolInitialization/UpdateSCI2CInfo.bin
Binary files differ
diff --git a/macros/ToolInitialization/lib b/macros/ToolInitialization/lib
index 6d909b0..6240d3d 100644
--- a/macros/ToolInitialization/lib
+++ b/macros/ToolInitialization/lib
Binary files differ
diff --git a/macros/cb_sci2c_gui.bin b/macros/cb_sci2c_gui.bin
index 00bf368..3c70ac3 100644
--- a/macros/cb_sci2c_gui.bin
+++ b/macros/cb_sci2c_gui.bin
Binary files differ
diff --git a/macros/cb_sci2c_gui.sci b/macros/cb_sci2c_gui.sci
index 9d1770f..b6fbd1a 100644
--- a/macros/cb_sci2c_gui.sci
+++ b/macros/cb_sci2c_gui.sci
@@ -57,10 +57,11 @@ elseif or(get(gcbo, "tag")==["runradioall","runradiotranslate","runradiogenlib"]
// --- Output format option ---
-elseif or(get(gcbo, "tag")==["outformatradiostalone","outformatradioarduino"]) then
+elseif or(get(gcbo, "tag")==["outformatradiostalone","outformatradioarduino","outformatradioavr"]) then
set(findobj("tag", "outformatradiostalone"), "value", 0);
set(findobj("tag", "outformatradioarduino"), "value", 0);
+ set(findobj("tag", "outformatradioavr"), "value", 0);
set(gcbo, "value", 1);
@@ -115,6 +116,8 @@ elseif get(gcbo, "tag")=="convertbtn" then
OutFormat = "StandAlone";
elseif get(findobj("tag", "outformatradioarduino"), "value") == 1 then
OutFormat = "Arduino";
+ elseif get(findobj("tag", "outformatradioavr"), "value") == 1 then
+ OutFormat = "AVR";
end
CopySciCodeIntoCCode = get(findobj("tag", "sciintocradioyes"), "value") == 1;
diff --git a/macros/findDeps/findDeps.bin b/macros/findDeps/findDeps.bin
index 92fb755..fb11e00 100644
--- a/macros/findDeps/findDeps.bin
+++ b/macros/findDeps/findDeps.bin
Binary files differ
diff --git a/macros/findDeps/getAllHeaders.bin b/macros/findDeps/getAllHeaders.bin
index 9bedf9f..4314c53 100644
--- a/macros/findDeps/getAllHeaders.bin
+++ b/macros/findDeps/getAllHeaders.bin
Binary files differ
diff --git a/macros/findDeps/getAllInterfaces.bin b/macros/findDeps/getAllInterfaces.bin
index 3bde73d..b49fdbf 100644
--- a/macros/findDeps/getAllInterfaces.bin
+++ b/macros/findDeps/getAllInterfaces.bin
Binary files differ
diff --git a/macros/findDeps/getAllSources.bin b/macros/findDeps/getAllSources.bin
index 9cfa087..4943977 100644
--- a/macros/findDeps/getAllSources.bin
+++ b/macros/findDeps/getAllSources.bin
Binary files differ
diff --git a/macros/findDeps/getArduinoFiles.bin b/macros/findDeps/getArduinoFiles.bin
index 7c698ba..f8937bf 100644
--- a/macros/findDeps/getArduinoFiles.bin
+++ b/macros/findDeps/getArduinoFiles.bin
Binary files differ
diff --git a/macros/findDeps/lib b/macros/findDeps/lib
index 7c151b2..8d3728f 100644
--- a/macros/findDeps/lib
+++ b/macros/findDeps/lib
Binary files differ
diff --git a/macros/findDeps/names b/macros/findDeps/names
index 88d610b..dc32fef 100644
--- a/macros/findDeps/names
+++ b/macros/findDeps/names
@@ -1,6 +1,6 @@
-getAllSources
-getAllHeaders
-getAllInterfaces
Scilab2CDeps
findDeps
+getAllHeaders
+getAllInterfaces
+getAllSources
getArduinoFiles
diff --git a/macros/lib b/macros/lib
index 8fbf488..1b718c7 100644
--- a/macros/lib
+++ b/macros/lib
Binary files differ
diff --git a/macros/runsci2c.bin b/macros/runsci2c.bin
index 053c331..afe6e7d 100644
--- a/macros/runsci2c.bin
+++ b/macros/runsci2c.bin
Binary files differ
diff --git a/macros/runsci2c.sci b/macros/runsci2c.sci
index ac826a3..9158703 100644
--- a/macros/runsci2c.sci
+++ b/macros/runsci2c.sci
@@ -105,7 +105,7 @@ mkdir(SCI2COutputPath+"/interfaces/");
PrintStepInfo('Copying sources', FileInfo.GeneralReport,'both');
for i = 1:size(allSources, "*")
// DEBUG only
- disp("Copying "+allSources(i)+" in "+SCI2COutputPath+"/src/c/");
+ //disp("Copying "+allSources(i)+" in "+SCI2COutputPath+"/src/c/");
copyfile(allSources(i), SCI2COutputPath+"/src/c/");
end
@@ -113,7 +113,7 @@ end
PrintStepInfo('Copying headers', FileInfo.GeneralReport,'both');
for i = 1:size(allHeaders, "*")
// DEBUG only
- disp("Copying "+allHeaders(i)+" in "+SCI2COutputPath+"/includes/");
+ //disp("Copying "+allHeaders(i)+" in "+SCI2COutputPath+"/includes/");
copyfile(allHeaders(i), SCI2COutputPath+"/includes/");
end
@@ -121,7 +121,7 @@ end
PrintStepInfo('Copying interfaces', FileInfo.GeneralReport,'both');
for i = 1:size(allInterfaces, "*")
// DEBUG only
- disp("Copying "+allInterfaces(i)+" in "+SCI2COutputPath+"/interfaces/");
+ //disp("Copying "+allInterfaces(i)+" in "+SCI2COutputPath+"/interfaces/");
copyfile(allInterfaces(i), SCI2COutputPath+"/interfaces/");
end
diff --git a/macros/sci2c_gui.bin b/macros/sci2c_gui.bin
index 9bdf607..2e72ec4 100644
--- a/macros/sci2c_gui.bin
+++ b/macros/sci2c_gui.bin
Binary files differ
diff --git a/macros/sci2c_gui.sci b/macros/sci2c_gui.sci
index 3abe497..cb75b15 100644
--- a/macros/sci2c_gui.sci
+++ b/macros/sci2c_gui.sci
@@ -214,6 +214,20 @@ outformatradioarduino = uicontrol("parent", sci2cfig,...
"callback", "cb_sci2c_gui",...
"tag", "outformatradioarduino");
+outformatradioavr = uicontrol("parent", sci2cfig,...
+ "style", "radiobutton",...
+ "string", gettext("AVR"),...
+ "position",[2*margin+widgetLabelWidth+3*radiow outformaty radiow widgeth],...
+ "horizontalalignment", "left",...
+ "fontname", defaultfont,...
+ "fontunits", "points",...
+ "fontsize", 12,...
+ "min", 0, ...
+ "max", 1, ...
+ "value", 0,...
+ "callback", "cb_sci2c_gui",...
+ "tag", "outformatradioavr");
+
// --- Run mode option ---
runy = outformaty + margin + widgeth;
runlabel = uicontrol("parent", sci2cfig,...
diff --git a/macros/scilab2c.bin b/macros/scilab2c.bin
index e9fb5fa..6defd94 100644
--- a/macros/scilab2c.bin
+++ b/macros/scilab2c.bin
Binary files differ
diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci
index 64d5753..3eab16e 100644
--- a/macros/scilab2c.sci
+++ b/macros/scilab2c.sci
@@ -120,8 +120,8 @@ function scilab2c(varargin)
error(msprintf(gettext("%s: argument #%d must be: ""make"" or ""nmake"".\n"),"scilab2c",5));
return
end
- if varargin(6) <> "StandAlone" & varargin(6) <> "Arduino"
- error(msprintf(gettext("%s: argument #%d must be: ""StandAlone"" or ""Arduino"".\n"),"scilab2c",5));
+ if varargin(6) <> "StandAlone" & varargin(6) <> "Arduino" & varargin(6) <> "AVR"
+ error(msprintf(gettext("%s: argument #%d must be: ""StandAlone"" or ""Arduino"" or ""AVR"".\n"),"scilab2c",5));
return
end
UserScilabMainFile = varargin(1);
@@ -143,20 +143,24 @@ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),
// --- LAUNCH USER SCI CODE TO TEST IT BEFORE TRANSLATING IT!!! ---
-// if OutFormat == "StandAlone"
-// runscicode(UserScilabMainFile, UserSciFilesPaths);
-// end
-// --- ASK USER FOR CONTINUATION. ---
+// If OutFormat choosen is 'Standalone' then only execute the code, otherwise directly start conversion.
+ if OutFormat == "StandAlone"
+ runscicode(UserScilabMainFile, UserSciFilesPaths);
+
+ // --- ASK USER FOR CONTINUATION. ---
// Do not open confirmation box if we are not in STD mode.
- if(getscilabmode() == "STD")
- userchoice = messagebox("Exection Succesfull. Start translation ?", "modal", "info", ["Yes" "No"])
+ if(getscilabmode() == "STD")
+ userchoice = messagebox("Exection Succesfull. Start translation ?", "modal", "info", ["Yes" "No"])
+ else
+ userchoice = 1
+ end
else
- userchoice = 1
+ userchoice = 1;
end
if (userchoice == 1)
// --- LAUNCH SCI2C ---
- runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode, BuildTool,'AVR');
+ runsci2c(UserScilabMainFile, UserSciFilesPaths, CCodeOutputDir, RunMode, BuildTool,OutFormat);
end
endfunction