From 956aa2b9bcf6171234bc9749acbfabf8660beade Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Tue, 27 Jun 2017 12:40:50 +0530 Subject: matrix complete --- macros/ASTManagement/%comment_string.bin | Bin 0 -> 780 bytes macros/ASTManagement/%cste_string.bin | Bin 0 -> 3484 bytes macros/ASTManagement/%equal_string.bin | Bin 0 -> 2152 bytes macros/ASTManagement/%for_string.bin | Bin 0 -> 2124 bytes macros/ASTManagement/%funcall_string.bin | Bin 0 -> 1748 bytes macros/ASTManagement/%ifthenel_string.bin | Bin 0 -> 3784 bytes macros/ASTManagement/%ifthenelse_string.bin | Bin 0 -> 3784 bytes macros/ASTManagement/%operatio_string.bin | Bin 0 -> 2652 bytes macros/ASTManagement/%operatio_string.sci | 9 +- macros/ASTManagement/%operation_string.bin | Bin 0 -> 1352 bytes macros/ASTManagement/%operation_string.sci | 2 +- macros/ASTManagement/%program_p.bin | Bin 0 -> 520 bytes macros/ASTManagement/%program_string.bin | Bin 0 -> 3276 bytes macros/ASTManagement/%variable_string.bin | Bin 0 -> 3648 bytes macros/ASTManagement/%while_string.bin | Bin 0 -> 1972 bytes macros/ASTManagement/AST2Ccode.bin | Bin 0 -> 36896 bytes macros/ASTManagement/AST2Ccode.sci | 30 +++- macros/ASTManagement/AST_CheckCommonInOutArgs.bin | Bin 0 -> 16824 bytes macros/ASTManagement/AST_CheckLastFunc.bin | Bin 0 -> 9164 bytes macros/ASTManagement/AST_CheckLineLength.bin | Bin 0 -> 3296 bytes macros/ASTManagement/AST_CheckPrecSpecifier.bin | Bin 0 -> 10864 bytes macros/ASTManagement/AST_DisplayStack.bin | Bin 0 -> 4704 bytes macros/ASTManagement/AST_ExtractNameAndScope.bin | Bin 0 -> 13184 bytes macros/ASTManagement/AST_GetASTFile.bin | Bin 0 -> 7216 bytes macros/ASTManagement/AST_GetFuncallPrm.bin | Bin 0 -> 6872 bytes macros/ASTManagement/AST_GetPrecAndLhsArg.bin | Bin 0 -> 12552 bytes macros/ASTManagement/AST_HandleCC.bin | Bin 0 -> 10520 bytes macros/ASTManagement/AST_HandleCC.sci | 88 ++++++++++ macros/ASTManagement/AST_HandleEOL.bin | Bin 0 -> 11704 bytes macros/ASTManagement/AST_HandleEndFor.bin | Bin 0 -> 10452 bytes macros/ASTManagement/AST_HandleEndGenFun.bin | Bin 0 -> 100596 bytes macros/ASTManagement/AST_HandleEndGenFun.sci | 4 +- macros/ASTManagement/AST_HandleEndProgram.bin | Bin 0 -> 7968 bytes macros/ASTManagement/AST_HandleEndWhile.bin | Bin 0 -> 8984 bytes macros/ASTManagement/AST_HandleFor.bin | Bin 0 -> 12920 bytes macros/ASTManagement/AST_HandleForStatem.bin | Bin 0 -> 11348 bytes macros/ASTManagement/AST_HandleFunCC.bin | Bin 0 -> 20772 bytes macros/ASTManagement/AST_HandleFunCC.sci | 178 +++++++++++++++++++ macros/ASTManagement/AST_HandleFunRC.bin | Bin 0 -> 20896 bytes macros/ASTManagement/AST_HandleFunRC.sci | 37 ++-- macros/ASTManagement/AST_HandleHeader.bin | Bin 0 -> 39132 bytes macros/ASTManagement/AST_HandleIfElse.bin | Bin 0 -> 12056 bytes macros/ASTManagement/AST_HandleRC.bin | Bin 0 -> 9896 bytes macros/ASTManagement/AST_HandleRC.sci | 21 ++- macros/ASTManagement/AST_HandleWhileExpr.bin | Bin 0 -> 12140 bytes macros/ASTManagement/AST_HandleWhileStatem.bin | Bin 0 -> 15548 bytes macros/ASTManagement/AST_ParseEqualStruct.bin | Bin 0 -> 20308 bytes macros/ASTManagement/AST_ParseFuncallStruct.bin | Bin 0 -> 15024 bytes macros/ASTManagement/AST_ParseIfExprStruct.bin | Bin 0 -> 17568 bytes macros/ASTManagement/AST_ParseIfExprStruct.sci | 9 +- macros/ASTManagement/AST_ParseOperStruct.bin | Bin 0 -> 16668 bytes macros/ASTManagement/AST_PopASTStack.bin | Bin 0 -> 3896 bytes macros/ASTManagement/AST_PushASTStack.bin | Bin 0 -> 3300 bytes macros/ASTManagement/AST_ReadASTHeader.bin | Bin 0 -> 11288 bytes macros/ASTManagement/AST_ReadEqualRhsNames.bin | Bin 0 -> 6972 bytes macros/ASTManagement/GenOutArgNames.bin | Bin 0 -> 17208 bytes macros/ASTManagement/Operator2FunName.bin | Bin 0 -> 18584 bytes macros/ASTManagement/SciFile2ASTFile.bin | Bin 0 -> 4192 bytes macros/ASTManagement/_comment_string.bin | Bin 0 -> 780 bytes macros/ASTManagement/_cste_string.bin | Bin 0 -> 3484 bytes macros/ASTManagement/_equal_string.bin | Bin 0 -> 2152 bytes macros/ASTManagement/_for_string.bin | Bin 0 -> 2124 bytes macros/ASTManagement/_funcall_string.bin | Bin 0 -> 1748 bytes macros/ASTManagement/_ifthenel_string.bin | Bin 0 -> 3784 bytes macros/ASTManagement/_ifthenelse_string.bin | Bin 0 -> 3784 bytes macros/ASTManagement/_operatio_string.bin | Bin 0 -> 1352 bytes macros/ASTManagement/_operatio_string.sci | 2 +- macros/ASTManagement/_operation_string.bin | Bin 0 -> 1352 bytes macros/ASTManagement/_operation_string.sci | 2 +- macros/ASTManagement/_program_p.bin | Bin 0 -> 520 bytes macros/ASTManagement/_program_string.bin | Bin 0 -> 3276 bytes macros/ASTManagement/_variable_string.bin | Bin 0 -> 3648 bytes macros/ASTManagement/_while_string.bin | Bin 0 -> 1972 bytes macros/ASTManagement/lib | Bin 1816 -> 1864 bytes macros/ASTManagement/names | 4 +- macros/ASTManagement/objectlist2string.bin | Bin 0 -> 1384 bytes macros/CCodeGeneration/C_FinalizeCode.bin | Bin 0 -> 18232 bytes macros/CCodeGeneration/C_ForExpression.bin | Bin 0 -> 32208 bytes macros/CCodeGeneration/C_Funcall.bin | Bin 0 -> 73176 bytes macros/CCodeGeneration/C_GenDeclarations.bin | Bin 0 -> 22004 bytes macros/CCodeGeneration/C_GenDeclarations_Dup.bin | Bin 0 -> 24932 bytes macros/CCodeGeneration/C_GenDeclarations_Dup.sci | 155 ++++++++++++++++ macros/CCodeGeneration/C_GenerateFunName.bin | Bin 0 -> 7776 bytes macros/CCodeGeneration/C_GenerateLaunchScript.bin | Bin 0 -> 17232 bytes macros/CCodeGeneration/C_GenerateMakefile.bin | Bin 0 -> 32632 bytes macros/CCodeGeneration/C_GenerateMakefile_msvc.bin | Bin 0 -> 29868 bytes macros/CCodeGeneration/C_GenerateMkfle_arduino.bin | Bin 0 -> 3104 bytes macros/CCodeGeneration/C_GenerateSCI2CHeader.bin | Bin 0 -> 1936 bytes macros/CCodeGeneration/C_IfElseBlocks.bin | Bin 0 -> 8516 bytes macros/CCodeGeneration/C_IfExpression.bin | Bin 0 -> 12440 bytes macros/CCodeGeneration/C_IndentBlanks.bin | Bin 0 -> 3184 bytes macros/CCodeGeneration/C_InitHeader.bin | Bin 0 -> 14140 bytes macros/CCodeGeneration/C_MemAllocOutTempVars.bin | Bin 0 -> 12996 bytes macros/CCodeGeneration/C_SCI2CHeader.bin | Bin 0 -> 7268 bytes macros/CCodeGeneration/C_Type.bin | Bin 0 -> 6816 bytes macros/CCodeGeneration/C_WhileExpression.bin | Bin 0 -> 15704 bytes macros/CCodeGeneration/GenCFunDatFiles.bin | Bin 0 -> 9348 bytes macros/CCodeGeneration/GetClsFileName.bin | Bin 0 -> 14164 bytes macros/CCodeGeneration/GetSymbolDimension.bin | Bin 0 -> 8944 bytes macros/CCodeGeneration/GetWhileCondVariable.bin | Bin 0 -> 10228 bytes macros/CCodeGeneration/JoinDeclarAndCcode.bin | Bin 0 -> 22776 bytes macros/CCodeGeneration/Sci2AnnotationFile.bin | Bin 0 -> 7400 bytes macros/CCodeGeneration/lib | Bin 936 -> 936 bytes macros/CCodeGeneration/names | 2 +- macros/ErrorMessages/EM_NanSize.bin | Bin 0 -> 22776 bytes macros/ErrorMessages/EM_UnknownStep.bin | Bin 0 -> 18292 bytes macros/ErrorMessages/EM_ZeroSize.bin | Bin 0 -> 3200 bytes macros/FunctionAnnotation/FA_ADD.bin | Bin 0 -> 4856 bytes macros/FunctionAnnotation/FA_DIV.bin | Bin 0 -> 4904 bytes .../FunctionAnnotation/FA_GetDefaultPrecision.bin | Bin 0 -> 11384 bytes macros/FunctionAnnotation/FA_GetFunAnn.bin | Bin 0 -> 32436 bytes macros/FunctionAnnotation/FA_GetOutArgInfo.bin | Bin 0 -> 17648 bytes macros/FunctionAnnotation/FA_GetResizeApproach.bin | Bin 0 -> 10484 bytes macros/FunctionAnnotation/FA_INT.bin | Bin 0 -> 4516 bytes macros/FunctionAnnotation/FA_MAX.bin | Bin 0 -> 5320 bytes macros/FunctionAnnotation/FA_MIN.bin | Bin 0 -> 4524 bytes macros/FunctionAnnotation/FA_MUL.bin | Bin 0 -> 4932 bytes macros/FunctionAnnotation/FA_REAL.bin | Bin 0 -> 4400 bytes macros/FunctionAnnotation/FA_SCHUR_SZ.bin | Bin 0 -> 4988 bytes macros/FunctionAnnotation/FA_SCHUR_TP.bin | Bin 0 -> 4364 bytes macros/FunctionAnnotation/FA_SUB.bin | Bin 0 -> 4916 bytes macros/FunctionAnnotation/FA_SZ_1.bin | Bin 0 -> 2608 bytes macros/FunctionAnnotation/FA_SZ_2.bin | Bin 0 -> 2616 bytes macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.bin | Bin 0 -> 4612 bytes macros/FunctionAnnotation/FA_SZ_COL_DIAG_IN_EX.bin | Bin 0 -> 9196 bytes macros/FunctionAnnotation/FA_SZ_DEC2BASE.bin | Bin 0 -> 2944 bytes macros/FunctionAnnotation/FA_SZ_DEC2BIN.bin | Bin 0 -> 1820 bytes macros/FunctionAnnotation/FA_SZ_DEC2HEX.bin | Bin 0 -> 1740 bytes macros/FunctionAnnotation/FA_SZ_DEC2OCT.bin | Bin 0 -> 1820 bytes macros/FunctionAnnotation/FA_SZ_DIFF.bin | Bin 0 -> 8288 bytes macros/FunctionAnnotation/FA_SZ_FACTOR.bin | Bin 0 -> 1464 bytes macros/FunctionAnnotation/FA_SZ_FROM_VAL.bin | Bin 0 -> 3448 bytes macros/FunctionAnnotation/FA_SZ_LINSPACE_ROW.bin | Bin 0 -> 4296 bytes macros/FunctionAnnotation/FA_SZ_LQE.bin | Bin 0 -> 4928 bytes macros/FunctionAnnotation/FA_SZ_LQR.bin | Bin 0 -> 4484 bytes macros/FunctionAnnotation/FA_SZ_OBSCNT.bin | Bin 0 -> 6828 bytes macros/FunctionAnnotation/FA_SZ_OPAPEX.bin | Bin 0 -> 3224 bytes macros/FunctionAnnotation/FA_SZ_OPBACKSLASH.bin | Bin 0 -> 4320 bytes macros/FunctionAnnotation/FA_SZ_OPCC.bin | Bin 0 -> 5056 bytes macros/FunctionAnnotation/FA_SZ_OPDOTAPEX.bin | Bin 0 -> 1960 bytes macros/FunctionAnnotation/FA_SZ_OPDOTBACKSLASH.bin | Bin 0 -> 2036 bytes macros/FunctionAnnotation/FA_SZ_OPDOTHAT.bin | Bin 0 -> 5712 bytes macros/FunctionAnnotation/FA_SZ_OPDOTSLASH.bin | Bin 0 -> 2020 bytes macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.bin | Bin 0 -> 3664 bytes macros/FunctionAnnotation/FA_SZ_OPHAT.bin | Bin 0 -> 5688 bytes macros/FunctionAnnotation/FA_SZ_OPLOGAND.bin | Bin 0 -> 2012 bytes macros/FunctionAnnotation/FA_SZ_OPLOGEQ.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGGE.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGGT.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGLE.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGLT.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGNE.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPLOGNOT.bin | Bin 0 -> 1956 bytes macros/FunctionAnnotation/FA_SZ_OPLOGOR.bin | Bin 0 -> 2008 bytes macros/FunctionAnnotation/FA_SZ_OPMINUS.bin | Bin 0 -> 6704 bytes macros/FunctionAnnotation/FA_SZ_OPPLUS.bin | Bin 0 -> 14040 bytes macros/FunctionAnnotation/FA_SZ_OPPLUSA.bin | Bin 0 -> 8516 bytes macros/FunctionAnnotation/FA_SZ_OPRC.bin | Bin 0 -> 5056 bytes macros/FunctionAnnotation/FA_SZ_OPSLASH.bin | Bin 0 -> 3600 bytes macros/FunctionAnnotation/FA_SZ_OPSTAR.bin | Bin 0 -> 8228 bytes macros/FunctionAnnotation/FA_SZ_PRIMES.bin | Bin 0 -> 1524 bytes macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.bin | Bin 0 -> 6932 bytes macros/FunctionAnnotation/FA_SZ_ROW_DIAG.bin | Bin 0 -> 4624 bytes .../FunctionAnnotation/FA_SZ_ROW_DIAG_INS_EXT.bin | Bin 0 -> 19788 bytes macros/FunctionAnnotation/FA_SZ_SEL1.bin | Bin 0 -> 7028 bytes macros/FunctionAnnotation/FA_SZ_SEL2.bin | Bin 0 -> 6920 bytes macros/FunctionAnnotation/FA_TP_C.bin | Bin 0 -> 3252 bytes macros/FunctionAnnotation/FA_TP_COMPLEX.bin | Bin 0 -> 4520 bytes macros/FunctionAnnotation/FA_TP_CVIMAGE.bin | Bin 0 -> 4172 bytes macros/FunctionAnnotation/FA_TP_D.bin | Bin 0 -> 3220 bytes macros/FunctionAnnotation/FA_TP_I.bin | Bin 0 -> 3208 bytes macros/FunctionAnnotation/FA_TP_INT16.bin | Bin 0 -> 4136 bytes macros/FunctionAnnotation/FA_TP_INT8.bin | Bin 0 -> 4124 bytes macros/FunctionAnnotation/FA_TP_MAX.bin | Bin 0 -> 5028 bytes macros/FunctionAnnotation/FA_TP_MIN_REAL.bin | Bin 0 -> 3512 bytes macros/FunctionAnnotation/FA_TP_REAL.bin | Bin 0 -> 4036 bytes macros/FunctionAnnotation/FA_TP_S.bin | Bin 0 -> 3216 bytes macros/FunctionAnnotation/FA_TP_UINT16.bin | Bin 0 -> 4144 bytes macros/FunctionAnnotation/FA_TP_UINT8.bin | Bin 0 -> 4132 bytes macros/FunctionAnnotation/FA_TP_USER.bin | Bin 0 -> 5172 bytes macros/FunctionAnnotation/FA_TP_Z.bin | Bin 0 -> 3252 bytes macros/FunctionList/FL_ExistCFunction.bin | Bin 0 -> 12304 bytes macros/FunctionList/FL_ExtractFuncList.bin | Bin 0 -> 7828 bytes macros/FunctionList/FL_GetFunctionClass.bin | Bin 0 -> 6832 bytes macros/FunctionList/FL_InOutArgs2CFunNames.bin | Bin 0 -> 6452 bytes macros/FunctionList/FL_UpdateConverted.bin | Bin 0 -> 5572 bytes macros/FunctionList/FL_UpdateToBeConv.bin | Bin 0 -> 14628 bytes macros/GeneralFunctions/Array2String.bin | Bin 0 -> 4840 bytes macros/GeneralFunctions/ConvertPathMat2C.bin | Bin 0 -> 9208 bytes macros/GeneralFunctions/File2StringArray.bin | Bin 0 -> 5808 bytes macros/GeneralFunctions/FunName2SciFileName.bin | Bin 0 -> 6964 bytes macros/GeneralFunctions/IsNanSize.bin | Bin 0 -> 4344 bytes macros/GeneralFunctions/KeyStr2FileStrPos.bin | Bin 0 -> 10872 bytes macros/GeneralFunctions/PrintStepInfo.bin | Bin 0 -> 7356 bytes macros/GeneralFunctions/PrintStringInfo.bin | Bin 0 -> 8556 bytes macros/GeneralFunctions/ReadStringCard.bin | Bin 0 -> 7752 bytes macros/GeneralFunctions/SCI2CCreateDir.bin | Bin 0 -> 3316 bytes macros/GeneralFunctions/SCI2CFindFile.bin | Bin 0 -> 4344 bytes macros/GeneralFunctions/SCI2CNInArgCheck.bin | Bin 0 -> 3144 bytes macros/GeneralFunctions/SCI2COpenFileRead.bin | Bin 0 -> 3424 bytes macros/GeneralFunctions/SCI2COpenFileWrite.bin | Bin 0 -> 3476 bytes macros/GeneralFunctions/SCI2CTemplate.bin | Bin 0 -> 3536 bytes macros/GeneralFunctions/SCI2Ccopyfile.bin | Bin 0 -> 5712 bytes macros/GeneralFunctions/SCI2Cfileexist.bin | Bin 0 -> 4212 bytes macros/GeneralFunctions/SCI2Cflipud.bin | Bin 0 -> 4436 bytes macros/GeneralFunctions/SCI2Cmdelete.bin | Bin 0 -> 4132 bytes macros/GeneralFunctions/SCI2Cresize.bin | Bin 0 -> 3972 bytes macros/GeneralFunctions/SCI2Cstring.bin | Bin 0 -> 3608 bytes macros/GeneralFunctions/SCI2Cstrncmp.bin | Bin 0 -> 3684 bytes macros/GeneralFunctions/SCI2Cstrncmps1size.bin | Bin 0 -> 4056 bytes macros/GeneralFunctions/SizeInByte.bin | Bin 0 -> 4128 bytes macros/GeneralFunctions/dispina.bin | Bin 0 -> 4912 bytes macros/GeneralFunctions/filenamefprintf.bin | Bin 0 -> 6576 bytes macros/GeneralFunctions/float.bin | Bin 0 -> 2504 bytes macros/GeneralFunctions/squeezestrings.bin | Bin 0 -> 3256 bytes macros/Hardware/AVR/AVRADCSetup.bin | Bin 0 -> 5212 bytes macros/Hardware/AVR/AVRDigitalIn.bin | Bin 0 -> 4864 bytes macros/Hardware/AVR/AVRDigitalOut.bin | Bin 0 -> 5376 bytes macros/Hardware/AVR/AVRDigitalPortSetup.bin | Bin 0 -> 5188 bytes macros/Hardware/AVR/AVRDigitalSetup.bin | Bin 0 -> 5584 bytes macros/Hardware/AVR/AVRGetTimerValue.bin | Bin 0 -> 3256 bytes macros/Hardware/AVR/AVRPWM0SetDuty.bin | Bin 0 -> 3536 bytes macros/Hardware/AVR/AVRPWM0Setup.bin | Bin 0 -> 8196 bytes macros/Hardware/AVR/AVRPWM1SetDuty.bin | Bin 0 -> 6764 bytes macros/Hardware/AVR/AVRPWM1Setup.bin | Bin 0 -> 10604 bytes macros/Hardware/AVR/AVRPWM2SetDuty.bin | Bin 0 -> 3580 bytes macros/Hardware/AVR/AVRPWM2Setup.bin | Bin 0 -> 8464 bytes macros/Hardware/AVR/AVRReadADC.bin | Bin 0 -> 4896 bytes macros/Hardware/AVR/AVRSleep.bin | Bin 0 -> 88 bytes macros/Hardware/AVR/AVRTimerSetup.bin | Bin 0 -> 7880 bytes macros/Hardware/AVR/AVRUARTReceive.bin | Bin 0 -> 2504 bytes macros/Hardware/AVR/AVRUARTSetup.bin | Bin 0 -> 8212 bytes macros/Hardware/AVR/AVRUARTTransmit.bin | Bin 0 -> 2756 bytes macros/Hardware/AVR/GetAVRSupportFunctions.bin | Bin 0 -> 2516 bytes macros/Hardware/AVR/GetPeripheral.bin | Bin 0 -> 2364 bytes macros/Hardware/AVR/InsertPeripheralInList.bin | Bin 0 -> 1928 bytes macros/Hardware/AVR/IsAVRSupportFunction.bin | Bin 0 -> 2712 bytes .../Hardware/RasberryPi/GetRPISupportFunctions.bin | Bin 0 -> 4760 bytes .../Hardware/RasberryPi/IsRPISupportFunction.bin | Bin 0 -> 4292 bytes macros/Hardware/RasberryPi/RPI_DelayMicro.bin | Bin 0 -> 3280 bytes macros/Hardware/RasberryPi/RPI_DelayMilli.bin | Bin 0 -> 3596 bytes macros/Hardware/RasberryPi/RPI_DigitalIn.bin | Bin 0 -> 5264 bytes macros/Hardware/RasberryPi/RPI_DigitalOut.bin | Bin 0 -> 5352 bytes macros/Hardware/RasberryPi/RPI_DigitalSetup.bin | Bin 0 -> 5336 bytes macros/Hardware/RasberryPi/RPI_GetMicros.bin | Bin 0 -> 3568 bytes macros/Hardware/RasberryPi/RPI_GetMillis.bin | Bin 0 -> 3556 bytes macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin | Bin 0 -> 3488 bytes macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin | Bin 0 -> 2448 bytes macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin | Bin 0 -> 3340 bytes macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin | Bin 0 -> 4628 bytes macros/Hardware/RasberryPi/RPI_PinISR.bin | Bin 0 -> 6952 bytes macros/Hardware/RasberryPi/RPI_SerialClose.bin | Bin 0 -> 2724 bytes macros/Hardware/RasberryPi/RPI_SerialFlush.bin | Bin 0 -> 3120 bytes macros/Hardware/RasberryPi/RPI_SerialGetChar.bin | Bin 0 -> 3404 bytes macros/Hardware/RasberryPi/RPI_SerialSendChar.bin | Bin 0 -> 3344 bytes macros/Hardware/RasberryPi/RPI_SerialSendData.bin | Bin 0 -> 3344 bytes macros/Hardware/RasberryPi/RPI_SerialSetup.bin | Bin 0 -> 3356 bytes .../Hardware/RasberryPi/u16RPISerialDataAvail.bin | Bin 0 -> 3520 bytes macros/ImageProcessing/core/CV_CreateImage.bin | Bin 0 -> 3604 bytes macros/ImageProcessing/core/CV_GetImgSize.bin | Bin 0 -> 2764 bytes macros/ImageProcessing/highgui/CV_LoadImage.bin | Bin 0 -> 2996 bytes macros/ImageProcessing/highgui/CV_SaveImage.bin | Bin 0 -> 2732 bytes macros/ImageProcessing/highgui/CV_ShowImage.bin | Bin 0 -> 2592 bytes macros/ImageProcessing/highgui/CV_WaitKey.bin | Bin 0 -> 2528 bytes .../imgproc/CV_AdaptiveThreshold.bin | Bin 0 -> 5504 bytes macros/ImageProcessing/imgproc/CV_Blur.bin | Bin 0 -> 5044 bytes macros/ImageProcessing/imgproc/CV_Canny.bin | Bin 0 -> 5220 bytes macros/ImageProcessing/imgproc/CV_CornerHarris.bin | Bin 0 -> 6200 bytes macros/ImageProcessing/imgproc/CV_CvtColor.bin | Bin 0 -> 3952 bytes macros/ImageProcessing/imgproc/CV_Dilate.bin | Bin 0 -> 6936 bytes .../imgproc/CV_DistanceTransform.bin | Bin 0 -> 4012 bytes macros/ImageProcessing/imgproc/CV_Erode.bin | Bin 0 -> 6880 bytes macros/ImageProcessing/imgproc/CV_GaussianBlur.bin | Bin 0 -> 6004 bytes macros/ImageProcessing/imgproc/CV_MedianBlur.bin | Bin 0 -> 3936 bytes macros/ImageProcessing/imgproc/CV_Threshold.bin | Bin 0 -> 4052 bytes macros/Scilab-Arduino/GenerateSetupFunction.bin | Bin 0 -> 6136 bytes macros/Scilab-Arduino/GetArduinoFunctions.bin | Bin 0 -> 2100 bytes macros/Scilab-Arduino/GetArduinoSetupFunctions.bin | Bin 0 -> 1640 bytes macros/Scilab-Arduino/InsertSetupInList.bin | Bin 0 -> 8832 bytes macros/Scilab-Arduino/IsArduinoFunction.bin | Bin 0 -> 2664 bytes macros/Scilab-Arduino/IsArduinoSetupFunction.bin | Bin 0 -> 2712 bytes macros/Scilab-Arduino/i2c_dev.bin | Bin 0 -> 160 bytes macros/Scilab-Arduino/i2c_read.bin | Bin 0 -> 128 bytes macros/Scilab-Arduino/i2c_read_register.bin | Bin 0 -> 184 bytes macros/Scilab-Arduino/i2c_write.bin | Bin 0 -> 104 bytes macros/Scilab-Arduino/i2c_write_register.bin | Bin 0 -> 128 bytes macros/SymbolTable/ST_AnalyzeScope.bin | Bin 0 -> 16792 bytes macros/SymbolTable/ST_Del.bin | Bin 0 -> 4552 bytes macros/SymbolTable/ST_FindPos.bin | Bin 0 -> 5104 bytes macros/SymbolTable/ST_Get.bin | Bin 0 -> 8108 bytes macros/SymbolTable/ST_GetInArgInfo.bin | Bin 0 -> 37384 bytes macros/SymbolTable/ST_GetSymbolInfo.bin | Bin 0 -> 13320 bytes macros/SymbolTable/ST_InsForCntVars.bin | Bin 0 -> 25508 bytes macros/SymbolTable/ST_InsOutArg.bin | Bin 0 -> 33516 bytes macros/SymbolTable/ST_InsOutArg_Dup.bin | Bin 0 -> 33636 bytes macros/SymbolTable/ST_InsOutArg_Dup.sci | 194 +++++++++++++++++++++ macros/SymbolTable/ST_Load.bin | Bin 0 -> 4288 bytes macros/SymbolTable/ST_MatchSymbol.bin | Bin 0 -> 9112 bytes macros/SymbolTable/ST_Save.bin | Bin 0 -> 5440 bytes macros/SymbolTable/ST_Set.bin | Bin 0 -> 7048 bytes macros/SymbolTable/lib | Bin 632 -> 656 bytes macros/SymbolTable/names | 1 + macros/ToolInitialization/INIT_CreateDirs.bin | Bin 0 -> 8900 bytes .../ToolInitialization/INIT_FillSCI2LibCDirs.bin | Bin 0 -> 1639588 bytes .../ToolInitialization/INIT_GenAnnFLFunctions.bin | Bin 0 -> 3460 bytes macros/ToolInitialization/INIT_GenFileInfo.bin | Bin 0 -> 19628 bytes macros/ToolInitialization/INIT_GenLibraries.bin | Bin 0 -> 8556 bytes macros/ToolInitialization/INIT_GenSharedInfo.bin | Bin 0 -> 21060 bytes macros/ToolInitialization/INIT_LoadLibraries.bin | Bin 0 -> 8940 bytes macros/ToolInitialization/INIT_RemoveDirs.bin | Bin 0 -> 12532 bytes macros/ToolInitialization/INIT_SCI2C.bin | Bin 0 -> 24416 bytes macros/ToolInitialization/INIT_SharedInfoEqual.bin | Bin 0 -> 6500 bytes macros/ToolInitialization/ManageNextConversion.bin | Bin 0 -> 11016 bytes macros/ToolInitialization/UpdateSCI2CInfo.bin | Bin 0 -> 38684 bytes macros/ToolInitialization/doublecomplex.bin | Bin 0 -> 2888 bytes macros/ToolInitialization/floatcomplex.bin | Bin 0 -> 2648 bytes macros/cb_sci2c_gui.bin | Bin 0 -> 18548 bytes macros/findDeps/Scilab2CDeps.bin | Bin 0 -> 101536 bytes macros/findDeps/findDeps.bin | Bin 0 -> 5400 bytes macros/findDeps/getAllHeaders.bin | Bin 0 -> 42752 bytes macros/findDeps/getAllInterfaces.bin | Bin 0 -> 45324 bytes macros/findDeps/getAllLibraries.bin | Bin 0 -> 10396 bytes macros/findDeps/getAllSources.bin | Bin 0 -> 251248 bytes macros/findDeps/getArduinoFiles.bin | Bin 0 -> 2036 bytes macros/getScilab2cVersion.bin | Bin 0 -> 144 bytes macros/runsci2c.bin | Bin 0 -> 32652 bytes macros/runscicode.bin | Bin 0 -> 8240 bytes macros/sci2c_gui.bin | Bin 0 -> 58664 bytes macros/scilab2c.bin | Bin 0 -> 19988 bytes 329 files changed, 703 insertions(+), 35 deletions(-) create mode 100644 macros/ASTManagement/%comment_string.bin create mode 100644 macros/ASTManagement/%cste_string.bin create mode 100644 macros/ASTManagement/%equal_string.bin create mode 100644 macros/ASTManagement/%for_string.bin create mode 100644 macros/ASTManagement/%funcall_string.bin create mode 100644 macros/ASTManagement/%ifthenel_string.bin create mode 100644 macros/ASTManagement/%ifthenelse_string.bin create mode 100644 macros/ASTManagement/%operatio_string.bin create mode 100644 macros/ASTManagement/%operation_string.bin create mode 100644 macros/ASTManagement/%program_p.bin create mode 100644 macros/ASTManagement/%program_string.bin create mode 100644 macros/ASTManagement/%variable_string.bin create mode 100644 macros/ASTManagement/%while_string.bin create mode 100644 macros/ASTManagement/AST2Ccode.bin create mode 100644 macros/ASTManagement/AST_CheckCommonInOutArgs.bin create mode 100644 macros/ASTManagement/AST_CheckLastFunc.bin create mode 100644 macros/ASTManagement/AST_CheckLineLength.bin create mode 100644 macros/ASTManagement/AST_CheckPrecSpecifier.bin create mode 100644 macros/ASTManagement/AST_DisplayStack.bin create mode 100644 macros/ASTManagement/AST_ExtractNameAndScope.bin create mode 100644 macros/ASTManagement/AST_GetASTFile.bin create mode 100644 macros/ASTManagement/AST_GetFuncallPrm.bin create mode 100644 macros/ASTManagement/AST_GetPrecAndLhsArg.bin create mode 100644 macros/ASTManagement/AST_HandleCC.bin create mode 100644 macros/ASTManagement/AST_HandleCC.sci create mode 100644 macros/ASTManagement/AST_HandleEOL.bin create mode 100644 macros/ASTManagement/AST_HandleEndFor.bin create mode 100644 macros/ASTManagement/AST_HandleEndGenFun.bin create mode 100644 macros/ASTManagement/AST_HandleEndProgram.bin create mode 100644 macros/ASTManagement/AST_HandleEndWhile.bin create mode 100644 macros/ASTManagement/AST_HandleFor.bin create mode 100644 macros/ASTManagement/AST_HandleForStatem.bin create mode 100644 macros/ASTManagement/AST_HandleFunCC.bin create mode 100644 macros/ASTManagement/AST_HandleFunCC.sci create mode 100644 macros/ASTManagement/AST_HandleFunRC.bin create mode 100644 macros/ASTManagement/AST_HandleHeader.bin create mode 100644 macros/ASTManagement/AST_HandleIfElse.bin create mode 100644 macros/ASTManagement/AST_HandleRC.bin create mode 100644 macros/ASTManagement/AST_HandleWhileExpr.bin create mode 100644 macros/ASTManagement/AST_HandleWhileStatem.bin create mode 100644 macros/ASTManagement/AST_ParseEqualStruct.bin create mode 100644 macros/ASTManagement/AST_ParseFuncallStruct.bin create mode 100644 macros/ASTManagement/AST_ParseIfExprStruct.bin create mode 100644 macros/ASTManagement/AST_ParseOperStruct.bin create mode 100644 macros/ASTManagement/AST_PopASTStack.bin create mode 100644 macros/ASTManagement/AST_PushASTStack.bin create mode 100644 macros/ASTManagement/AST_ReadASTHeader.bin create mode 100644 macros/ASTManagement/AST_ReadEqualRhsNames.bin create mode 100644 macros/ASTManagement/GenOutArgNames.bin create mode 100644 macros/ASTManagement/Operator2FunName.bin create mode 100644 macros/ASTManagement/SciFile2ASTFile.bin create mode 100644 macros/ASTManagement/_comment_string.bin create mode 100644 macros/ASTManagement/_cste_string.bin create mode 100644 macros/ASTManagement/_equal_string.bin create mode 100644 macros/ASTManagement/_for_string.bin create mode 100644 macros/ASTManagement/_funcall_string.bin create mode 100644 macros/ASTManagement/_ifthenel_string.bin create mode 100644 macros/ASTManagement/_ifthenelse_string.bin create mode 100644 macros/ASTManagement/_operatio_string.bin create mode 100644 macros/ASTManagement/_operation_string.bin create mode 100644 macros/ASTManagement/_program_p.bin create mode 100644 macros/ASTManagement/_program_string.bin create mode 100644 macros/ASTManagement/_variable_string.bin create mode 100644 macros/ASTManagement/_while_string.bin create mode 100644 macros/ASTManagement/objectlist2string.bin create mode 100644 macros/CCodeGeneration/C_FinalizeCode.bin create mode 100644 macros/CCodeGeneration/C_ForExpression.bin create mode 100644 macros/CCodeGeneration/C_Funcall.bin create mode 100644 macros/CCodeGeneration/C_GenDeclarations.bin create mode 100644 macros/CCodeGeneration/C_GenDeclarations_Dup.bin create mode 100644 macros/CCodeGeneration/C_GenDeclarations_Dup.sci create mode 100644 macros/CCodeGeneration/C_GenerateFunName.bin create mode 100644 macros/CCodeGeneration/C_GenerateLaunchScript.bin create mode 100644 macros/CCodeGeneration/C_GenerateMakefile.bin create mode 100644 macros/CCodeGeneration/C_GenerateMakefile_msvc.bin create mode 100644 macros/CCodeGeneration/C_GenerateMkfle_arduino.bin create mode 100644 macros/CCodeGeneration/C_GenerateSCI2CHeader.bin create mode 100644 macros/CCodeGeneration/C_IfElseBlocks.bin create mode 100644 macros/CCodeGeneration/C_IfExpression.bin create mode 100644 macros/CCodeGeneration/C_IndentBlanks.bin create mode 100644 macros/CCodeGeneration/C_InitHeader.bin create mode 100644 macros/CCodeGeneration/C_MemAllocOutTempVars.bin create mode 100644 macros/CCodeGeneration/C_SCI2CHeader.bin create mode 100644 macros/CCodeGeneration/C_Type.bin create mode 100644 macros/CCodeGeneration/C_WhileExpression.bin create mode 100644 macros/CCodeGeneration/GenCFunDatFiles.bin create mode 100644 macros/CCodeGeneration/GetClsFileName.bin create mode 100644 macros/CCodeGeneration/GetSymbolDimension.bin create mode 100644 macros/CCodeGeneration/GetWhileCondVariable.bin create mode 100644 macros/CCodeGeneration/JoinDeclarAndCcode.bin create mode 100644 macros/CCodeGeneration/Sci2AnnotationFile.bin create mode 100644 macros/ErrorMessages/EM_NanSize.bin create mode 100644 macros/ErrorMessages/EM_UnknownStep.bin create mode 100644 macros/ErrorMessages/EM_ZeroSize.bin create mode 100644 macros/FunctionAnnotation/FA_ADD.bin create mode 100644 macros/FunctionAnnotation/FA_DIV.bin create mode 100644 macros/FunctionAnnotation/FA_GetDefaultPrecision.bin create mode 100644 macros/FunctionAnnotation/FA_GetFunAnn.bin create mode 100644 macros/FunctionAnnotation/FA_GetOutArgInfo.bin create mode 100644 macros/FunctionAnnotation/FA_GetResizeApproach.bin create mode 100644 macros/FunctionAnnotation/FA_INT.bin create mode 100644 macros/FunctionAnnotation/FA_MAX.bin create mode 100644 macros/FunctionAnnotation/FA_MIN.bin create mode 100644 macros/FunctionAnnotation/FA_MUL.bin create mode 100644 macros/FunctionAnnotation/FA_REAL.bin create mode 100644 macros/FunctionAnnotation/FA_SCHUR_SZ.bin create mode 100644 macros/FunctionAnnotation/FA_SCHUR_TP.bin create mode 100644 macros/FunctionAnnotation/FA_SUB.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_1.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_2.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_COL_DIAG_IN_EX.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_DEC2BASE.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_DEC2BIN.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_DEC2HEX.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_DEC2OCT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_DIFF.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_FACTOR.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_FROM_VAL.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_LINSPACE_ROW.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_LQE.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_LQR.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OBSCNT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPAPEX.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPBACKSLASH.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPCC.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPDOTAPEX.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPDOTBACKSLASH.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPDOTHAT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPDOTSLASH.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPHAT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGAND.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGEQ.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGGE.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGGT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGLE.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGLT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGNE.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGNOT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPLOGOR.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPMINUS.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPPLUS.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPPLUSA.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPRC.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPSLASH.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_OPSTAR.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_PRIMES.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_ROW_DIAG.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_ROW_DIAG_INS_EXT.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_SEL1.bin create mode 100644 macros/FunctionAnnotation/FA_SZ_SEL2.bin create mode 100644 macros/FunctionAnnotation/FA_TP_C.bin create mode 100644 macros/FunctionAnnotation/FA_TP_COMPLEX.bin create mode 100644 macros/FunctionAnnotation/FA_TP_CVIMAGE.bin create mode 100644 macros/FunctionAnnotation/FA_TP_D.bin create mode 100644 macros/FunctionAnnotation/FA_TP_I.bin create mode 100644 macros/FunctionAnnotation/FA_TP_INT16.bin create mode 100644 macros/FunctionAnnotation/FA_TP_INT8.bin create mode 100644 macros/FunctionAnnotation/FA_TP_MAX.bin create mode 100644 macros/FunctionAnnotation/FA_TP_MIN_REAL.bin create mode 100644 macros/FunctionAnnotation/FA_TP_REAL.bin create mode 100644 macros/FunctionAnnotation/FA_TP_S.bin create mode 100644 macros/FunctionAnnotation/FA_TP_UINT16.bin create mode 100644 macros/FunctionAnnotation/FA_TP_UINT8.bin create mode 100644 macros/FunctionAnnotation/FA_TP_USER.bin create mode 100644 macros/FunctionAnnotation/FA_TP_Z.bin create mode 100644 macros/FunctionList/FL_ExistCFunction.bin create mode 100644 macros/FunctionList/FL_ExtractFuncList.bin create mode 100644 macros/FunctionList/FL_GetFunctionClass.bin create mode 100644 macros/FunctionList/FL_InOutArgs2CFunNames.bin create mode 100644 macros/FunctionList/FL_UpdateConverted.bin create mode 100644 macros/FunctionList/FL_UpdateToBeConv.bin create mode 100644 macros/GeneralFunctions/Array2String.bin create mode 100644 macros/GeneralFunctions/ConvertPathMat2C.bin create mode 100644 macros/GeneralFunctions/File2StringArray.bin create mode 100644 macros/GeneralFunctions/FunName2SciFileName.bin create mode 100644 macros/GeneralFunctions/IsNanSize.bin create mode 100644 macros/GeneralFunctions/KeyStr2FileStrPos.bin create mode 100644 macros/GeneralFunctions/PrintStepInfo.bin create mode 100644 macros/GeneralFunctions/PrintStringInfo.bin create mode 100644 macros/GeneralFunctions/ReadStringCard.bin create mode 100644 macros/GeneralFunctions/SCI2CCreateDir.bin create mode 100644 macros/GeneralFunctions/SCI2CFindFile.bin create mode 100644 macros/GeneralFunctions/SCI2CNInArgCheck.bin create mode 100644 macros/GeneralFunctions/SCI2COpenFileRead.bin create mode 100644 macros/GeneralFunctions/SCI2COpenFileWrite.bin create mode 100644 macros/GeneralFunctions/SCI2CTemplate.bin create mode 100644 macros/GeneralFunctions/SCI2Ccopyfile.bin create mode 100644 macros/GeneralFunctions/SCI2Cfileexist.bin create mode 100644 macros/GeneralFunctions/SCI2Cflipud.bin create mode 100644 macros/GeneralFunctions/SCI2Cmdelete.bin create mode 100644 macros/GeneralFunctions/SCI2Cresize.bin create mode 100644 macros/GeneralFunctions/SCI2Cstring.bin create mode 100644 macros/GeneralFunctions/SCI2Cstrncmp.bin create mode 100644 macros/GeneralFunctions/SCI2Cstrncmps1size.bin create mode 100644 macros/GeneralFunctions/SizeInByte.bin create mode 100644 macros/GeneralFunctions/dispina.bin create mode 100644 macros/GeneralFunctions/filenamefprintf.bin create mode 100644 macros/GeneralFunctions/float.bin create mode 100644 macros/GeneralFunctions/squeezestrings.bin create mode 100644 macros/Hardware/AVR/AVRADCSetup.bin create mode 100644 macros/Hardware/AVR/AVRDigitalIn.bin create mode 100644 macros/Hardware/AVR/AVRDigitalOut.bin create mode 100644 macros/Hardware/AVR/AVRDigitalPortSetup.bin create mode 100644 macros/Hardware/AVR/AVRDigitalSetup.bin create mode 100644 macros/Hardware/AVR/AVRGetTimerValue.bin create mode 100644 macros/Hardware/AVR/AVRPWM0SetDuty.bin create mode 100644 macros/Hardware/AVR/AVRPWM0Setup.bin create mode 100644 macros/Hardware/AVR/AVRPWM1SetDuty.bin create mode 100644 macros/Hardware/AVR/AVRPWM1Setup.bin create mode 100644 macros/Hardware/AVR/AVRPWM2SetDuty.bin create mode 100644 macros/Hardware/AVR/AVRPWM2Setup.bin create mode 100644 macros/Hardware/AVR/AVRReadADC.bin create mode 100644 macros/Hardware/AVR/AVRSleep.bin create mode 100644 macros/Hardware/AVR/AVRTimerSetup.bin create mode 100644 macros/Hardware/AVR/AVRUARTReceive.bin create mode 100644 macros/Hardware/AVR/AVRUARTSetup.bin create mode 100644 macros/Hardware/AVR/AVRUARTTransmit.bin create mode 100644 macros/Hardware/AVR/GetAVRSupportFunctions.bin create mode 100644 macros/Hardware/AVR/GetPeripheral.bin create mode 100644 macros/Hardware/AVR/InsertPeripheralInList.bin create mode 100644 macros/Hardware/AVR/IsAVRSupportFunction.bin create mode 100644 macros/Hardware/RasberryPi/GetRPISupportFunctions.bin create mode 100644 macros/Hardware/RasberryPi/IsRPISupportFunction.bin create mode 100644 macros/Hardware/RasberryPi/RPI_DelayMicro.bin create mode 100644 macros/Hardware/RasberryPi/RPI_DelayMilli.bin create mode 100644 macros/Hardware/RasberryPi/RPI_DigitalIn.bin create mode 100644 macros/Hardware/RasberryPi/RPI_DigitalOut.bin create mode 100644 macros/Hardware/RasberryPi/RPI_DigitalSetup.bin create mode 100644 macros/Hardware/RasberryPi/RPI_GetMicros.bin create mode 100644 macros/Hardware/RasberryPi/RPI_GetMillis.bin create mode 100644 macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin create mode 100644 macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin create mode 100644 macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin create mode 100644 macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin create mode 100644 macros/Hardware/RasberryPi/RPI_PinISR.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialClose.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialFlush.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialGetChar.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialSendChar.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialSendData.bin create mode 100644 macros/Hardware/RasberryPi/RPI_SerialSetup.bin create mode 100644 macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin create mode 100644 macros/ImageProcessing/core/CV_CreateImage.bin create mode 100644 macros/ImageProcessing/core/CV_GetImgSize.bin create mode 100644 macros/ImageProcessing/highgui/CV_LoadImage.bin create mode 100644 macros/ImageProcessing/highgui/CV_SaveImage.bin create mode 100644 macros/ImageProcessing/highgui/CV_ShowImage.bin create mode 100644 macros/ImageProcessing/highgui/CV_WaitKey.bin create mode 100644 macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.bin create mode 100644 macros/ImageProcessing/imgproc/CV_Blur.bin create mode 100644 macros/ImageProcessing/imgproc/CV_Canny.bin create mode 100644 macros/ImageProcessing/imgproc/CV_CornerHarris.bin create mode 100644 macros/ImageProcessing/imgproc/CV_CvtColor.bin create mode 100644 macros/ImageProcessing/imgproc/CV_Dilate.bin create mode 100644 macros/ImageProcessing/imgproc/CV_DistanceTransform.bin create mode 100644 macros/ImageProcessing/imgproc/CV_Erode.bin create mode 100644 macros/ImageProcessing/imgproc/CV_GaussianBlur.bin create mode 100644 macros/ImageProcessing/imgproc/CV_MedianBlur.bin create mode 100644 macros/ImageProcessing/imgproc/CV_Threshold.bin create mode 100644 macros/Scilab-Arduino/GenerateSetupFunction.bin create mode 100644 macros/Scilab-Arduino/GetArduinoFunctions.bin create mode 100644 macros/Scilab-Arduino/GetArduinoSetupFunctions.bin create mode 100644 macros/Scilab-Arduino/InsertSetupInList.bin create mode 100644 macros/Scilab-Arduino/IsArduinoFunction.bin create mode 100644 macros/Scilab-Arduino/IsArduinoSetupFunction.bin create mode 100644 macros/Scilab-Arduino/i2c_dev.bin create mode 100644 macros/Scilab-Arduino/i2c_read.bin create mode 100644 macros/Scilab-Arduino/i2c_read_register.bin create mode 100644 macros/Scilab-Arduino/i2c_write.bin create mode 100644 macros/Scilab-Arduino/i2c_write_register.bin create mode 100644 macros/SymbolTable/ST_AnalyzeScope.bin create mode 100644 macros/SymbolTable/ST_Del.bin create mode 100644 macros/SymbolTable/ST_FindPos.bin create mode 100644 macros/SymbolTable/ST_Get.bin create mode 100644 macros/SymbolTable/ST_GetInArgInfo.bin create mode 100644 macros/SymbolTable/ST_GetSymbolInfo.bin create mode 100644 macros/SymbolTable/ST_InsForCntVars.bin create mode 100644 macros/SymbolTable/ST_InsOutArg.bin create mode 100644 macros/SymbolTable/ST_InsOutArg_Dup.bin create mode 100644 macros/SymbolTable/ST_InsOutArg_Dup.sci create mode 100644 macros/SymbolTable/ST_Load.bin create mode 100644 macros/SymbolTable/ST_MatchSymbol.bin create mode 100644 macros/SymbolTable/ST_Save.bin create mode 100644 macros/SymbolTable/ST_Set.bin create mode 100644 macros/ToolInitialization/INIT_CreateDirs.bin create mode 100644 macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin create mode 100644 macros/ToolInitialization/INIT_GenAnnFLFunctions.bin create mode 100644 macros/ToolInitialization/INIT_GenFileInfo.bin create mode 100644 macros/ToolInitialization/INIT_GenLibraries.bin create mode 100644 macros/ToolInitialization/INIT_GenSharedInfo.bin create mode 100644 macros/ToolInitialization/INIT_LoadLibraries.bin create mode 100644 macros/ToolInitialization/INIT_RemoveDirs.bin create mode 100644 macros/ToolInitialization/INIT_SCI2C.bin create mode 100644 macros/ToolInitialization/INIT_SharedInfoEqual.bin create mode 100644 macros/ToolInitialization/ManageNextConversion.bin create mode 100644 macros/ToolInitialization/UpdateSCI2CInfo.bin create mode 100644 macros/ToolInitialization/doublecomplex.bin create mode 100644 macros/ToolInitialization/floatcomplex.bin create mode 100644 macros/cb_sci2c_gui.bin create mode 100644 macros/findDeps/Scilab2CDeps.bin create mode 100644 macros/findDeps/findDeps.bin create mode 100644 macros/findDeps/getAllHeaders.bin create mode 100644 macros/findDeps/getAllInterfaces.bin create mode 100644 macros/findDeps/getAllLibraries.bin create mode 100644 macros/findDeps/getAllSources.bin create mode 100644 macros/findDeps/getArduinoFiles.bin create mode 100644 macros/getScilab2cVersion.bin create mode 100644 macros/runsci2c.bin create mode 100644 macros/runscicode.bin create mode 100644 macros/sci2c_gui.bin create mode 100644 macros/scilab2c.bin diff --git a/macros/ASTManagement/%comment_string.bin b/macros/ASTManagement/%comment_string.bin new file mode 100644 index 00000000..fb894945 Binary files /dev/null and b/macros/ASTManagement/%comment_string.bin differ diff --git a/macros/ASTManagement/%cste_string.bin b/macros/ASTManagement/%cste_string.bin new file mode 100644 index 00000000..ba643c47 Binary files /dev/null and b/macros/ASTManagement/%cste_string.bin differ diff --git a/macros/ASTManagement/%equal_string.bin b/macros/ASTManagement/%equal_string.bin new file mode 100644 index 00000000..7f88fee6 Binary files /dev/null and b/macros/ASTManagement/%equal_string.bin differ diff --git a/macros/ASTManagement/%for_string.bin b/macros/ASTManagement/%for_string.bin new file mode 100644 index 00000000..c3fda16b Binary files /dev/null and b/macros/ASTManagement/%for_string.bin differ diff --git a/macros/ASTManagement/%funcall_string.bin b/macros/ASTManagement/%funcall_string.bin new file mode 100644 index 00000000..8354586d Binary files /dev/null and b/macros/ASTManagement/%funcall_string.bin differ diff --git a/macros/ASTManagement/%ifthenel_string.bin b/macros/ASTManagement/%ifthenel_string.bin new file mode 100644 index 00000000..1c6fa73d Binary files /dev/null and b/macros/ASTManagement/%ifthenel_string.bin differ diff --git a/macros/ASTManagement/%ifthenelse_string.bin b/macros/ASTManagement/%ifthenelse_string.bin new file mode 100644 index 00000000..456ffadc Binary files /dev/null and b/macros/ASTManagement/%ifthenelse_string.bin differ diff --git a/macros/ASTManagement/%operatio_string.bin b/macros/ASTManagement/%operatio_string.bin new file mode 100644 index 00000000..18aab9e5 Binary files /dev/null and b/macros/ASTManagement/%operatio_string.bin differ diff --git a/macros/ASTManagement/%operatio_string.sci b/macros/ASTManagement/%operatio_string.sci index c0ecb478..cc18e919 100644 --- a/macros/ASTManagement/%operatio_string.sci +++ b/macros/ASTManagement/%operatio_string.sci @@ -4,17 +4,22 @@ function txt=%operatio_string(O) //fields: // operands: a list // operator: a string -if O.operator <> 'rc' +if O.operator <> 'rc' & O.operator <> 'cc' txt=['Operation' ' Operands:' ' '+objectlist2string(O.operands) ' Operator: '+O.operator 'EndOperation' ] -else +elseif O.operator == 'rc' txt=[' Operands:' ' '+objectlist2string(O.operands) 'Endrc' ] +elseif O.operator == 'cc' + txt=[' Begin:' + ' '+objectlist2string(O.operands) + 'Endcc' + ] end endfunction diff --git a/macros/ASTManagement/%operation_string.bin b/macros/ASTManagement/%operation_string.bin new file mode 100644 index 00000000..dfbeec96 Binary files /dev/null and b/macros/ASTManagement/%operation_string.bin differ diff --git a/macros/ASTManagement/%operation_string.sci b/macros/ASTManagement/%operation_string.sci index 84f5ce3c..c9282f67 100644 --- a/macros/ASTManagement/%operation_string.sci +++ b/macros/ASTManagement/%operation_string.sci @@ -10,4 +10,4 @@ function txt=%operation_string(O) ' Operator: '+O.operator 'EndOperation' ] -endfunction \ No newline at end of file +endfunction diff --git a/macros/ASTManagement/%program_p.bin b/macros/ASTManagement/%program_p.bin new file mode 100644 index 00000000..216a38b2 Binary files /dev/null and b/macros/ASTManagement/%program_p.bin differ diff --git a/macros/ASTManagement/%program_string.bin b/macros/ASTManagement/%program_string.bin new file mode 100644 index 00000000..3a8fc95b Binary files /dev/null and b/macros/ASTManagement/%program_string.bin differ diff --git a/macros/ASTManagement/%variable_string.bin b/macros/ASTManagement/%variable_string.bin new file mode 100644 index 00000000..f81fd6e0 Binary files /dev/null and b/macros/ASTManagement/%variable_string.bin differ diff --git a/macros/ASTManagement/%while_string.bin b/macros/ASTManagement/%while_string.bin new file mode 100644 index 00000000..142189c6 Binary files /dev/null and b/macros/ASTManagement/%while_string.bin differ diff --git a/macros/ASTManagement/AST2Ccode.bin b/macros/ASTManagement/AST2Ccode.bin new file mode 100644 index 00000000..c6635196 Binary files /dev/null and b/macros/ASTManagement/AST2Ccode.bin differ diff --git a/macros/ASTManagement/AST2Ccode.sci b/macros/ASTManagement/AST2Ccode.sci index 19cf00c4..f3c87aba 100644 --- a/macros/ASTManagement/AST2Ccode.sci +++ b/macros/ASTManagement/AST2Ccode.sci @@ -46,6 +46,10 @@ ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; // --------------------------------- // --- Parameter Initialization. --- // --------------------------------- + +global cc_count +cc_count = 0; + global rc_count rc_count = 0; @@ -57,6 +61,8 @@ StackPosition = 1; global STACKDEDUG STACKDEDUG = 0; // 1 -> Every Pop and Push operation on the stack, the stack content will be printed on screen. + + // ------------------------------------- // --- End parameter Initialization. --- // ------------------------------------- @@ -147,8 +153,13 @@ 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 + if rc_count > 0 & cc_count == 0 [FileInfo,SharedInfo] = AST_HandleFunRC(FileInfo,SharedInfo); + rc_count = 0; + elseif cc_count > 0 + [FileInfo,SharedInfo] = AST_HandleFunCC(cc_count,FileInfo,SharedInfo); + rc_count = 0; + cc_count = 0; else [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,'Equal'); SharedInfo = INIT_SharedInfoEqual(SharedInfo); @@ -157,16 +168,19 @@ while ~meof(fidAST) SharedInfo.Equal.Enabled = 1; // 1 means enabled -> we are inside an equal AST block. AST_PushASTStack(treeline); case 'Lhs :' then - disp(rc_count); - if rc_count > 0 + if rc_count > 0 & cc_count == 0 SharedInfo.Equal.Lhs = 1; [EqualInArgName,EqualInArgScope,EqualNInArg] = AST_HandleRC(FileInfo,SharedInfo); - SharedInfo.Equal.NInArg = EqualNInArg; + SharedInfo.Equal.NInArg = EqualNInArg - rc_count -1; AST_PushASTStack(treeline); for tmpcnt = 1:SharedInfo.Equal.NInArg SharedInfo.Equal.InArg(tmpcnt).Name = EqualInArgName(tmpcnt); SharedInfo.Equal.InArg(tmpcnt).Scope = EqualInArgScope(tmpcnt); - end + end + elseif cc_count > 0 + SharedInfo.Equal.Lhs = 1; + [EqualInArgName,EqualInArgScope,EqualNInArg] = AST_HandleCC(FileInfo,SharedInfo); + AST_PushASTStack(treeline); else SharedInfo.Equal.Lhs = 1; // 1 means that we are inside the Lhs block of the Equal //if SharedInfo.Equal.NOutArg > 0 @@ -254,7 +268,11 @@ while ~meof(fidAST) case 'Endrc' then - rc_count = rc_count + 1; + rc_count = rc_count + 1; + + case 'Endcc' then + cc_count = cc_count + 1; + //[FileInfo,SharedInfo] = AST_HandleRC(FileInfo,SharedInfo); // ---------------- diff --git a/macros/ASTManagement/AST_CheckCommonInOutArgs.bin b/macros/ASTManagement/AST_CheckCommonInOutArgs.bin new file mode 100644 index 00000000..5c190ba3 Binary files /dev/null and b/macros/ASTManagement/AST_CheckCommonInOutArgs.bin differ diff --git a/macros/ASTManagement/AST_CheckLastFunc.bin b/macros/ASTManagement/AST_CheckLastFunc.bin new file mode 100644 index 00000000..9cac2273 Binary files /dev/null and b/macros/ASTManagement/AST_CheckLastFunc.bin differ diff --git a/macros/ASTManagement/AST_CheckLineLength.bin b/macros/ASTManagement/AST_CheckLineLength.bin new file mode 100644 index 00000000..db486797 Binary files /dev/null and b/macros/ASTManagement/AST_CheckLineLength.bin differ diff --git a/macros/ASTManagement/AST_CheckPrecSpecifier.bin b/macros/ASTManagement/AST_CheckPrecSpecifier.bin new file mode 100644 index 00000000..8e50397f Binary files /dev/null and b/macros/ASTManagement/AST_CheckPrecSpecifier.bin differ diff --git a/macros/ASTManagement/AST_DisplayStack.bin b/macros/ASTManagement/AST_DisplayStack.bin new file mode 100644 index 00000000..90cbcc74 Binary files /dev/null and b/macros/ASTManagement/AST_DisplayStack.bin differ diff --git a/macros/ASTManagement/AST_ExtractNameAndScope.bin b/macros/ASTManagement/AST_ExtractNameAndScope.bin new file mode 100644 index 00000000..1944d88b Binary files /dev/null and b/macros/ASTManagement/AST_ExtractNameAndScope.bin differ diff --git a/macros/ASTManagement/AST_GetASTFile.bin b/macros/ASTManagement/AST_GetASTFile.bin new file mode 100644 index 00000000..261430e5 Binary files /dev/null and b/macros/ASTManagement/AST_GetASTFile.bin differ diff --git a/macros/ASTManagement/AST_GetFuncallPrm.bin b/macros/ASTManagement/AST_GetFuncallPrm.bin new file mode 100644 index 00000000..37dbe771 Binary files /dev/null and b/macros/ASTManagement/AST_GetFuncallPrm.bin differ diff --git a/macros/ASTManagement/AST_GetPrecAndLhsArg.bin b/macros/ASTManagement/AST_GetPrecAndLhsArg.bin new file mode 100644 index 00000000..71e44cb1 Binary files /dev/null and b/macros/ASTManagement/AST_GetPrecAndLhsArg.bin differ diff --git a/macros/ASTManagement/AST_HandleCC.bin b/macros/ASTManagement/AST_HandleCC.bin new file mode 100644 index 00000000..0d302e4f Binary files /dev/null and b/macros/ASTManagement/AST_HandleCC.bin differ diff --git a/macros/ASTManagement/AST_HandleCC.sci b/macros/ASTManagement/AST_HandleCC.sci new file mode 100644 index 00000000..d0a2244b --- /dev/null +++ b/macros/ASTManagement/AST_HandleCC.sci @@ -0,0 +1,88 @@ +function [RhsNames,RhsScope,NRhs] = AST_HandleCC(FileInfo,SharedInfo) +// function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) +// ----------------------------------------------------------------- +// #RNU_RES_B +// Handles the EndFuncall, EndOperation and EndEqual tags of the AST. +// ASTFunType can be 'Funcall', 'Operation', 'Equal' +// Structure of Funcall: +// overloading function for "funcall" type tlist string function +// this is a node of the AST +// fields: +// rhs : a list +// name : string, the name of the function +// lhsnb: number, the number of function lhs +// txt=['Funcall : '+F.name +// ' #lhs : '+string(F.lhsnb) +// ' Rhs : ' +// ' '+objectlist2string(F.rhs) +// 'EndFuncall' +// ] +// #RNU_RES_E +// +// Input data: +// //NUT: add description here +// +// Output data: +// //NUT: add description here +// +// Status: +// 11-Apr-2007 -- Raffaele Nutricato: Author. +// +// Copyright 2007 Raffaele Nutricato. +// Contact: raffaele.nutricato@tiscali.it +// ----------------------------------------------------------------- + +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ + + +global SCI2CSTACK +global StackPosition; +global STACKDEDUG +// --------------------------- +// --- End Initialization. --- +// --------------------------- + + +// ------------------------------ +// --- Read input parameters. --- +// ------------------------------ +cntpop = 1; +NRhs = 0; +RhsField(cntpop) = AST_PopASTStack(); +RhsNames = []; +while (RhsField(cntpop) ~= 'Expression:') + if RhsField(cntpop) <> 'Operands:' & RhsField(cntpop) <> 'Begin:' + NRhs = NRhs + 1; + + [RhsNames(NRhs),RhsScope(NRhs)] = AST_ExtractNameAndScope(RhsField(cntpop)); + end + cntpop = cntpop + 1; + RhsField(cntpop) = AST_PopASTStack(); +end +RhsNames = SCI2Cflipud(RhsNames); +RhsScope = SCI2Cflipud(RhsScope); + +// --- Repush everything into the stack. --- +for cntpush = cntpop:-1:1 + if RhsField(cntpush) <> 'Operands:' & RhsField(cntpush) <> 'Begin:' + PrintStringInfo(' ' + RhsField(cntpush),ReportFileName,'file','y'); + AST_PushASTStack(RhsField(cntpush)); + end +end + + +//for counterinputargs = 1:NRhs + //#RNU_RES_B + //disp(counterinputargs); + //PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+RhsNames(counterinputargs).Name,... + // ReportFileName,'file','y'); + //PrintStringInfo(' Scope: '+RhsNames(counterinputargs).Scope,... + // ReportFileName,'file','y'); + //#RNU_RES_E +//end + +endfunction diff --git a/macros/ASTManagement/AST_HandleEOL.bin b/macros/ASTManagement/AST_HandleEOL.bin new file mode 100644 index 00000000..3b6b3bd1 Binary files /dev/null and b/macros/ASTManagement/AST_HandleEOL.bin differ diff --git a/macros/ASTManagement/AST_HandleEndFor.bin b/macros/ASTManagement/AST_HandleEndFor.bin new file mode 100644 index 00000000..a6031b43 Binary files /dev/null and b/macros/ASTManagement/AST_HandleEndFor.bin differ diff --git a/macros/ASTManagement/AST_HandleEndGenFun.bin b/macros/ASTManagement/AST_HandleEndGenFun.bin new file mode 100644 index 00000000..dfbf15db Binary files /dev/null and b/macros/ASTManagement/AST_HandleEndGenFun.bin differ diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci index 4de5d893..9fdfbb3d 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -36,7 +36,7 @@ function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunT // ------------------------------ // --- Check input arguments. --- // ------------------------------ -SCI2CNInArgCheck(argn(2),3,3); +//SCI2CNInArgCheck(argn(2),3,3); // ----------------------- // --- Initialization. --- @@ -61,6 +61,8 @@ PrintStepInfo('Handling Funcall/Operation/Equal',FileInfo.Funct(nxtscifunnumber) global SCI2CSTACK global StackPosition; global STACKDEDUG + +disp_isthere = 0; // --------------------------- // --- End Initialization. --- // --------------------------- diff --git a/macros/ASTManagement/AST_HandleEndProgram.bin b/macros/ASTManagement/AST_HandleEndProgram.bin new file mode 100644 index 00000000..5e02fdcd Binary files /dev/null and b/macros/ASTManagement/AST_HandleEndProgram.bin differ diff --git a/macros/ASTManagement/AST_HandleEndWhile.bin b/macros/ASTManagement/AST_HandleEndWhile.bin new file mode 100644 index 00000000..bafccbc2 Binary files /dev/null and b/macros/ASTManagement/AST_HandleEndWhile.bin differ diff --git a/macros/ASTManagement/AST_HandleFor.bin b/macros/ASTManagement/AST_HandleFor.bin new file mode 100644 index 00000000..27d44a12 Binary files /dev/null and b/macros/ASTManagement/AST_HandleFor.bin differ diff --git a/macros/ASTManagement/AST_HandleForStatem.bin b/macros/ASTManagement/AST_HandleForStatem.bin new file mode 100644 index 00000000..4839b049 Binary files /dev/null and b/macros/ASTManagement/AST_HandleForStatem.bin differ diff --git a/macros/ASTManagement/AST_HandleFunCC.bin b/macros/ASTManagement/AST_HandleFunCC.bin new file mode 100644 index 00000000..615d1471 Binary files /dev/null and b/macros/ASTManagement/AST_HandleFunCC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunCC.sci b/macros/ASTManagement/AST_HandleFunCC.sci new file mode 100644 index 00000000..063cdc47 --- /dev/null +++ b/macros/ASTManagement/AST_HandleFunCC.sci @@ -0,0 +1,178 @@ +function [FileInfo,SharedInfo] = AST_HandleFunCC(NCol,FileInfo,SharedInfo) +// function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) +// ----------------------------------------------------------------- +// #RNU_RES_B +// Handles the EndFuncall, EndOperation and EndEqual tags of the AST. +// ASTFunType can be 'Funcall', 'Operation', 'Equal' +// Structure of Funcall: +// overloading function for "funcall" type tlist string function +// this is a node of the AST +// fields: +// rhs : a list +// name : string, the name of the function +// lhsnb: number, the number of function lhs +// txt=['Funcall : '+F.name +// ' #lhs : '+string(F.lhsnb) +// ' Rhs : ' +// ' '+objectlist2string(F.rhs) +// 'EndFuncall' +// ] +// #RNU_RES_E +// +// Input data: +// //NUT: add description here +// +// Output data: +// //NUT: add description here +// +// Status: +// 11-Apr-2007 -- Ukasha Noor: Author. +// +// Copyright 2017 Ukasha Noor. +// Contact: ukashanoor.iiitk@gmail.com +// ----------------------------------------------------------------- + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ + +// ----------------------- +// --- Initialization. --- +// ----------------------- +nxtscifunname = SharedInfo.NextSCIFunName; +nxtscifunnumber = SharedInfo.NextSCIFunNumber; +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; + +global SCI2CSTACK +global StackPosition; +global STACKDEDUG +// --------------------------- +// --- End Initialization. --- +// --------------------------- + +// ------------------------------ +// --- Read output parameters. -- +// ------------------------------ +LhsField = AST_PopASTStack(); +NOutArg = 0; +OutputArgumentNames = []; +OutputArgumentScope = []; +while (LhsField ~= 'Lhs :') + NOutArg = NOutArg + 1; + [OutputArgumentNames(NOutArg),OutputArgumentScope(NOutArg)] = AST_ExtractNameAndScope(LhsField); + LhsField = AST_PopASTStack(); + if (LhsField == 'Expression:') + error(9999, 'Found Expression: before Lhs'); + elseif (LhsField == 'Equal') + error(9999, 'Found Equal before Lhs'); + end +end + +// ------------------------------ +// --- Read input parameters. --- +// ------------------------------ + + +RhsField = AST_PopASTStack(); +InputArgumentNames = []; +InputArgumentScope = []; +NInArg = 0; +InArg = []; +while (RhsField ~= 'Expression:') + NInArg = NInArg + 1; + if RhsField <> 'Operands:' + [InputArgumentNames(NInArg),InputArgumentScope(NInArg)] = AST_ExtractNameAndScope(RhsField); + end + //disp(InputArgumentNames(NInArg)); + //InArg(NInArg) = RhsField; + RhsField = AST_PopASTStack(); +end +InputArgumentNames = SCI2Cflipud(InputArgumentNames); +InputArgumentScope = SCI2Cflipud(InputArgumentScope); + +disp(NInArg); + + +// ------------------------------------- +// --- Generate the InArg structure. --- +// ------------------------------------- +//#RNU_RES_E +for counterinputargs = 1:NInArg + InArg(counterinputargs).Name=InputArgumentNames(counterinputargs); + InArg(counterinputargs).Scope=InputArgumentScope(counterinputargs); +end + +//#RNU_RES_B +// ------------------------------------- +// --- Generate the InArg structure. --- +// ------------------------------------- +//#RNU_RES_E +OutArg = []; +for counteroutputargs = 1:NOutArg + OutArg(counteroutputargs).Name=OutputArgumentNames(counteroutputargs); + OutArg(counteroutputargs).Scope=OutputArgumentScope(counteroutputargs); +end +disp(NOutArg); + +// ------------------------ +// --- Print Some Info. --- +// ------------------------ + +PrintStringInfo('N Input Arguments: '+string(NInArg),ReportFileName,'file','y','n'); +PrintStringInfo('N Output Arguments: '+string(NOutArg),ReportFileName,'file','y'); + //#RNU_RES_E + for counterinputargs = 1:NInArg + //#RNU_RES_B + PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+InArg(counterinputargs).Name,... + ReportFileName,'file','y','n'); + PrintStringInfo(' Scope: '+InArg(counterinputargs).Scope,... + ReportFileName,'file','y','n'); + //#RNU_RES_E + end + for counteroutputargs = 1:NOutArg + //#RNU_RES_B + PrintStringInfo('Output Argument Number '+string(counteroutputargs)+': '+OutArg(counteroutputargs).Name,... + ReportFileName,'file','y','n'); + //PrintStringInfo(' Scope: '+ OutArg(counterinputargs).Scope,ReportFileName,'file','y','n'); + //#RNU_RES_E + end + +NOutArg_mod = NOutArg; + +FunTypeAnnot = ''; +FunSizeAnnot = ''; +NLhsArg = 0; +LhsArg = []; +PrintStringInfo('...Equal not found.',ReportFileName,'file','y'); + +PrintStringInfo('***Analyzing Input Arguments***',ReportFileName,'file','y'); +UpdatedInArg = InArg; +[InArg,SharedInfo] = ST_GetInArgInfo(InArg,NInArg,FileInfo,SharedInfo,'OpEqual'); + +NCol = NCol + 1; +NRow = NInArg/NCol; + +com_type = 0; +for i = 1:NInArg + if InArg(i).Type == 'z' + com_type = 1; + end +end + + +PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); +OutArg(1).Type = InArg(1).Type; +OutArg(1).Size(1) = string(NRow); +OutArg(1).Size(2) = string(NCol); +OutArg(1).Dimension = 2; +OutArg(1).Value = InArg(1).Value; +OutArg(1).FindLike = InArg(1).FindLike; + +//--- Check for output Argument in symbol table ---// +OutArg = ST_AnalyzeScope(OutArg,NOutArg,FileInfo,SharedInfo); + +//--- Put the output Argument in symbol table ---// +ST_InsOutArg_Dup(InArg,NInArg,OutArg,NOutArg,com_type,FileInfo,SharedInfo,'all'); + + +endfunction diff --git a/macros/ASTManagement/AST_HandleFunRC.bin b/macros/ASTManagement/AST_HandleFunRC.bin new file mode 100644 index 00000000..8b61e486 Binary files /dev/null and b/macros/ASTManagement/AST_HandleFunRC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunRC.sci b/macros/ASTManagement/AST_HandleFunRC.sci index a70155a7..654f04d8 100644 --- a/macros/ASTManagement/AST_HandleFunRC.sci +++ b/macros/ASTManagement/AST_HandleFunRC.sci @@ -1,4 +1,4 @@ -function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo) +function [FileInfo,SharedInfo] = AST_HandleFunRC(FileInfo,SharedInfo) // function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) // ----------------------------------------------------------------- // #RNU_RES_B @@ -26,10 +26,10 @@ function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo) // //NUT: add description here // // Status: -// 11-Apr-2007 -- Raffaele Nutricato: Author. +// 11-Apr-2007 -- Ukasha Noor: Author. // -// Copyright 2007 Raffaele Nutricato. -// Contact: raffaele.nutricato@tiscali.it +// Copyright 2017 Ukasha Noor. +// Contact: ukashanoor.iiitk@gmail.com // ----------------------------------------------------------------- // ------------------------------ @@ -74,22 +74,29 @@ end RhsField = AST_PopASTStack(); +InputArgumentNames = []; +InputArgumentScope = []; NInArg = 0; InArg = []; while (RhsField ~= 'Expression:') NInArg = NInArg + 1; - InArg(NInArg) = RhsField; + if RhsField <> 'Operands:' + [InputArgumentNames(NInArg),InputArgumentScope(NInArg)] = AST_ExtractNameAndScope(RhsField); + end + //disp(InputArgumentNames(NInArg)); + //InArg(NInArg) = RhsField; RhsField = AST_PopASTStack(); end InputArgumentNames = SCI2Cflipud(InputArgumentNames); InputArgumentScope = SCI2Cflipud(InputArgumentScope); +disp(NInArg); + // ------------------------------------- // --- Generate the InArg structure. --- // ------------------------------------- //#RNU_RES_E -InArg = []; for counterinputargs = 1:NInArg InArg(counterinputargs).Name=InputArgumentNames(counterinputargs); InArg(counterinputargs).Scope=InputArgumentScope(counterinputargs); @@ -105,6 +112,7 @@ for counteroutputargs = 1:NOutArg OutArg(counteroutputargs).Name=OutputArgumentNames(counteroutputargs); OutArg(counteroutputargs).Scope=OutputArgumentScope(counteroutputargs); end +disp(NOutArg); // ------------------------ // --- Print Some Info. --- @@ -125,8 +133,7 @@ PrintStringInfo('N Output Arguments: '+string(NOutArg),ReportFileName,'file','y' //#RNU_RES_B PrintStringInfo('Output Argument Number '+string(counteroutputargs)+': '+OutArg(counteroutputargs).Name,... ReportFileName,'file','y','n'); - PrintStringInfo(' Scope: '+OutArg(counterinputargs).Scope,... - ReportFileName,'file','y','n'); + //PrintStringInfo(' Scope: '+ OutArg(counterinputargs).Scope,ReportFileName,'file','y','n'); //#RNU_RES_E end @@ -144,14 +151,22 @@ UpdatedInArg = InArg; size_count = 0; for i = 1:NInArg - size_count = size_count + InArg(i).Size(2); + size_count = size_count + eval(InArg(i).Size(2)); +end + +com_type = 0; +for i = 1:NInArg + if InArg(i).Type == 'z' + com_type = 1; + end end + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); OutArg(1).Type = InArg(1).Type; OutArg(1).Size(1) = '1' OutArg(1).Size(2) = string(size_count); -OutArg(1).Dimension = InArg(1).Dimension; +OutArg(1).Dimension = 2; OutArg(1).Value = InArg(1).Value; OutArg(1).FindLike = InArg(1).FindLike; @@ -159,7 +174,7 @@ OutArg(1).FindLike = InArg(1).FindLike; OutArg = ST_AnalyzeScope(OutArg,NOutArg,FileInfo,SharedInfo); //--- Put the output Argument in symbol table ---// -ST_InsOutArg(OutArg,NOutArg,FileInfo,SharedInfo,'all'); +ST_InsOutArg_Dup(InArg,NInArg,OutArg,NOutArg,com_type,FileInfo,SharedInfo,'all'); endfunction diff --git a/macros/ASTManagement/AST_HandleHeader.bin b/macros/ASTManagement/AST_HandleHeader.bin new file mode 100644 index 00000000..87ef763a Binary files /dev/null and b/macros/ASTManagement/AST_HandleHeader.bin differ diff --git a/macros/ASTManagement/AST_HandleIfElse.bin b/macros/ASTManagement/AST_HandleIfElse.bin new file mode 100644 index 00000000..d30e47b4 Binary files /dev/null and b/macros/ASTManagement/AST_HandleIfElse.bin differ diff --git a/macros/ASTManagement/AST_HandleRC.bin b/macros/ASTManagement/AST_HandleRC.bin new file mode 100644 index 00000000..829fd67a Binary files /dev/null and b/macros/ASTManagement/AST_HandleRC.bin differ diff --git a/macros/ASTManagement/AST_HandleRC.sci b/macros/ASTManagement/AST_HandleRC.sci index b1a1003f..3952c8eb 100644 --- a/macros/ASTManagement/AST_HandleRC.sci +++ b/macros/ASTManagement/AST_HandleRC.sci @@ -1,4 +1,4 @@ -function [RhsNames,RhsScope,NRhs] = AST_ReadEqualRhsNames(FileInfo,SharedInfo) +function [RhsNames,RhsScope,NRhs] = AST_HandleRC(FileInfo,SharedInfo) // function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) // ----------------------------------------------------------------- // #RNU_RES_B @@ -54,9 +54,11 @@ cntpop = 1; NRhs = 0; RhsField(cntpop) = AST_PopASTStack(); RhsNames = []; -while (RhsField(cntpop) ~= 'Operands:') +while (RhsField(cntpop) ~= 'Expression:') NRhs = NRhs + 1; + if RhsField(cntpop) <> 'Operands:' [RhsNames(NRhs),RhsScope(NRhs)] = AST_ExtractNameAndScope(RhsField(cntpop)); + end cntpop = cntpop + 1; RhsField(cntpop) = AST_PopASTStack(); end @@ -65,17 +67,20 @@ RhsScope = SCI2Cflipud(RhsScope); // --- Repush everything into the stack. --- for cntpush = cntpop:-1:1 + if RhsField(cntpush) <> 'Operands:' AST_PushASTStack(RhsField(cntpush)); + end end -for counterinputargs = 1:NRhs +//for counterinputargs = 1:NRhs //#RNU_RES_B - PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+InArg(counterinputargs).Name,... - ReportFileName,'file','y'); - PrintStringInfo(' Scope: '+InArg(counterinputargs).Scope,... - ReportFileName,'file','y'); + //disp(counterinputargs); + // PrintStringInfo('Input Argument Number '+string(counterinputargs)+': '+RhsNames(counterinputargs).Name,... + // ReportFileName,'file','y'); + //PrintStringInfo(' Scope: '+RhsNames(counterinputargs).Scope,... + // ReportFileName,'file','y'); //#RNU_RES_E -end +//end endfunction diff --git a/macros/ASTManagement/AST_HandleWhileExpr.bin b/macros/ASTManagement/AST_HandleWhileExpr.bin new file mode 100644 index 00000000..5f3da2de Binary files /dev/null and b/macros/ASTManagement/AST_HandleWhileExpr.bin differ diff --git a/macros/ASTManagement/AST_HandleWhileStatem.bin b/macros/ASTManagement/AST_HandleWhileStatem.bin new file mode 100644 index 00000000..4f7704ea Binary files /dev/null and b/macros/ASTManagement/AST_HandleWhileStatem.bin differ diff --git a/macros/ASTManagement/AST_ParseEqualStruct.bin b/macros/ASTManagement/AST_ParseEqualStruct.bin new file mode 100644 index 00000000..2135518f Binary files /dev/null and b/macros/ASTManagement/AST_ParseEqualStruct.bin differ diff --git a/macros/ASTManagement/AST_ParseFuncallStruct.bin b/macros/ASTManagement/AST_ParseFuncallStruct.bin new file mode 100644 index 00000000..1cbeb5c0 Binary files /dev/null and b/macros/ASTManagement/AST_ParseFuncallStruct.bin differ diff --git a/macros/ASTManagement/AST_ParseIfExprStruct.bin b/macros/ASTManagement/AST_ParseIfExprStruct.bin new file mode 100644 index 00000000..59203066 Binary files /dev/null and b/macros/ASTManagement/AST_ParseIfExprStruct.bin differ diff --git a/macros/ASTManagement/AST_ParseIfExprStruct.sci b/macros/ASTManagement/AST_ParseIfExprStruct.sci index 3ed1b5b6..2bfb08dd 100644 --- a/macros/ASTManagement/AST_ParseIfExprStruct.sci +++ b/macros/ASTManagement/AST_ParseIfExprStruct.sci @@ -98,6 +98,7 @@ while (flagendpop == 0) if (ASTIfExpType=='if') if (IfExprField=='Expression:') flagendpop = 1; + //PrintStringInfo('hello dere '+IfExprField,ReportFileName,'file','y'); // Pop Again the If tag from the AST. IfExprField = AST_PopASTStack(); elseif (IfExprField=='Operands:') @@ -117,10 +118,14 @@ while (flagendpop == 0) elseif (ASTIfExpType=='elseif') if (IfExprField=='Else If Expression') flagendpop = 1; + //IfExprField = AST_PopASTStack(); else - if (IfExprField=='&&') + if (IfExprField=='&&' | IfExprField=='||') NOp = NOp + 1; Op(NOp) = IfExprField; + elseif (IfExprField=='Operands:') + flagendpop = 0; + g = AST_PopASTStack(); else NIfCondArg = NIfCondArg + 1; IfCondArg(NIfCondArg) = IfExprField; @@ -129,7 +134,9 @@ while (flagendpop == 0) end end end + if flagendpop == 0 IfExprField = AST_PopASTStack(); + end PrintStringInfo('operators are '+IfExprField,ReportFileName,'file','y'); end diff --git a/macros/ASTManagement/AST_ParseOperStruct.bin b/macros/ASTManagement/AST_ParseOperStruct.bin new file mode 100644 index 00000000..e189cbc9 Binary files /dev/null and b/macros/ASTManagement/AST_ParseOperStruct.bin differ diff --git a/macros/ASTManagement/AST_PopASTStack.bin b/macros/ASTManagement/AST_PopASTStack.bin new file mode 100644 index 00000000..f9b85d34 Binary files /dev/null and b/macros/ASTManagement/AST_PopASTStack.bin differ diff --git a/macros/ASTManagement/AST_PushASTStack.bin b/macros/ASTManagement/AST_PushASTStack.bin new file mode 100644 index 00000000..8fcd563c Binary files /dev/null and b/macros/ASTManagement/AST_PushASTStack.bin differ diff --git a/macros/ASTManagement/AST_ReadASTHeader.bin b/macros/ASTManagement/AST_ReadASTHeader.bin new file mode 100644 index 00000000..614231c4 Binary files /dev/null and b/macros/ASTManagement/AST_ReadASTHeader.bin differ diff --git a/macros/ASTManagement/AST_ReadEqualRhsNames.bin b/macros/ASTManagement/AST_ReadEqualRhsNames.bin new file mode 100644 index 00000000..a131c498 Binary files /dev/null and b/macros/ASTManagement/AST_ReadEqualRhsNames.bin differ diff --git a/macros/ASTManagement/GenOutArgNames.bin b/macros/ASTManagement/GenOutArgNames.bin new file mode 100644 index 00000000..2ebce86c Binary files /dev/null and b/macros/ASTManagement/GenOutArgNames.bin differ diff --git a/macros/ASTManagement/Operator2FunName.bin b/macros/ASTManagement/Operator2FunName.bin new file mode 100644 index 00000000..884c99bc Binary files /dev/null and b/macros/ASTManagement/Operator2FunName.bin differ diff --git a/macros/ASTManagement/SciFile2ASTFile.bin b/macros/ASTManagement/SciFile2ASTFile.bin new file mode 100644 index 00000000..be8bc0d5 Binary files /dev/null and b/macros/ASTManagement/SciFile2ASTFile.bin differ diff --git a/macros/ASTManagement/_comment_string.bin b/macros/ASTManagement/_comment_string.bin new file mode 100644 index 00000000..fb894945 Binary files /dev/null and b/macros/ASTManagement/_comment_string.bin differ diff --git a/macros/ASTManagement/_cste_string.bin b/macros/ASTManagement/_cste_string.bin new file mode 100644 index 00000000..ba643c47 Binary files /dev/null and b/macros/ASTManagement/_cste_string.bin differ diff --git a/macros/ASTManagement/_equal_string.bin b/macros/ASTManagement/_equal_string.bin new file mode 100644 index 00000000..7f88fee6 Binary files /dev/null and b/macros/ASTManagement/_equal_string.bin differ diff --git a/macros/ASTManagement/_for_string.bin b/macros/ASTManagement/_for_string.bin new file mode 100644 index 00000000..c3fda16b Binary files /dev/null and b/macros/ASTManagement/_for_string.bin differ diff --git a/macros/ASTManagement/_funcall_string.bin b/macros/ASTManagement/_funcall_string.bin new file mode 100644 index 00000000..8354586d Binary files /dev/null and b/macros/ASTManagement/_funcall_string.bin differ diff --git a/macros/ASTManagement/_ifthenel_string.bin b/macros/ASTManagement/_ifthenel_string.bin new file mode 100644 index 00000000..1c6fa73d Binary files /dev/null and b/macros/ASTManagement/_ifthenel_string.bin differ diff --git a/macros/ASTManagement/_ifthenelse_string.bin b/macros/ASTManagement/_ifthenelse_string.bin new file mode 100644 index 00000000..456ffadc Binary files /dev/null and b/macros/ASTManagement/_ifthenelse_string.bin differ diff --git a/macros/ASTManagement/_operatio_string.bin b/macros/ASTManagement/_operatio_string.bin new file mode 100644 index 00000000..40abf6b2 Binary files /dev/null and b/macros/ASTManagement/_operatio_string.bin differ diff --git a/macros/ASTManagement/_operatio_string.sci b/macros/ASTManagement/_operatio_string.sci index 8421a3f4..e9332337 100644 --- a/macros/ASTManagement/_operatio_string.sci +++ b/macros/ASTManagement/_operatio_string.sci @@ -10,4 +10,4 @@ function txt=%operatio_string(O) ' Operator: '+O.operator 'EndOperation' ] -endfunction \ No newline at end of file +endfunction diff --git a/macros/ASTManagement/_operation_string.bin b/macros/ASTManagement/_operation_string.bin new file mode 100644 index 00000000..dfbeec96 Binary files /dev/null and b/macros/ASTManagement/_operation_string.bin differ diff --git a/macros/ASTManagement/_operation_string.sci b/macros/ASTManagement/_operation_string.sci index 84f5ce3c..c9282f67 100644 --- a/macros/ASTManagement/_operation_string.sci +++ b/macros/ASTManagement/_operation_string.sci @@ -10,4 +10,4 @@ function txt=%operation_string(O) ' Operator: '+O.operator 'EndOperation' ] -endfunction \ No newline at end of file +endfunction diff --git a/macros/ASTManagement/_program_p.bin b/macros/ASTManagement/_program_p.bin new file mode 100644 index 00000000..216a38b2 Binary files /dev/null and b/macros/ASTManagement/_program_p.bin differ diff --git a/macros/ASTManagement/_program_string.bin b/macros/ASTManagement/_program_string.bin new file mode 100644 index 00000000..3a8fc95b Binary files /dev/null and b/macros/ASTManagement/_program_string.bin differ diff --git a/macros/ASTManagement/_variable_string.bin b/macros/ASTManagement/_variable_string.bin new file mode 100644 index 00000000..f81fd6e0 Binary files /dev/null and b/macros/ASTManagement/_variable_string.bin differ diff --git a/macros/ASTManagement/_while_string.bin b/macros/ASTManagement/_while_string.bin new file mode 100644 index 00000000..142189c6 Binary files /dev/null and b/macros/ASTManagement/_while_string.bin differ diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib index c73eb6b2..7cb0b9df 100644 Binary files a/macros/ASTManagement/lib and b/macros/ASTManagement/lib differ diff --git a/macros/ASTManagement/names b/macros/ASTManagement/names index 26edaf7c..6deb883d 100644 --- a/macros/ASTManagement/names +++ b/macros/ASTManagement/names @@ -21,6 +21,7 @@ AST_ExtractNameAndScope AST_GetASTFile AST_GetFuncallPrm AST_GetPrecAndLhsArg +AST_HandleCC AST_HandleEOL AST_HandleEndFor AST_HandleEndGenFun @@ -28,6 +29,7 @@ AST_HandleEndProgram AST_HandleEndWhile AST_HandleFor AST_HandleForStatem +AST_HandleFunCC AST_HandleFunRC AST_HandleHeader AST_HandleIfElse @@ -59,5 +61,3 @@ _program_string _variable_string _while_string objectlist2string -AST_HandleRC -AST_HandleFunRC diff --git a/macros/ASTManagement/objectlist2string.bin b/macros/ASTManagement/objectlist2string.bin new file mode 100644 index 00000000..96159f22 Binary files /dev/null and b/macros/ASTManagement/objectlist2string.bin differ diff --git a/macros/CCodeGeneration/C_FinalizeCode.bin b/macros/CCodeGeneration/C_FinalizeCode.bin new file mode 100644 index 00000000..b4005914 Binary files /dev/null and b/macros/CCodeGeneration/C_FinalizeCode.bin differ diff --git a/macros/CCodeGeneration/C_ForExpression.bin b/macros/CCodeGeneration/C_ForExpression.bin new file mode 100644 index 00000000..1c3f6747 Binary files /dev/null and b/macros/CCodeGeneration/C_ForExpression.bin differ diff --git a/macros/CCodeGeneration/C_Funcall.bin b/macros/CCodeGeneration/C_Funcall.bin new file mode 100644 index 00000000..80fda7c4 Binary files /dev/null and b/macros/CCodeGeneration/C_Funcall.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations.bin b/macros/CCodeGeneration/C_GenDeclarations.bin new file mode 100644 index 00000000..c3b36009 Binary files /dev/null and b/macros/CCodeGeneration/C_GenDeclarations.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin new file mode 100644 index 00000000..ab05955d Binary files /dev/null and b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.sci b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci new file mode 100644 index 00000000..46d9de78 --- /dev/null +++ b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci @@ -0,0 +1,155 @@ +function Cdeclaration = C_GenDeclarations_Dup(InArg,NInArg,com_type,ArgStruct,CDeclarationFileName,IndentLevel,ReportFileName,FlagExt,ResizeApproach) +// function Cdeclaration = C_GenDeclarations(ArgStruct,CDeclarationFileName,IndentLevel,ReportFileName,FlagExt,ResizeApproach) +// ----------------------------------------------------------------- +// //NUT: add description here +// +// Input data: +// //NUT: add description here +// +// Output data: +// //NUT: add description here +// +// Status: +// 27-Oct-2007 -- Raffaele Nutricato: Author. +// 10-Jun-2008 -- Raffaele Nutricato: adapted to work with realloc function. +// +// Copyright 2007 Raffaele Nutricato. +// Contact: raffaele.nutricato@tiscali.it +// ----------------------------------------------------------------- + +// Generate C corresponding declaration given some information in ArgStruct +// + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ + //SCI2CNInArgCheck(argn(2),6,6); +// #RNU_RES_B +//NUT: ilnome di questa funzione va cambiato perche' le dichiarazioni le fanno anche i for e i while. + +PrintStringInfo(' ',ReportFileName,'file','y'); +PrintStringInfo('***Generating C declaration***',ReportFileName,'file','y'); +// #RNU_RES_E + +Cdeclaration = ''; +if (ArgStruct.Dimension > 0) + if (FlagExt == 1) + Cdeclaration(1) = 'extern '; + Cdeclaration(2) = 'extern '; + else + Cdeclaration(1) = ''; + Cdeclaration(2) = ''; + end +// #RNU_RES_B +//NUT: vedi Mem_Alloc_Out per maggiori info sulla rimozione della temp nella if +// if ((ArgStruct.Scope=='Temp') | (ArgStruct.FindLike == -1) | (isnum(ArgStruct.Size(1))==%F) | (isnum(ArgStruct.Size(2))==%F)) +// #RNU_RES_E + if (ArgStruct.Type=='g') +// if (isnan(ArgStruct.Value) ) + if ((isnum(ArgStruct.Size(1))==%F) | (isnum(ArgStruct.Size(2))==%F) ) + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+... + ' * '+ArgStruct.Name+';'; + else + if ((FlagExt == 1) | (isnan(ArgStruct.Value))) + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+... + ' '+ArgStruct.Name+'['+ArgStruct.Size(1)+'*'+ArgStruct.Size(2)+'];'; + else + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+... + ' '+ArgStruct.Name+'['+ArgStruct.Size(1)+'*'+ArgStruct.Size(2)+'] = {'+ArgStruct.Value+'};'; + end + end + Cdeclaration(2) = Cdeclaration(2)+C_Type('i')+' __'+ArgStruct.Name+'Size[2] = {'+ArgStruct.Size(1)+','+ArgStruct.Size(2)+'};'; + elseif ((ArgStruct.FindLike == -1) | ... + (isnum(ArgStruct.Size(1))==%F) | (isnum(ArgStruct.Size(2))==%F) | ... + (ResizeApproach=='REALLOC_ALL_RESIZE_ALL' & ArgStruct.Type~='g')) +// #RNU_RES_B +//RNU sulle stringhe non ho ancora deciso se applicare la realloc. +// Generate only the pointer that will be used by the malloc function. +// #RNU_RES_E + if (FlagExt == 1) + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+'* '+... + ArgStruct.Name+';'; + else + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+'* '+... + ArgStruct.Name+' = NULL;'; + end +// Declare the Size array + Cdeclaration(2) = Cdeclaration(2)+C_Type('i')+' __'+ArgStruct.Name+'Size[2];'; + else +// Declare the array with its size. + computedSize = ArgStruct.Size(1); + computedSizeLength = size(ArgStruct.Size, '*'); + computedSizeField = ArgStruct.Size(1); + for sizeIterator = 2:computedSizeLength; + computedSize = computedSize + ' * ' + ArgStruct.Size(sizeIterator); + computedSizeField = computedSizeField + ', ' + ArgStruct.Size(sizeIterator); + end + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+' '+ArgStruct.Name+'['+computedSize+']={'; + if com_type == 0 + for i = 1:NInArg-1 + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; + end + Cdeclaration(1) = Cdeclaration(1)+InArg(NInArg).Name+'};'; + else + for i=1:NInArg-1 + if InArg(i).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+',0,'; + else + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; + end + end + if InArg(NInArg).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};' + else + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};' + end + end + Cdeclaration(2) = Cdeclaration(2)+C_Type('i')+' __'+ArgStruct.Name+'Size['+string(computedSizeLength)+']'; + if (FlagExt <> 1) + Cdeclaration(2) = Cdeclaration(2)+' = {'+computedSizeField+'};'; + end + Cdeclaration(2) = Cdeclaration(2)+';'; + end +else + if (ArgStruct.Type == 'fn') + //do nothing. This is a function name. Will be declared in header file. + else + if (FlagExt == 1) + Cdeclaration(1) = 'extern '; + else + Cdeclaration(1) = ''; + end + Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+' '+ArgStruct.Name; + if (~isnan(ArgStruct.Value) & (FlagExt == 0)) + if isreal(ArgStruct.Value) + Cdeclaration(1) = Cdeclaration(1)+' = '+SCI2Cstring(ArgStruct.Value); + else + if (ArgStruct.Type == 'z') + Cdeclaration(1) = Cdeclaration(1)+' = DoubleComplex('+SCI2Cstring(real(ArgStruct.Value))+','+SCI2Cstring(imag(ArgStruct.Value))+')'; + else + Cdeclaration(1) = Cdeclaration(1)+' = FloatComplex('+SCI2Cstring(real(ArgStruct.Value))+','+SCI2Cstring(imag(ArgStruct.Value))+')'; + end + end + end + Cdeclaration(1) = Cdeclaration(1)+';'; + end +end + + +// -------------------------------------------- +// --- Write C declaration into the C file. --- +// -------------------------------------------- +PrintStringInfo(' ',CDeclarationFileName,'file','y'); +for cntdecl = 1:size(Cdeclaration, '*') + PrintStringInfo(' '+Cdeclaration(cntdecl),ReportFileName,'file','y'); + PrintStringInfo(C_IndentBlanks(IndentLevel)+Cdeclaration(cntdecl),CDeclarationFileName,'file','y'); +end + +PrintStringInfo(' Writing C declaration in: '+CDeclarationFileName,ReportFileName,'file','y'); +PrintStringInfo(' ',CDeclarationFileName,'file','y'); + +endfunction +// #RNU_RES_B +//NUT: dove sta il controllo che verifica se dopo aver dichiarato una local A[10] essa viene utilizzata +//NUT: per memorizzare un A = sin(B) dove B[11]?? +// #RNU_RES_E diff --git a/macros/CCodeGeneration/C_GenerateFunName.bin b/macros/CCodeGeneration/C_GenerateFunName.bin new file mode 100644 index 00000000..1b723f16 Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateFunName.bin differ diff --git a/macros/CCodeGeneration/C_GenerateLaunchScript.bin b/macros/CCodeGeneration/C_GenerateLaunchScript.bin new file mode 100644 index 00000000..587c1547 Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateLaunchScript.bin differ diff --git a/macros/CCodeGeneration/C_GenerateMakefile.bin b/macros/CCodeGeneration/C_GenerateMakefile.bin new file mode 100644 index 00000000..cea86411 Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateMakefile.bin differ diff --git a/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin b/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin new file mode 100644 index 00000000..838c674e Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateMakefile_msvc.bin differ diff --git a/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin b/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin new file mode 100644 index 00000000..ce25219f Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateMkfle_arduino.bin differ diff --git a/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin b/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin new file mode 100644 index 00000000..2e02cae4 Binary files /dev/null and b/macros/CCodeGeneration/C_GenerateSCI2CHeader.bin differ diff --git a/macros/CCodeGeneration/C_IfElseBlocks.bin b/macros/CCodeGeneration/C_IfElseBlocks.bin new file mode 100644 index 00000000..332e89bf Binary files /dev/null and b/macros/CCodeGeneration/C_IfElseBlocks.bin differ diff --git a/macros/CCodeGeneration/C_IfExpression.bin b/macros/CCodeGeneration/C_IfExpression.bin new file mode 100644 index 00000000..b1dc7370 Binary files /dev/null and b/macros/CCodeGeneration/C_IfExpression.bin differ diff --git a/macros/CCodeGeneration/C_IndentBlanks.bin b/macros/CCodeGeneration/C_IndentBlanks.bin new file mode 100644 index 00000000..77bfaebc Binary files /dev/null and b/macros/CCodeGeneration/C_IndentBlanks.bin differ diff --git a/macros/CCodeGeneration/C_InitHeader.bin b/macros/CCodeGeneration/C_InitHeader.bin new file mode 100644 index 00000000..567822c0 Binary files /dev/null and b/macros/CCodeGeneration/C_InitHeader.bin differ diff --git a/macros/CCodeGeneration/C_MemAllocOutTempVars.bin b/macros/CCodeGeneration/C_MemAllocOutTempVars.bin new file mode 100644 index 00000000..443ad3c1 Binary files /dev/null and b/macros/CCodeGeneration/C_MemAllocOutTempVars.bin differ diff --git a/macros/CCodeGeneration/C_SCI2CHeader.bin b/macros/CCodeGeneration/C_SCI2CHeader.bin new file mode 100644 index 00000000..1d3e6182 Binary files /dev/null and b/macros/CCodeGeneration/C_SCI2CHeader.bin differ diff --git a/macros/CCodeGeneration/C_Type.bin b/macros/CCodeGeneration/C_Type.bin new file mode 100644 index 00000000..7b5bf444 Binary files /dev/null and b/macros/CCodeGeneration/C_Type.bin differ diff --git a/macros/CCodeGeneration/C_WhileExpression.bin b/macros/CCodeGeneration/C_WhileExpression.bin new file mode 100644 index 00000000..5e426505 Binary files /dev/null and b/macros/CCodeGeneration/C_WhileExpression.bin differ diff --git a/macros/CCodeGeneration/GenCFunDatFiles.bin b/macros/CCodeGeneration/GenCFunDatFiles.bin new file mode 100644 index 00000000..6a374f5b Binary files /dev/null and b/macros/CCodeGeneration/GenCFunDatFiles.bin differ diff --git a/macros/CCodeGeneration/GetClsFileName.bin b/macros/CCodeGeneration/GetClsFileName.bin new file mode 100644 index 00000000..dda02933 Binary files /dev/null and b/macros/CCodeGeneration/GetClsFileName.bin differ diff --git a/macros/CCodeGeneration/GetSymbolDimension.bin b/macros/CCodeGeneration/GetSymbolDimension.bin new file mode 100644 index 00000000..5c73f435 Binary files /dev/null and b/macros/CCodeGeneration/GetSymbolDimension.bin differ diff --git a/macros/CCodeGeneration/GetWhileCondVariable.bin b/macros/CCodeGeneration/GetWhileCondVariable.bin new file mode 100644 index 00000000..6815fb4b Binary files /dev/null and b/macros/CCodeGeneration/GetWhileCondVariable.bin differ diff --git a/macros/CCodeGeneration/JoinDeclarAndCcode.bin b/macros/CCodeGeneration/JoinDeclarAndCcode.bin new file mode 100644 index 00000000..084ab085 Binary files /dev/null and b/macros/CCodeGeneration/JoinDeclarAndCcode.bin differ diff --git a/macros/CCodeGeneration/Sci2AnnotationFile.bin b/macros/CCodeGeneration/Sci2AnnotationFile.bin new file mode 100644 index 00000000..95fe5611 Binary files /dev/null and b/macros/CCodeGeneration/Sci2AnnotationFile.bin differ diff --git a/macros/CCodeGeneration/lib b/macros/CCodeGeneration/lib index 4e87a555..baf9dba6 100644 Binary files a/macros/CCodeGeneration/lib and b/macros/CCodeGeneration/lib differ diff --git a/macros/CCodeGeneration/names b/macros/CCodeGeneration/names index c4dea610..bf9ced9b 100644 --- a/macros/CCodeGeneration/names +++ b/macros/CCodeGeneration/names @@ -2,6 +2,7 @@ C_FinalizeCode C_ForExpression C_Funcall C_GenDeclarations +C_GenDeclarations_Dup C_GenerateFunName C_GenerateLaunchScript C_GenerateMakefile @@ -12,7 +13,6 @@ C_IfExpression C_IndentBlanks C_InitHeader C_MemAllocOutTempVars -C_RCOperator C_SCI2CHeader C_Type C_WhileExpression diff --git a/macros/ErrorMessages/EM_NanSize.bin b/macros/ErrorMessages/EM_NanSize.bin new file mode 100644 index 00000000..d0ad584b Binary files /dev/null and b/macros/ErrorMessages/EM_NanSize.bin differ diff --git a/macros/ErrorMessages/EM_UnknownStep.bin b/macros/ErrorMessages/EM_UnknownStep.bin new file mode 100644 index 00000000..57a2b4d7 Binary files /dev/null and b/macros/ErrorMessages/EM_UnknownStep.bin differ diff --git a/macros/ErrorMessages/EM_ZeroSize.bin b/macros/ErrorMessages/EM_ZeroSize.bin new file mode 100644 index 00000000..f8d2830f Binary files /dev/null and b/macros/ErrorMessages/EM_ZeroSize.bin differ diff --git a/macros/FunctionAnnotation/FA_ADD.bin b/macros/FunctionAnnotation/FA_ADD.bin new file mode 100644 index 00000000..6c810828 Binary files /dev/null and b/macros/FunctionAnnotation/FA_ADD.bin differ diff --git a/macros/FunctionAnnotation/FA_DIV.bin b/macros/FunctionAnnotation/FA_DIV.bin new file mode 100644 index 00000000..6e6708fe Binary files /dev/null and b/macros/FunctionAnnotation/FA_DIV.bin differ diff --git a/macros/FunctionAnnotation/FA_GetDefaultPrecision.bin b/macros/FunctionAnnotation/FA_GetDefaultPrecision.bin new file mode 100644 index 00000000..fa48e833 Binary files /dev/null and b/macros/FunctionAnnotation/FA_GetDefaultPrecision.bin differ diff --git a/macros/FunctionAnnotation/FA_GetFunAnn.bin b/macros/FunctionAnnotation/FA_GetFunAnn.bin new file mode 100644 index 00000000..ff29181c Binary files /dev/null and b/macros/FunctionAnnotation/FA_GetFunAnn.bin differ diff --git a/macros/FunctionAnnotation/FA_GetOutArgInfo.bin b/macros/FunctionAnnotation/FA_GetOutArgInfo.bin new file mode 100644 index 00000000..89c0d1d3 Binary files /dev/null and b/macros/FunctionAnnotation/FA_GetOutArgInfo.bin differ diff --git a/macros/FunctionAnnotation/FA_GetResizeApproach.bin b/macros/FunctionAnnotation/FA_GetResizeApproach.bin new file mode 100644 index 00000000..77397e01 Binary files /dev/null and b/macros/FunctionAnnotation/FA_GetResizeApproach.bin differ diff --git a/macros/FunctionAnnotation/FA_INT.bin b/macros/FunctionAnnotation/FA_INT.bin new file mode 100644 index 00000000..edf9bb84 Binary files /dev/null and b/macros/FunctionAnnotation/FA_INT.bin differ diff --git a/macros/FunctionAnnotation/FA_MAX.bin b/macros/FunctionAnnotation/FA_MAX.bin new file mode 100644 index 00000000..a9debbab Binary files /dev/null and b/macros/FunctionAnnotation/FA_MAX.bin differ diff --git a/macros/FunctionAnnotation/FA_MIN.bin b/macros/FunctionAnnotation/FA_MIN.bin new file mode 100644 index 00000000..cc9bd02e Binary files /dev/null and b/macros/FunctionAnnotation/FA_MIN.bin differ diff --git a/macros/FunctionAnnotation/FA_MUL.bin b/macros/FunctionAnnotation/FA_MUL.bin new file mode 100644 index 00000000..8b674c21 Binary files /dev/null and b/macros/FunctionAnnotation/FA_MUL.bin differ diff --git a/macros/FunctionAnnotation/FA_REAL.bin b/macros/FunctionAnnotation/FA_REAL.bin new file mode 100644 index 00000000..ed68eb74 Binary files /dev/null and b/macros/FunctionAnnotation/FA_REAL.bin differ diff --git a/macros/FunctionAnnotation/FA_SCHUR_SZ.bin b/macros/FunctionAnnotation/FA_SCHUR_SZ.bin new file mode 100644 index 00000000..292a6193 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SCHUR_SZ.bin differ diff --git a/macros/FunctionAnnotation/FA_SCHUR_TP.bin b/macros/FunctionAnnotation/FA_SCHUR_TP.bin new file mode 100644 index 00000000..4b0b438f Binary files /dev/null and b/macros/FunctionAnnotation/FA_SCHUR_TP.bin differ diff --git a/macros/FunctionAnnotation/FA_SUB.bin b/macros/FunctionAnnotation/FA_SUB.bin new file mode 100644 index 00000000..fdc52b4d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SUB.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_1.bin b/macros/FunctionAnnotation/FA_SZ_1.bin new file mode 100644 index 00000000..c01ff59d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_1.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_2.bin b/macros/FunctionAnnotation/FA_SZ_2.bin new file mode 100644 index 00000000..00834df4 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_2.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.bin b/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.bin new file mode 100644 index 00000000..a3b34afc Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_COL_DIAG_IN_EX.bin b/macros/FunctionAnnotation/FA_SZ_COL_DIAG_IN_EX.bin new file mode 100644 index 00000000..76748237 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_COL_DIAG_IN_EX.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_DEC2BASE.bin b/macros/FunctionAnnotation/FA_SZ_DEC2BASE.bin new file mode 100644 index 00000000..879c5885 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_DEC2BASE.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_DEC2BIN.bin b/macros/FunctionAnnotation/FA_SZ_DEC2BIN.bin new file mode 100644 index 00000000..af9d1cb8 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_DEC2BIN.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_DEC2HEX.bin b/macros/FunctionAnnotation/FA_SZ_DEC2HEX.bin new file mode 100644 index 00000000..ddabb108 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_DEC2HEX.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_DEC2OCT.bin b/macros/FunctionAnnotation/FA_SZ_DEC2OCT.bin new file mode 100644 index 00000000..be386e03 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_DEC2OCT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_DIFF.bin b/macros/FunctionAnnotation/FA_SZ_DIFF.bin new file mode 100644 index 00000000..08d66c13 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_DIFF.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_FACTOR.bin b/macros/FunctionAnnotation/FA_SZ_FACTOR.bin new file mode 100644 index 00000000..ee8f8991 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_FACTOR.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_FROM_VAL.bin b/macros/FunctionAnnotation/FA_SZ_FROM_VAL.bin new file mode 100644 index 00000000..a06f3b16 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_FROM_VAL.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_LINSPACE_ROW.bin b/macros/FunctionAnnotation/FA_SZ_LINSPACE_ROW.bin new file mode 100644 index 00000000..60cb9d4e Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_LINSPACE_ROW.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_LQE.bin b/macros/FunctionAnnotation/FA_SZ_LQE.bin new file mode 100644 index 00000000..8abfa39b Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_LQE.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_LQR.bin b/macros/FunctionAnnotation/FA_SZ_LQR.bin new file mode 100644 index 00000000..843fb2ce Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_LQR.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OBSCNT.bin b/macros/FunctionAnnotation/FA_SZ_OBSCNT.bin new file mode 100644 index 00000000..b936e29c Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OBSCNT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPAPEX.bin b/macros/FunctionAnnotation/FA_SZ_OPAPEX.bin new file mode 100644 index 00000000..90e50348 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPAPEX.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPBACKSLASH.bin b/macros/FunctionAnnotation/FA_SZ_OPBACKSLASH.bin new file mode 100644 index 00000000..be3e89ac Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPBACKSLASH.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPCC.bin b/macros/FunctionAnnotation/FA_SZ_OPCC.bin new file mode 100644 index 00000000..767385a3 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPCC.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPDOTAPEX.bin b/macros/FunctionAnnotation/FA_SZ_OPDOTAPEX.bin new file mode 100644 index 00000000..822cb5e8 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPDOTAPEX.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPDOTBACKSLASH.bin b/macros/FunctionAnnotation/FA_SZ_OPDOTBACKSLASH.bin new file mode 100644 index 00000000..2af7e390 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPDOTBACKSLASH.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPDOTHAT.bin b/macros/FunctionAnnotation/FA_SZ_OPDOTHAT.bin new file mode 100644 index 00000000..72d6e23d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPDOTHAT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPDOTSLASH.bin b/macros/FunctionAnnotation/FA_SZ_OPDOTSLASH.bin new file mode 100644 index 00000000..f060e87e Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPDOTSLASH.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.bin b/macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.bin new file mode 100644 index 00000000..6be9a457 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPDOTSTAR.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPHAT.bin b/macros/FunctionAnnotation/FA_SZ_OPHAT.bin new file mode 100644 index 00000000..feb8122d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPHAT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGAND.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGAND.bin new file mode 100644 index 00000000..e4419128 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGAND.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGEQ.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGEQ.bin new file mode 100644 index 00000000..afe431b3 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGEQ.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGGE.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGGE.bin new file mode 100644 index 00000000..87d2d5bf Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGGE.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGGT.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGGT.bin new file mode 100644 index 00000000..c3a1d88c Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGGT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGLE.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGLE.bin new file mode 100644 index 00000000..80216050 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGLE.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGLT.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGLT.bin new file mode 100644 index 00000000..417fe265 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGLT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGNE.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGNE.bin new file mode 100644 index 00000000..6c9f9bf0 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGNE.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGNOT.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGNOT.bin new file mode 100644 index 00000000..417a9195 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGNOT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPLOGOR.bin b/macros/FunctionAnnotation/FA_SZ_OPLOGOR.bin new file mode 100644 index 00000000..af6c2a8e Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPLOGOR.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPMINUS.bin b/macros/FunctionAnnotation/FA_SZ_OPMINUS.bin new file mode 100644 index 00000000..deac97df Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPMINUS.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin b/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin new file mode 100644 index 00000000..da84349d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPPLUS.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPPLUSA.bin b/macros/FunctionAnnotation/FA_SZ_OPPLUSA.bin new file mode 100644 index 00000000..b45ac592 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPPLUSA.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPRC.bin b/macros/FunctionAnnotation/FA_SZ_OPRC.bin new file mode 100644 index 00000000..6d55e274 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPRC.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPSLASH.bin b/macros/FunctionAnnotation/FA_SZ_OPSLASH.bin new file mode 100644 index 00000000..14bb17f9 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPSLASH.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_OPSTAR.bin b/macros/FunctionAnnotation/FA_SZ_OPSTAR.bin new file mode 100644 index 00000000..2f28cb62 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_OPSTAR.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_PRIMES.bin b/macros/FunctionAnnotation/FA_SZ_PRIMES.bin new file mode 100644 index 00000000..353edab7 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_PRIMES.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.bin b/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.bin new file mode 100644 index 00000000..3b0c0b78 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.bin b/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.bin new file mode 100644 index 00000000..f5f1a236 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_ROW_DIAG_INS_EXT.bin b/macros/FunctionAnnotation/FA_SZ_ROW_DIAG_INS_EXT.bin new file mode 100644 index 00000000..e5d8e650 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_ROW_DIAG_INS_EXT.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_SEL1.bin b/macros/FunctionAnnotation/FA_SZ_SEL1.bin new file mode 100644 index 00000000..1d68a2e6 Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_SEL1.bin differ diff --git a/macros/FunctionAnnotation/FA_SZ_SEL2.bin b/macros/FunctionAnnotation/FA_SZ_SEL2.bin new file mode 100644 index 00000000..d3897f7d Binary files /dev/null and b/macros/FunctionAnnotation/FA_SZ_SEL2.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_C.bin b/macros/FunctionAnnotation/FA_TP_C.bin new file mode 100644 index 00000000..d13d92ca Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_C.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_COMPLEX.bin b/macros/FunctionAnnotation/FA_TP_COMPLEX.bin new file mode 100644 index 00000000..3400b2af Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_COMPLEX.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_CVIMAGE.bin b/macros/FunctionAnnotation/FA_TP_CVIMAGE.bin new file mode 100644 index 00000000..a7327099 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_CVIMAGE.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_D.bin b/macros/FunctionAnnotation/FA_TP_D.bin new file mode 100644 index 00000000..12293dab Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_D.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_I.bin b/macros/FunctionAnnotation/FA_TP_I.bin new file mode 100644 index 00000000..503be40b Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_I.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_INT16.bin b/macros/FunctionAnnotation/FA_TP_INT16.bin new file mode 100644 index 00000000..fba4305a Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_INT16.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_INT8.bin b/macros/FunctionAnnotation/FA_TP_INT8.bin new file mode 100644 index 00000000..f67d7485 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_INT8.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_MAX.bin b/macros/FunctionAnnotation/FA_TP_MAX.bin new file mode 100644 index 00000000..099ea1ba Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_MAX.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin b/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin new file mode 100644 index 00000000..60293a1d Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_MIN_REAL.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_REAL.bin b/macros/FunctionAnnotation/FA_TP_REAL.bin new file mode 100644 index 00000000..7e54122a Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_REAL.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_S.bin b/macros/FunctionAnnotation/FA_TP_S.bin new file mode 100644 index 00000000..1419e461 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_S.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_UINT16.bin b/macros/FunctionAnnotation/FA_TP_UINT16.bin new file mode 100644 index 00000000..dc455ca6 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_UINT16.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_UINT8.bin b/macros/FunctionAnnotation/FA_TP_UINT8.bin new file mode 100644 index 00000000..508db417 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_UINT8.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_USER.bin b/macros/FunctionAnnotation/FA_TP_USER.bin new file mode 100644 index 00000000..87e18d54 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_USER.bin differ diff --git a/macros/FunctionAnnotation/FA_TP_Z.bin b/macros/FunctionAnnotation/FA_TP_Z.bin new file mode 100644 index 00000000..6c371723 Binary files /dev/null and b/macros/FunctionAnnotation/FA_TP_Z.bin differ diff --git a/macros/FunctionList/FL_ExistCFunction.bin b/macros/FunctionList/FL_ExistCFunction.bin new file mode 100644 index 00000000..1c85aa21 Binary files /dev/null and b/macros/FunctionList/FL_ExistCFunction.bin differ diff --git a/macros/FunctionList/FL_ExtractFuncList.bin b/macros/FunctionList/FL_ExtractFuncList.bin new file mode 100644 index 00000000..ec74708d Binary files /dev/null and b/macros/FunctionList/FL_ExtractFuncList.bin differ diff --git a/macros/FunctionList/FL_GetFunctionClass.bin b/macros/FunctionList/FL_GetFunctionClass.bin new file mode 100644 index 00000000..faa210e6 Binary files /dev/null and b/macros/FunctionList/FL_GetFunctionClass.bin differ diff --git a/macros/FunctionList/FL_InOutArgs2CFunNames.bin b/macros/FunctionList/FL_InOutArgs2CFunNames.bin new file mode 100644 index 00000000..09d5eb5e Binary files /dev/null and b/macros/FunctionList/FL_InOutArgs2CFunNames.bin differ diff --git a/macros/FunctionList/FL_UpdateConverted.bin b/macros/FunctionList/FL_UpdateConverted.bin new file mode 100644 index 00000000..73f2cf02 Binary files /dev/null and b/macros/FunctionList/FL_UpdateConverted.bin differ diff --git a/macros/FunctionList/FL_UpdateToBeConv.bin b/macros/FunctionList/FL_UpdateToBeConv.bin new file mode 100644 index 00000000..44b5803f Binary files /dev/null and b/macros/FunctionList/FL_UpdateToBeConv.bin differ diff --git a/macros/GeneralFunctions/Array2String.bin b/macros/GeneralFunctions/Array2String.bin new file mode 100644 index 00000000..c40274de Binary files /dev/null and b/macros/GeneralFunctions/Array2String.bin differ diff --git a/macros/GeneralFunctions/ConvertPathMat2C.bin b/macros/GeneralFunctions/ConvertPathMat2C.bin new file mode 100644 index 00000000..7dd14227 Binary files /dev/null and b/macros/GeneralFunctions/ConvertPathMat2C.bin differ diff --git a/macros/GeneralFunctions/File2StringArray.bin b/macros/GeneralFunctions/File2StringArray.bin new file mode 100644 index 00000000..1b050f4e Binary files /dev/null and b/macros/GeneralFunctions/File2StringArray.bin differ diff --git a/macros/GeneralFunctions/FunName2SciFileName.bin b/macros/GeneralFunctions/FunName2SciFileName.bin new file mode 100644 index 00000000..c3cb5387 Binary files /dev/null and b/macros/GeneralFunctions/FunName2SciFileName.bin differ diff --git a/macros/GeneralFunctions/IsNanSize.bin b/macros/GeneralFunctions/IsNanSize.bin new file mode 100644 index 00000000..71735125 Binary files /dev/null and b/macros/GeneralFunctions/IsNanSize.bin differ diff --git a/macros/GeneralFunctions/KeyStr2FileStrPos.bin b/macros/GeneralFunctions/KeyStr2FileStrPos.bin new file mode 100644 index 00000000..5c6cfaff Binary files /dev/null and b/macros/GeneralFunctions/KeyStr2FileStrPos.bin differ diff --git a/macros/GeneralFunctions/PrintStepInfo.bin b/macros/GeneralFunctions/PrintStepInfo.bin new file mode 100644 index 00000000..98208f8f Binary files /dev/null and b/macros/GeneralFunctions/PrintStepInfo.bin differ diff --git a/macros/GeneralFunctions/PrintStringInfo.bin b/macros/GeneralFunctions/PrintStringInfo.bin new file mode 100644 index 00000000..c936b207 Binary files /dev/null and b/macros/GeneralFunctions/PrintStringInfo.bin differ diff --git a/macros/GeneralFunctions/ReadStringCard.bin b/macros/GeneralFunctions/ReadStringCard.bin new file mode 100644 index 00000000..f9b28283 Binary files /dev/null and b/macros/GeneralFunctions/ReadStringCard.bin differ diff --git a/macros/GeneralFunctions/SCI2CCreateDir.bin b/macros/GeneralFunctions/SCI2CCreateDir.bin new file mode 100644 index 00000000..007b6fb8 Binary files /dev/null and b/macros/GeneralFunctions/SCI2CCreateDir.bin differ diff --git a/macros/GeneralFunctions/SCI2CFindFile.bin b/macros/GeneralFunctions/SCI2CFindFile.bin new file mode 100644 index 00000000..fe8e783d Binary files /dev/null and b/macros/GeneralFunctions/SCI2CFindFile.bin differ diff --git a/macros/GeneralFunctions/SCI2CNInArgCheck.bin b/macros/GeneralFunctions/SCI2CNInArgCheck.bin new file mode 100644 index 00000000..8d96b6e9 Binary files /dev/null and b/macros/GeneralFunctions/SCI2CNInArgCheck.bin differ diff --git a/macros/GeneralFunctions/SCI2COpenFileRead.bin b/macros/GeneralFunctions/SCI2COpenFileRead.bin new file mode 100644 index 00000000..f3f6a5e3 Binary files /dev/null and b/macros/GeneralFunctions/SCI2COpenFileRead.bin differ diff --git a/macros/GeneralFunctions/SCI2COpenFileWrite.bin b/macros/GeneralFunctions/SCI2COpenFileWrite.bin new file mode 100644 index 00000000..0287b3aa Binary files /dev/null and b/macros/GeneralFunctions/SCI2COpenFileWrite.bin differ diff --git a/macros/GeneralFunctions/SCI2CTemplate.bin b/macros/GeneralFunctions/SCI2CTemplate.bin new file mode 100644 index 00000000..c485b457 Binary files /dev/null and b/macros/GeneralFunctions/SCI2CTemplate.bin differ diff --git a/macros/GeneralFunctions/SCI2Ccopyfile.bin b/macros/GeneralFunctions/SCI2Ccopyfile.bin new file mode 100644 index 00000000..e6d0a866 Binary files /dev/null and b/macros/GeneralFunctions/SCI2Ccopyfile.bin differ diff --git a/macros/GeneralFunctions/SCI2Cfileexist.bin b/macros/GeneralFunctions/SCI2Cfileexist.bin new file mode 100644 index 00000000..524c8c42 Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cfileexist.bin differ diff --git a/macros/GeneralFunctions/SCI2Cflipud.bin b/macros/GeneralFunctions/SCI2Cflipud.bin new file mode 100644 index 00000000..baf71bb9 Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cflipud.bin differ diff --git a/macros/GeneralFunctions/SCI2Cmdelete.bin b/macros/GeneralFunctions/SCI2Cmdelete.bin new file mode 100644 index 00000000..67694b7f Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cmdelete.bin differ diff --git a/macros/GeneralFunctions/SCI2Cresize.bin b/macros/GeneralFunctions/SCI2Cresize.bin new file mode 100644 index 00000000..a909d306 Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cresize.bin differ diff --git a/macros/GeneralFunctions/SCI2Cstring.bin b/macros/GeneralFunctions/SCI2Cstring.bin new file mode 100644 index 00000000..887482bb Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cstring.bin differ diff --git a/macros/GeneralFunctions/SCI2Cstrncmp.bin b/macros/GeneralFunctions/SCI2Cstrncmp.bin new file mode 100644 index 00000000..78ce9a1a Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cstrncmp.bin differ diff --git a/macros/GeneralFunctions/SCI2Cstrncmps1size.bin b/macros/GeneralFunctions/SCI2Cstrncmps1size.bin new file mode 100644 index 00000000..e9a45d96 Binary files /dev/null and b/macros/GeneralFunctions/SCI2Cstrncmps1size.bin differ diff --git a/macros/GeneralFunctions/SizeInByte.bin b/macros/GeneralFunctions/SizeInByte.bin new file mode 100644 index 00000000..04c7a752 Binary files /dev/null and b/macros/GeneralFunctions/SizeInByte.bin differ diff --git a/macros/GeneralFunctions/dispina.bin b/macros/GeneralFunctions/dispina.bin new file mode 100644 index 00000000..25d03faf Binary files /dev/null and b/macros/GeneralFunctions/dispina.bin differ diff --git a/macros/GeneralFunctions/filenamefprintf.bin b/macros/GeneralFunctions/filenamefprintf.bin new file mode 100644 index 00000000..864a494d Binary files /dev/null and b/macros/GeneralFunctions/filenamefprintf.bin differ diff --git a/macros/GeneralFunctions/float.bin b/macros/GeneralFunctions/float.bin new file mode 100644 index 00000000..fd0c449e Binary files /dev/null and b/macros/GeneralFunctions/float.bin differ diff --git a/macros/GeneralFunctions/squeezestrings.bin b/macros/GeneralFunctions/squeezestrings.bin new file mode 100644 index 00000000..11b97ec9 Binary files /dev/null and b/macros/GeneralFunctions/squeezestrings.bin differ diff --git a/macros/Hardware/AVR/AVRADCSetup.bin b/macros/Hardware/AVR/AVRADCSetup.bin new file mode 100644 index 00000000..a1cbcf3c Binary files /dev/null and b/macros/Hardware/AVR/AVRADCSetup.bin differ diff --git a/macros/Hardware/AVR/AVRDigitalIn.bin b/macros/Hardware/AVR/AVRDigitalIn.bin new file mode 100644 index 00000000..0fdfab82 Binary files /dev/null and b/macros/Hardware/AVR/AVRDigitalIn.bin differ diff --git a/macros/Hardware/AVR/AVRDigitalOut.bin b/macros/Hardware/AVR/AVRDigitalOut.bin new file mode 100644 index 00000000..7e56e466 Binary files /dev/null and b/macros/Hardware/AVR/AVRDigitalOut.bin differ diff --git a/macros/Hardware/AVR/AVRDigitalPortSetup.bin b/macros/Hardware/AVR/AVRDigitalPortSetup.bin new file mode 100644 index 00000000..cf96fbb1 Binary files /dev/null and b/macros/Hardware/AVR/AVRDigitalPortSetup.bin differ diff --git a/macros/Hardware/AVR/AVRDigitalSetup.bin b/macros/Hardware/AVR/AVRDigitalSetup.bin new file mode 100644 index 00000000..dec6eb2a Binary files /dev/null and b/macros/Hardware/AVR/AVRDigitalSetup.bin differ diff --git a/macros/Hardware/AVR/AVRGetTimerValue.bin b/macros/Hardware/AVR/AVRGetTimerValue.bin new file mode 100644 index 00000000..1b883131 Binary files /dev/null and b/macros/Hardware/AVR/AVRGetTimerValue.bin differ diff --git a/macros/Hardware/AVR/AVRPWM0SetDuty.bin b/macros/Hardware/AVR/AVRPWM0SetDuty.bin new file mode 100644 index 00000000..1518222d Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM0SetDuty.bin differ diff --git a/macros/Hardware/AVR/AVRPWM0Setup.bin b/macros/Hardware/AVR/AVRPWM0Setup.bin new file mode 100644 index 00000000..08867048 Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM0Setup.bin differ diff --git a/macros/Hardware/AVR/AVRPWM1SetDuty.bin b/macros/Hardware/AVR/AVRPWM1SetDuty.bin new file mode 100644 index 00000000..79e4ab62 Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM1SetDuty.bin differ diff --git a/macros/Hardware/AVR/AVRPWM1Setup.bin b/macros/Hardware/AVR/AVRPWM1Setup.bin new file mode 100644 index 00000000..235cdba2 Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM1Setup.bin differ diff --git a/macros/Hardware/AVR/AVRPWM2SetDuty.bin b/macros/Hardware/AVR/AVRPWM2SetDuty.bin new file mode 100644 index 00000000..a1c7f3b2 Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM2SetDuty.bin differ diff --git a/macros/Hardware/AVR/AVRPWM2Setup.bin b/macros/Hardware/AVR/AVRPWM2Setup.bin new file mode 100644 index 00000000..66996c08 Binary files /dev/null and b/macros/Hardware/AVR/AVRPWM2Setup.bin differ diff --git a/macros/Hardware/AVR/AVRReadADC.bin b/macros/Hardware/AVR/AVRReadADC.bin new file mode 100644 index 00000000..25b45a83 Binary files /dev/null and b/macros/Hardware/AVR/AVRReadADC.bin differ diff --git a/macros/Hardware/AVR/AVRSleep.bin b/macros/Hardware/AVR/AVRSleep.bin new file mode 100644 index 00000000..e4b10d83 Binary files /dev/null and b/macros/Hardware/AVR/AVRSleep.bin differ diff --git a/macros/Hardware/AVR/AVRTimerSetup.bin b/macros/Hardware/AVR/AVRTimerSetup.bin new file mode 100644 index 00000000..775d718a Binary files /dev/null and b/macros/Hardware/AVR/AVRTimerSetup.bin differ diff --git a/macros/Hardware/AVR/AVRUARTReceive.bin b/macros/Hardware/AVR/AVRUARTReceive.bin new file mode 100644 index 00000000..013036e3 Binary files /dev/null and b/macros/Hardware/AVR/AVRUARTReceive.bin differ diff --git a/macros/Hardware/AVR/AVRUARTSetup.bin b/macros/Hardware/AVR/AVRUARTSetup.bin new file mode 100644 index 00000000..82ec2911 Binary files /dev/null and b/macros/Hardware/AVR/AVRUARTSetup.bin differ diff --git a/macros/Hardware/AVR/AVRUARTTransmit.bin b/macros/Hardware/AVR/AVRUARTTransmit.bin new file mode 100644 index 00000000..9e53d9a6 Binary files /dev/null and b/macros/Hardware/AVR/AVRUARTTransmit.bin differ diff --git a/macros/Hardware/AVR/GetAVRSupportFunctions.bin b/macros/Hardware/AVR/GetAVRSupportFunctions.bin new file mode 100644 index 00000000..48ab5cd8 Binary files /dev/null and b/macros/Hardware/AVR/GetAVRSupportFunctions.bin differ diff --git a/macros/Hardware/AVR/GetPeripheral.bin b/macros/Hardware/AVR/GetPeripheral.bin new file mode 100644 index 00000000..b496bbb0 Binary files /dev/null and b/macros/Hardware/AVR/GetPeripheral.bin differ diff --git a/macros/Hardware/AVR/InsertPeripheralInList.bin b/macros/Hardware/AVR/InsertPeripheralInList.bin new file mode 100644 index 00000000..c49f4e04 Binary files /dev/null and b/macros/Hardware/AVR/InsertPeripheralInList.bin differ diff --git a/macros/Hardware/AVR/IsAVRSupportFunction.bin b/macros/Hardware/AVR/IsAVRSupportFunction.bin new file mode 100644 index 00000000..e2382308 Binary files /dev/null and b/macros/Hardware/AVR/IsAVRSupportFunction.bin differ diff --git a/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin b/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin new file mode 100644 index 00000000..a70999c0 Binary files /dev/null and b/macros/Hardware/RasberryPi/GetRPISupportFunctions.bin differ diff --git a/macros/Hardware/RasberryPi/IsRPISupportFunction.bin b/macros/Hardware/RasberryPi/IsRPISupportFunction.bin new file mode 100644 index 00000000..11533d3e Binary files /dev/null and b/macros/Hardware/RasberryPi/IsRPISupportFunction.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_DelayMicro.bin b/macros/Hardware/RasberryPi/RPI_DelayMicro.bin new file mode 100644 index 00000000..a4d32cb6 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_DelayMicro.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_DelayMilli.bin b/macros/Hardware/RasberryPi/RPI_DelayMilli.bin new file mode 100644 index 00000000..b6eeb30b Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_DelayMilli.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_DigitalIn.bin b/macros/Hardware/RasberryPi/RPI_DigitalIn.bin new file mode 100644 index 00000000..f4c16f39 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_DigitalIn.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_DigitalOut.bin b/macros/Hardware/RasberryPi/RPI_DigitalOut.bin new file mode 100644 index 00000000..b7ad06e5 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_DigitalOut.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin b/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin new file mode 100644 index 00000000..1ac5b582 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_DigitalSetup.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_GetMicros.bin b/macros/Hardware/RasberryPi/RPI_GetMicros.bin new file mode 100644 index 00000000..3e6c08fa Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_GetMicros.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_GetMillis.bin b/macros/Hardware/RasberryPi/RPI_GetMillis.bin new file mode 100644 index 00000000..b9143650 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_GetMillis.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin b/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin new file mode 100644 index 00000000..1efe0803 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_HardPWMSetClock.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin b/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin new file mode 100644 index 00000000..075d6e60 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_HardPWMSetMode.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin b/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin new file mode 100644 index 00000000..8ded2709 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_HardPWMSetRange.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin b/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin new file mode 100644 index 00000000..9957f3a4 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_HardPWMWrite.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_PinISR.bin b/macros/Hardware/RasberryPi/RPI_PinISR.bin new file mode 100644 index 00000000..ddeff684 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_PinISR.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialClose.bin b/macros/Hardware/RasberryPi/RPI_SerialClose.bin new file mode 100644 index 00000000..dce972dc Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialClose.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialFlush.bin b/macros/Hardware/RasberryPi/RPI_SerialFlush.bin new file mode 100644 index 00000000..2a3704d0 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialFlush.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin b/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin new file mode 100644 index 00000000..928f28a3 Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialGetChar.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin b/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin new file mode 100644 index 00000000..7614ebcb Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialSendChar.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialSendData.bin b/macros/Hardware/RasberryPi/RPI_SerialSendData.bin new file mode 100644 index 00000000..a3524a6c Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialSendData.bin differ diff --git a/macros/Hardware/RasberryPi/RPI_SerialSetup.bin b/macros/Hardware/RasberryPi/RPI_SerialSetup.bin new file mode 100644 index 00000000..0128c27b Binary files /dev/null and b/macros/Hardware/RasberryPi/RPI_SerialSetup.bin differ diff --git a/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin b/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin new file mode 100644 index 00000000..3789bd6c Binary files /dev/null and b/macros/Hardware/RasberryPi/u16RPISerialDataAvail.bin differ diff --git a/macros/ImageProcessing/core/CV_CreateImage.bin b/macros/ImageProcessing/core/CV_CreateImage.bin new file mode 100644 index 00000000..d5aa3080 Binary files /dev/null and b/macros/ImageProcessing/core/CV_CreateImage.bin differ diff --git a/macros/ImageProcessing/core/CV_GetImgSize.bin b/macros/ImageProcessing/core/CV_GetImgSize.bin new file mode 100644 index 00000000..ede60e6f Binary files /dev/null and b/macros/ImageProcessing/core/CV_GetImgSize.bin differ diff --git a/macros/ImageProcessing/highgui/CV_LoadImage.bin b/macros/ImageProcessing/highgui/CV_LoadImage.bin new file mode 100644 index 00000000..f8e13375 Binary files /dev/null and b/macros/ImageProcessing/highgui/CV_LoadImage.bin differ diff --git a/macros/ImageProcessing/highgui/CV_SaveImage.bin b/macros/ImageProcessing/highgui/CV_SaveImage.bin new file mode 100644 index 00000000..8d056bf1 Binary files /dev/null and b/macros/ImageProcessing/highgui/CV_SaveImage.bin differ diff --git a/macros/ImageProcessing/highgui/CV_ShowImage.bin b/macros/ImageProcessing/highgui/CV_ShowImage.bin new file mode 100644 index 00000000..c4e00fc7 Binary files /dev/null and b/macros/ImageProcessing/highgui/CV_ShowImage.bin differ diff --git a/macros/ImageProcessing/highgui/CV_WaitKey.bin b/macros/ImageProcessing/highgui/CV_WaitKey.bin new file mode 100644 index 00000000..30a42f41 Binary files /dev/null and b/macros/ImageProcessing/highgui/CV_WaitKey.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.bin b/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.bin new file mode 100644 index 00000000..26a58c0c Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_AdaptiveThreshold.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_Blur.bin b/macros/ImageProcessing/imgproc/CV_Blur.bin new file mode 100644 index 00000000..9fc1af49 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_Blur.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_Canny.bin b/macros/ImageProcessing/imgproc/CV_Canny.bin new file mode 100644 index 00000000..df824781 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_Canny.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_CornerHarris.bin b/macros/ImageProcessing/imgproc/CV_CornerHarris.bin new file mode 100644 index 00000000..291d3e4d Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_CornerHarris.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_CvtColor.bin b/macros/ImageProcessing/imgproc/CV_CvtColor.bin new file mode 100644 index 00000000..eee1018f Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_CvtColor.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_Dilate.bin b/macros/ImageProcessing/imgproc/CV_Dilate.bin new file mode 100644 index 00000000..3f2d2d99 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_Dilate.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_DistanceTransform.bin b/macros/ImageProcessing/imgproc/CV_DistanceTransform.bin new file mode 100644 index 00000000..0955b5f0 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_DistanceTransform.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_Erode.bin b/macros/ImageProcessing/imgproc/CV_Erode.bin new file mode 100644 index 00000000..33d42312 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_Erode.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_GaussianBlur.bin b/macros/ImageProcessing/imgproc/CV_GaussianBlur.bin new file mode 100644 index 00000000..b1766626 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_GaussianBlur.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_MedianBlur.bin b/macros/ImageProcessing/imgproc/CV_MedianBlur.bin new file mode 100644 index 00000000..fdcd23ed Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_MedianBlur.bin differ diff --git a/macros/ImageProcessing/imgproc/CV_Threshold.bin b/macros/ImageProcessing/imgproc/CV_Threshold.bin new file mode 100644 index 00000000..c2ce1c60 Binary files /dev/null and b/macros/ImageProcessing/imgproc/CV_Threshold.bin differ diff --git a/macros/Scilab-Arduino/GenerateSetupFunction.bin b/macros/Scilab-Arduino/GenerateSetupFunction.bin new file mode 100644 index 00000000..0051630c Binary files /dev/null and b/macros/Scilab-Arduino/GenerateSetupFunction.bin differ diff --git a/macros/Scilab-Arduino/GetArduinoFunctions.bin b/macros/Scilab-Arduino/GetArduinoFunctions.bin new file mode 100644 index 00000000..fe9e2040 Binary files /dev/null and b/macros/Scilab-Arduino/GetArduinoFunctions.bin differ diff --git a/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin b/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin new file mode 100644 index 00000000..67f9fada Binary files /dev/null and b/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin differ diff --git a/macros/Scilab-Arduino/InsertSetupInList.bin b/macros/Scilab-Arduino/InsertSetupInList.bin new file mode 100644 index 00000000..29e37315 Binary files /dev/null and b/macros/Scilab-Arduino/InsertSetupInList.bin differ diff --git a/macros/Scilab-Arduino/IsArduinoFunction.bin b/macros/Scilab-Arduino/IsArduinoFunction.bin new file mode 100644 index 00000000..5dbfacad Binary files /dev/null and b/macros/Scilab-Arduino/IsArduinoFunction.bin differ diff --git a/macros/Scilab-Arduino/IsArduinoSetupFunction.bin b/macros/Scilab-Arduino/IsArduinoSetupFunction.bin new file mode 100644 index 00000000..8948d1a3 Binary files /dev/null and b/macros/Scilab-Arduino/IsArduinoSetupFunction.bin differ diff --git a/macros/Scilab-Arduino/i2c_dev.bin b/macros/Scilab-Arduino/i2c_dev.bin new file mode 100644 index 00000000..73a08164 Binary files /dev/null and b/macros/Scilab-Arduino/i2c_dev.bin differ diff --git a/macros/Scilab-Arduino/i2c_read.bin b/macros/Scilab-Arduino/i2c_read.bin new file mode 100644 index 00000000..475de3ea Binary files /dev/null and b/macros/Scilab-Arduino/i2c_read.bin differ diff --git a/macros/Scilab-Arduino/i2c_read_register.bin b/macros/Scilab-Arduino/i2c_read_register.bin new file mode 100644 index 00000000..9776cb1c Binary files /dev/null and b/macros/Scilab-Arduino/i2c_read_register.bin differ diff --git a/macros/Scilab-Arduino/i2c_write.bin b/macros/Scilab-Arduino/i2c_write.bin new file mode 100644 index 00000000..ad51511c Binary files /dev/null and b/macros/Scilab-Arduino/i2c_write.bin differ diff --git a/macros/Scilab-Arduino/i2c_write_register.bin b/macros/Scilab-Arduino/i2c_write_register.bin new file mode 100644 index 00000000..8441dbaa Binary files /dev/null and b/macros/Scilab-Arduino/i2c_write_register.bin differ diff --git a/macros/SymbolTable/ST_AnalyzeScope.bin b/macros/SymbolTable/ST_AnalyzeScope.bin new file mode 100644 index 00000000..7e727a04 Binary files /dev/null and b/macros/SymbolTable/ST_AnalyzeScope.bin differ diff --git a/macros/SymbolTable/ST_Del.bin b/macros/SymbolTable/ST_Del.bin new file mode 100644 index 00000000..c26e2e58 Binary files /dev/null and b/macros/SymbolTable/ST_Del.bin differ diff --git a/macros/SymbolTable/ST_FindPos.bin b/macros/SymbolTable/ST_FindPos.bin new file mode 100644 index 00000000..c7003f30 Binary files /dev/null and b/macros/SymbolTable/ST_FindPos.bin differ diff --git a/macros/SymbolTable/ST_Get.bin b/macros/SymbolTable/ST_Get.bin new file mode 100644 index 00000000..512e72b7 Binary files /dev/null and b/macros/SymbolTable/ST_Get.bin differ diff --git a/macros/SymbolTable/ST_GetInArgInfo.bin b/macros/SymbolTable/ST_GetInArgInfo.bin new file mode 100644 index 00000000..6eb16e37 Binary files /dev/null and b/macros/SymbolTable/ST_GetInArgInfo.bin differ diff --git a/macros/SymbolTable/ST_GetSymbolInfo.bin b/macros/SymbolTable/ST_GetSymbolInfo.bin new file mode 100644 index 00000000..b8a7cf74 Binary files /dev/null and b/macros/SymbolTable/ST_GetSymbolInfo.bin differ diff --git a/macros/SymbolTable/ST_InsForCntVars.bin b/macros/SymbolTable/ST_InsForCntVars.bin new file mode 100644 index 00000000..12882fc7 Binary files /dev/null and b/macros/SymbolTable/ST_InsForCntVars.bin differ diff --git a/macros/SymbolTable/ST_InsOutArg.bin b/macros/SymbolTable/ST_InsOutArg.bin new file mode 100644 index 00000000..ec9970cb Binary files /dev/null and b/macros/SymbolTable/ST_InsOutArg.bin differ diff --git a/macros/SymbolTable/ST_InsOutArg_Dup.bin b/macros/SymbolTable/ST_InsOutArg_Dup.bin new file mode 100644 index 00000000..3c59d47c Binary files /dev/null and b/macros/SymbolTable/ST_InsOutArg_Dup.bin differ diff --git a/macros/SymbolTable/ST_InsOutArg_Dup.sci b/macros/SymbolTable/ST_InsOutArg_Dup.sci new file mode 100644 index 00000000..01d25528 --- /dev/null +++ b/macros/SymbolTable/ST_InsOutArg_Dup.sci @@ -0,0 +1,194 @@ +function ST_InsOutArg_Dup(InArg,NInArg,OutArg,NOutArg,com_type,FileInfo,SharedInfo,MatchRule) +// function ST_InsOutArg(OutArg,NOutArg,FileInfo,SharedInfo,MatchRule) +// ----------------------------------------------------------------- +// //NUT: add description here +// +// Input data: +// //NUT: add description here +// +// Output data: +// //NUT: add description here +// +// Status: +// 26-Oct-2007 -- Raffaele Nutricato: Author. +// 26-Oct-2007 -- Alberto Morea: Test Ok. +// +// Copyright 2007 Raffaele Nutricato & Alberto Morea. +// Contact: raffaele.nutricato@tiscali.it +// ----------------------------------------------------------------- + + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ +//SCI2CNInArgCheck(argn(2),5,5); + +// ----------------------- +// --- Initialization. --- +// ----------------------- +nxtscifunname = SharedInfo.NextSCIFunName; +nxtscifunnumber = SharedInfo.NextSCIFunNumber; +ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; +CDeclarationFileName = FileInfo.Funct(nxtscifunnumber).CDeclarationFileName; +CGblDeclarFileName = FileInfo.Funct(nxtscifunnumber).CGblDeclarFileName; + +GlobalVarsFileName = FileInfo.GlobalVarFileName; +LocalVarsFileName = FileInfo.Funct(nxtscifunnumber).LocalVarFileName; +TempVarsFileName = FileInfo.Funct(nxtscifunnumber).TempVarFileName; + +CPass1FileName = FileInfo.Funct(nxtscifunnumber).CPass1FileName; +CPass1FreeFileName = FileInfo.Funct(nxtscifunnumber).CPass1FreeFileName; + + +// #RNU_RES_B +PrintStringInfo(' ',ReportFileName,'file','y'); +PrintStringInfo('***Putting output arguments in the symbol table***',ReportFileName,'file','y','n'); +// #RNU_RES_E +// --------------------------- +// --- End Initialization. --- +// --------------------------- + + +for counteroutput = 1:NOutArg + // #RNU_RES_B + PrintStringInfo(' Symbol ""'+OutArg(counteroutput).Name+'""',ReportFileName,'file','y','n'); + PrintStringInfo(' Type: '+OutArg(counteroutput).Type,ReportFileName,'file','y','n'); + PrintStringInfo(' Size(1): '+string(OutArg(counteroutput).Size(1)),ReportFileName,'file','y','n'); + PrintStringInfo(' Size(2): '+string(OutArg(counteroutput).Size(2)),ReportFileName,'file','y','n'); + PrintStringInfo(' Value: '+string(OutArg(counteroutput).Value),ReportFileName,'file','y','n'); + PrintStringInfo(' FindLike: '+string(OutArg(counteroutput).FindLike),ReportFileName,'file','y','n'); + PrintStringInfo(' Dimension: '+string(OutArg(counteroutput).Dimension),ReportFileName,'file','y','n'); + PrintStringInfo(' Scope: '+string(OutArg(counteroutput).Scope),ReportFileName,'file','y','n'); + PrintStringInfo(' ',ReportFileName,'file','y','n'); + // #RNU_RES_E + if (OutArg(counteroutput).Scope == 'Temp') + SymbTableFileName = TempVarsFileName; + elseif (OutArg(counteroutput).Scope == 'Local') + SymbTableFileName = LocalVarsFileName; + elseif (OutArg(counteroutput).Scope == 'Global') + SymbTableFileName = GlobalVarsFileName; + else + error(9999, 'Unknown scope ""'+OutArg(counteroutput).Scope+'"" for symbol: '+OutArg(counteroutput).Name); + end + // #RNU_RES_B + PrintStringInfo(' Setting symbol ""'+OutArg(counteroutput).Name+'"" in '+SymbTableFileName+'.',ReportFileName,'file','y'); + // #RNU_RES_E + + // #RNU_RES_B + // Check existence and conflicts in the symbol table. + // Here we have four possibilities: + // 1. the symbol is a global variable not initialized yet -> we have to initialize it. + // 2. the symbol already exists with different settings -> we have to issue an error. + // 3. the symbol already exists with the same settings -> ok, we don't have to do nothing. + // 4. the symbol doesn't exist -> we have to insert it into the table. + // #RNU_RES_E + [TBFlagfound,TBFlagEqualSymbols] = ... + ST_MatchSymbol(OutArg(counteroutput).Name,... + OutArg(counteroutput).Type,... + OutArg(counteroutput).Size,... + OutArg(counteroutput).Value,... + OutArg(counteroutput).FindLike,... + OutArg(counteroutput).Dimension,... + SymbTableFileName,MatchRule); + + if (TBFlagfound == 1) + if (TBFlagEqualSymbols == 0) + PrintStringInfo(' ',ReportFileName,'both','y'); + PrintStringInfo('SCI2CERROR: Symbol Table Conflict. Trying to insert again symbol ""'+... + OutArg(counteroutput).Name+'"" with different settings',ReportFileName,'both','y'); + PrintStringInfo('SCI2CERROR: Please check that you are not using variable ""'+OutArg(counteroutput).Name+'""',ReportFileName,'both','y'); + PrintStringInfo('SCI2CERROR: with different sizes and/or types.',ReportFileName,'both','y'); + PrintStringInfo(' ',ReportFileName,'both','y'); + error(9999, 'SCI2CERROR: Symbol Table Conflict. Trying to insert again symbol ""'+... + OutArg(counteroutput).Name+'"" with different settings'); + else + // #RNU_RES_B + // It's ok symbols do match. + //NUT: forse occorre un altro check sulla size per capire se occore fare il malloc. + //NUT: qui entro anche quando ho una variabile global gia' dichiarata tale in un altro + //NUT: per cui devo dichiararala come external. + //RNU qui ci puoi mettere una warning quando stai riallocando uno stesso simbolo con size simbolica. + //RNU puoi anche aggiungere del codice in c o un semplice commento. per esempio una funzione c del tipo checksize che controlla il valore + //RNU prima dopo delle size di una data variabile. Cosa succede se cambio la size anche nel caso di array e approccio + //RNU di resize non attivo? L'unica cosa e' che molte size numeriche scompaiono e incomincio a creare numerose variabili + //RNU con size simbolica. + + // If the symbol is scalar we update its value if it is an array we update its size + // only in case we are using the 'REALLOC_ALL_RESIZE_ALL' resize approach + // #RNU_RES_E + if ((GetSymbolDimension(OutArg(counteroutput).Size)) == 0 | (SharedInfo.ResizeApproach=='REALLOC_ALL_RESIZE_ALL')) + ST_Set(OutArg(counteroutput).Name,... + OutArg(counteroutput).Type,... + OutArg(counteroutput).Size,... + OutArg(counteroutput).Value,... + OutArg(counteroutput).FindLike,... + OutArg(counteroutput).Dimension,... + SymbTableFileName); + end + + // IndentLevelDeclaration = 1; //NUT: per ora lo forzo sempre a 1 + // IndentLevelMalloc = SharedInfo.NIndent; + // FlagExt = 0; + // C_GenDeclarations(OutArg(counteroutput),CDeclarationFileName,IndentLevelDeclaration,ReportFileName,FlagExt,SharedInfo.ResizeApproach); + + + end + elseif (TBFlagfound == 2) + // #RNU_RES_B + // We have a non-initialized global variable. + // Set the non-initialized global variable. + PrintStringInfo(' Found a non-initialized global variable.',ReportFileName,'file','y'); + // #RNU_RES_E + ST_Set(OutArg(counteroutput).Name,... + OutArg(counteroutput).Type,... + OutArg(counteroutput).Size,... + OutArg(counteroutput).Value,... + OutArg(counteroutput).FindLike,... + OutArg(counteroutput).Dimension,... + SymbTableFileName); + IndentLevel = 0; //NUT: forced always to 1 + FlagExt = 0; + C_GenDeclarations(OutArg(counteroutput),CGblDeclarFileName,IndentLevel,ReportFileName,FlagExt,SharedInfo.ResizeApproach); + IndentLevelMalloc = SharedInfo.NIndent; + // #RNU_RES_B + //RNU da verificare bene qui. Cio' che si verifica e' che se la size della globale e' simbolica + //RNU allora si assume che essa sia da allocare come puntatore e poi realloc. + // #RNU_RES_E + C_MemAllocOutTempVars(OutArg(counteroutput),1,CPass1FileName,CPass1FreeFileName,IndentLevelMalloc,ReportFileName,SharedInfo.ResizeApproach); + else + if (OutArg(counteroutput).FindLike == 1) + // #RNU_RES_B + // In presence of find-like functions the size must be always symbolic. + // Don't change here the value of OutArg.Size because the first time + // I need them to declare the OutArg variable with the values assumed by OutArg.Size. + // #RNU_RES_E + TmpOutArgSize(1) = '__'+OutArg(counteroutput).Name+'Size[0]'; + TmpOutArgSize(2) = '__'+OutArg(counteroutput).Name+'Size[1]'; + else + TmpOutArgSize(1) = OutArg(counteroutput).Size(1); + TmpOutArgSize(2) = OutArg(counteroutput).Size(2); + end + // #RNU_RES_B + // Set a new symbol. + // #RNU_RES_E + ST_Set(OutArg(counteroutput).Name,... + OutArg(counteroutput).Type,... + TmpOutArgSize,... + OutArg(counteroutput).Value,... + OutArg(counteroutput).FindLike,... + OutArg(counteroutput).Dimension,... + SymbTableFileName); + IndentLevelDeclaration = 1; //NUT: per ora lo forzo sempre a 1 + IndentLevelMalloc = SharedInfo.NIndent; + FlagExt = 0; + C_GenDeclarations_Dup(InArg,NInArg,com_type,OutArg(counteroutput),CPass1FileName,IndentLevelDeclaration,ReportFileName,FlagExt,SharedInfo.ResizeApproach); + // #RNU_RES_B + //RNU aggiunta qui in modo che le malloc saranno fatte una sola volta: + //RNU verifica che tutto funzioni e chi altro usa la C_MemAlloc per capire se si puo' ottimizzare per questo stadio. + // #RNU_RES_E + C_MemAllocOutTempVars(OutArg(counteroutput),1,CPass1FileName,CPass1FreeFileName,IndentLevelMalloc,ReportFileName,SharedInfo.ResizeApproach); + end + +end + +endfunction diff --git a/macros/SymbolTable/ST_Load.bin b/macros/SymbolTable/ST_Load.bin new file mode 100644 index 00000000..f158c2b6 Binary files /dev/null and b/macros/SymbolTable/ST_Load.bin differ diff --git a/macros/SymbolTable/ST_MatchSymbol.bin b/macros/SymbolTable/ST_MatchSymbol.bin new file mode 100644 index 00000000..278560d0 Binary files /dev/null and b/macros/SymbolTable/ST_MatchSymbol.bin differ diff --git a/macros/SymbolTable/ST_Save.bin b/macros/SymbolTable/ST_Save.bin new file mode 100644 index 00000000..4aa50a20 Binary files /dev/null and b/macros/SymbolTable/ST_Save.bin differ diff --git a/macros/SymbolTable/ST_Set.bin b/macros/SymbolTable/ST_Set.bin new file mode 100644 index 00000000..cbd26274 Binary files /dev/null and b/macros/SymbolTable/ST_Set.bin differ diff --git a/macros/SymbolTable/lib b/macros/SymbolTable/lib index 4e2f0193..6c944886 100644 Binary files a/macros/SymbolTable/lib and b/macros/SymbolTable/lib differ diff --git a/macros/SymbolTable/names b/macros/SymbolTable/names index b5a7d65f..c2efc843 100644 --- a/macros/SymbolTable/names +++ b/macros/SymbolTable/names @@ -6,6 +6,7 @@ ST_GetInArgInfo ST_GetSymbolInfo ST_InsForCntVars ST_InsOutArg +ST_InsOutArg_Dup ST_Load ST_MatchSymbol ST_Save diff --git a/macros/ToolInitialization/INIT_CreateDirs.bin b/macros/ToolInitialization/INIT_CreateDirs.bin new file mode 100644 index 00000000..16ebab82 Binary files /dev/null and b/macros/ToolInitialization/INIT_CreateDirs.bin differ diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin new file mode 100644 index 00000000..37cd5655 Binary files /dev/null and b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin differ diff --git a/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin b/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin new file mode 100644 index 00000000..f7d2aa59 Binary files /dev/null and b/macros/ToolInitialization/INIT_GenAnnFLFunctions.bin differ diff --git a/macros/ToolInitialization/INIT_GenFileInfo.bin b/macros/ToolInitialization/INIT_GenFileInfo.bin new file mode 100644 index 00000000..a8d47222 Binary files /dev/null and b/macros/ToolInitialization/INIT_GenFileInfo.bin differ diff --git a/macros/ToolInitialization/INIT_GenLibraries.bin b/macros/ToolInitialization/INIT_GenLibraries.bin new file mode 100644 index 00000000..bc3bc873 Binary files /dev/null and b/macros/ToolInitialization/INIT_GenLibraries.bin differ diff --git a/macros/ToolInitialization/INIT_GenSharedInfo.bin b/macros/ToolInitialization/INIT_GenSharedInfo.bin new file mode 100644 index 00000000..7263830a Binary files /dev/null and b/macros/ToolInitialization/INIT_GenSharedInfo.bin differ diff --git a/macros/ToolInitialization/INIT_LoadLibraries.bin b/macros/ToolInitialization/INIT_LoadLibraries.bin new file mode 100644 index 00000000..c85aac6e Binary files /dev/null and b/macros/ToolInitialization/INIT_LoadLibraries.bin differ diff --git a/macros/ToolInitialization/INIT_RemoveDirs.bin b/macros/ToolInitialization/INIT_RemoveDirs.bin new file mode 100644 index 00000000..c1ee9ec0 Binary files /dev/null and b/macros/ToolInitialization/INIT_RemoveDirs.bin differ diff --git a/macros/ToolInitialization/INIT_SCI2C.bin b/macros/ToolInitialization/INIT_SCI2C.bin new file mode 100644 index 00000000..19402302 Binary files /dev/null and b/macros/ToolInitialization/INIT_SCI2C.bin differ diff --git a/macros/ToolInitialization/INIT_SharedInfoEqual.bin b/macros/ToolInitialization/INIT_SharedInfoEqual.bin new file mode 100644 index 00000000..31238a31 Binary files /dev/null and b/macros/ToolInitialization/INIT_SharedInfoEqual.bin differ diff --git a/macros/ToolInitialization/ManageNextConversion.bin b/macros/ToolInitialization/ManageNextConversion.bin new file mode 100644 index 00000000..bf43562a Binary files /dev/null and b/macros/ToolInitialization/ManageNextConversion.bin differ diff --git a/macros/ToolInitialization/UpdateSCI2CInfo.bin b/macros/ToolInitialization/UpdateSCI2CInfo.bin new file mode 100644 index 00000000..c13904d2 Binary files /dev/null and b/macros/ToolInitialization/UpdateSCI2CInfo.bin differ diff --git a/macros/ToolInitialization/doublecomplex.bin b/macros/ToolInitialization/doublecomplex.bin new file mode 100644 index 00000000..5e616f7c Binary files /dev/null and b/macros/ToolInitialization/doublecomplex.bin differ diff --git a/macros/ToolInitialization/floatcomplex.bin b/macros/ToolInitialization/floatcomplex.bin new file mode 100644 index 00000000..bd77a45f Binary files /dev/null and b/macros/ToolInitialization/floatcomplex.bin differ diff --git a/macros/cb_sci2c_gui.bin b/macros/cb_sci2c_gui.bin new file mode 100644 index 00000000..bc691e45 Binary files /dev/null and b/macros/cb_sci2c_gui.bin differ diff --git a/macros/findDeps/Scilab2CDeps.bin b/macros/findDeps/Scilab2CDeps.bin new file mode 100644 index 00000000..ae162ecb Binary files /dev/null and b/macros/findDeps/Scilab2CDeps.bin differ diff --git a/macros/findDeps/findDeps.bin b/macros/findDeps/findDeps.bin new file mode 100644 index 00000000..fb11e006 Binary files /dev/null and b/macros/findDeps/findDeps.bin differ diff --git a/macros/findDeps/getAllHeaders.bin b/macros/findDeps/getAllHeaders.bin new file mode 100644 index 00000000..35c87db0 Binary files /dev/null and b/macros/findDeps/getAllHeaders.bin differ diff --git a/macros/findDeps/getAllInterfaces.bin b/macros/findDeps/getAllInterfaces.bin new file mode 100644 index 00000000..4fa47780 Binary files /dev/null and b/macros/findDeps/getAllInterfaces.bin differ diff --git a/macros/findDeps/getAllLibraries.bin b/macros/findDeps/getAllLibraries.bin new file mode 100644 index 00000000..098b51e6 Binary files /dev/null and b/macros/findDeps/getAllLibraries.bin differ diff --git a/macros/findDeps/getAllSources.bin b/macros/findDeps/getAllSources.bin new file mode 100644 index 00000000..bf618020 Binary files /dev/null and b/macros/findDeps/getAllSources.bin differ diff --git a/macros/findDeps/getArduinoFiles.bin b/macros/findDeps/getArduinoFiles.bin new file mode 100644 index 00000000..411018b0 Binary files /dev/null and b/macros/findDeps/getArduinoFiles.bin differ diff --git a/macros/getScilab2cVersion.bin b/macros/getScilab2cVersion.bin new file mode 100644 index 00000000..9620859e Binary files /dev/null and b/macros/getScilab2cVersion.bin differ diff --git a/macros/runsci2c.bin b/macros/runsci2c.bin new file mode 100644 index 00000000..319e1c2e Binary files /dev/null and b/macros/runsci2c.bin differ diff --git a/macros/runscicode.bin b/macros/runscicode.bin new file mode 100644 index 00000000..46bda7cc Binary files /dev/null and b/macros/runscicode.bin differ diff --git a/macros/sci2c_gui.bin b/macros/sci2c_gui.bin new file mode 100644 index 00000000..57a2f696 Binary files /dev/null and b/macros/sci2c_gui.bin differ diff --git a/macros/scilab2c.bin b/macros/scilab2c.bin new file mode 100644 index 00000000..9fc934f8 Binary files /dev/null and b/macros/scilab2c.bin differ -- cgit From f15ab8a9f06e3936309886b52b0eb547ab1094e0 Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Tue, 27 Jun 2017 16:51:16 +0530 Subject: matrix complete1 --- macros/ASTManagement/AST_HandleFunCC.bin | Bin 20772 -> 22244 bytes macros/ASTManagement/AST_HandleFunCC.sci | 24 +++++--- macros/ASTManagement/AST_HandleFunRC.bin | Bin 20896 -> 22288 bytes macros/ASTManagement/AST_HandleFunRC.sci | 24 +++++--- macros/CCodeGeneration/C_GenDeclarations_Dup.bin | Bin 24932 -> 29588 bytes macros/CCodeGeneration/C_GenDeclarations_Dup.sci | 67 +++++++++++++++++------ 6 files changed, 84 insertions(+), 31 deletions(-) diff --git a/macros/ASTManagement/AST_HandleFunCC.bin b/macros/ASTManagement/AST_HandleFunCC.bin index 615d1471..4689450d 100644 Binary files a/macros/ASTManagement/AST_HandleFunCC.bin and b/macros/ASTManagement/AST_HandleFunCC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunCC.sci b/macros/ASTManagement/AST_HandleFunCC.sci index 063cdc47..12cb577a 100644 --- a/macros/ASTManagement/AST_HandleFunCC.sci +++ b/macros/ASTManagement/AST_HandleFunCC.sci @@ -160,13 +160,23 @@ for i = 1:NInArg end -PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); -OutArg(1).Type = InArg(1).Type; -OutArg(1).Size(1) = string(NRow); -OutArg(1).Size(2) = string(NCol); -OutArg(1).Dimension = 2; -OutArg(1).Value = InArg(1).Value; -OutArg(1).FindLike = InArg(1).FindLike; +if com_type == 0 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = InArg(1).Type; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; +else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'z'; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; +end //--- Check for output Argument in symbol table ---// OutArg = ST_AnalyzeScope(OutArg,NOutArg,FileInfo,SharedInfo); diff --git a/macros/ASTManagement/AST_HandleFunRC.bin b/macros/ASTManagement/AST_HandleFunRC.bin index 8b61e486..b9fcd1ff 100644 Binary files a/macros/ASTManagement/AST_HandleFunRC.bin and b/macros/ASTManagement/AST_HandleFunRC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunRC.sci b/macros/ASTManagement/AST_HandleFunRC.sci index 654f04d8..10f51519 100644 --- a/macros/ASTManagement/AST_HandleFunRC.sci +++ b/macros/ASTManagement/AST_HandleFunRC.sci @@ -162,13 +162,23 @@ for i = 1:NInArg end -PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); -OutArg(1).Type = InArg(1).Type; -OutArg(1).Size(1) = '1' -OutArg(1).Size(2) = string(size_count); -OutArg(1).Dimension = 2; -OutArg(1).Value = InArg(1).Value; -OutArg(1).FindLike = InArg(1).FindLike; +if com_type == 0 + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = InArg(1).Type; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; +else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'z'; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; +end //--- Check for output Argument in symbol table ---// OutArg = ST_AnalyzeScope(OutArg,NOutArg,FileInfo,SharedInfo); diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin index ab05955d..7a4ed870 100644 Binary files a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin and b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.sci b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci index 46d9de78..ab32ff1c 100644 --- a/macros/CCodeGeneration/C_GenDeclarations_Dup.sci +++ b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci @@ -85,28 +85,61 @@ if (ArgStruct.Dimension > 0) computedSizeField = computedSizeField + ', ' + ArgStruct.Size(sizeIterator); end Cdeclaration(1) = Cdeclaration(1)+C_Type(ArgStruct.Type)+' '+ArgStruct.Name+'['+computedSize+']={'; - if com_type == 0 - for i = 1:NInArg-1 - Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; - end - Cdeclaration(1) = Cdeclaration(1)+InArg(NInArg).Name+'};'; - else - for i=1:NInArg-1 - if InArg(i).Type <> 'z' - Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+',0,'; - else - Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; - end - end - if InArg(NInArg).Type <> 'z' - Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};' + row = eval(ArgStruct.Size(1)) + col = eval(ArgStruct.Size(2)) + if row == 1 + if com_type == 0 + for i = 1:NInArg-1 + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; + end + Cdeclaration(1) = Cdeclaration(1)+InArg(NInArg).Name+'};'; else - Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};' + for i=1:NInArg-1 + if InArg(i).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+',0,'; + else + Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; + end + end + if InArg(NInArg).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};' + else + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};' + end end + else + if com_type == 0 + for i = 1:col + for j = 0:row-1 + if (j*col)+i ~= row*col + Cdeclaration(1) = Cdeclaration(1) + InArg(((j*col)+i)).Name + ','; + end + end + end + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};'; + else + disp("hello") + for i = 1:col + for j = 0:row-1 + if (j*col)+i ~= row*col + if InArg(((j*col)+i)).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1) + InArg(((j*col)+i)).Name + ',0,'; + else + Cdeclaration(1) = Cdeclaration(1) + InArg(((j*col)+i)).Name + ','; + end + end + end + end + if InArg(NInArg).Type <> 'z' + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};'; + else + Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};'; + end + end end Cdeclaration(2) = Cdeclaration(2)+C_Type('i')+' __'+ArgStruct.Name+'Size['+string(computedSizeLength)+']'; if (FlagExt <> 1) - Cdeclaration(2) = Cdeclaration(2)+' = {'+computedSizeField+'};'; + Cdeclaration(2) = Cdeclaration(2)+' = {'+computedSizeField+'}'; end Cdeclaration(2) = Cdeclaration(2)+';'; end -- cgit From 43592401ec4efefec61c236cd90b063a90a981b8 Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Wed, 28 Jun 2017 16:30:53 +0530 Subject: float matrix done and func disp --- macros/ASTManagement/%funcall_string.bin | Bin 1748 -> 2588 bytes macros/ASTManagement/%funcall_string.sci | 9 +++++++++ macros/ASTManagement/AST2Ccode.bin | Bin 36896 -> 37928 bytes macros/ASTManagement/AST2Ccode.sci | 18 ++++++++++++++---- macros/ASTManagement/AST_HandleCC.bin | Bin 10520 -> 10716 bytes macros/ASTManagement/AST_HandleCC.sci | 2 ++ macros/ASTManagement/AST_HandleEndGenFun.bin | Bin 100596 -> 100904 bytes macros/ASTManagement/AST_HandleEndGenFun.sci | 9 +++++++-- macros/ASTManagement/AST_HandleFunCC.bin | Bin 22244 -> 24100 bytes macros/ASTManagement/AST_HandleFunCC.sci | 14 +++++++++++++- macros/ASTManagement/AST_HandleFunRC.bin | Bin 22288 -> 22484 bytes macros/ASTManagement/AST_HandleFunRC.sci | 14 +++++++++++++- macros/ASTManagement/AST_HandleRC.bin | Bin 9896 -> 10092 bytes macros/ASTManagement/AST_HandleRC.sci | 2 ++ macros/ASTManagement/_funcall_string.bin | Bin 1748 -> 2588 bytes macros/ASTManagement/_funcall_string.sci | 9 +++++++++ macros/CCodeGeneration/C_GenDeclarations_Dup.bin | Bin 29588 -> 30104 bytes macros/CCodeGeneration/C_GenDeclarations_Dup.sci | 11 +++++------ macros/CCodeGeneration/C_IfExpression.bin | Bin 12440 -> 12500 bytes macros/CCodeGeneration/C_IfExpression.sci | 2 +- macros/CCodeGeneration/C_WhileExpression.bin | Bin 15704 -> 15764 bytes macros/CCodeGeneration/C_WhileExpression.sci | 2 +- macros/SymbolTable/ST_InsOutArg_Dup.bin | Bin 33636 -> 33828 bytes macros/SymbolTable/ST_InsOutArg_Dup.sci | 1 + 24 files changed, 77 insertions(+), 16 deletions(-) diff --git a/macros/ASTManagement/%funcall_string.bin b/macros/ASTManagement/%funcall_string.bin index 8354586d..258933b9 100644 Binary files a/macros/ASTManagement/%funcall_string.bin and b/macros/ASTManagement/%funcall_string.bin differ diff --git a/macros/ASTManagement/%funcall_string.sci b/macros/ASTManagement/%funcall_string.sci index faeb81d9..0ee97016 100644 --- a/macros/ASTManagement/%funcall_string.sci +++ b/macros/ASTManagement/%funcall_string.sci @@ -6,10 +6,19 @@ function txt=%funcall_string(F) // name : string, the name of the function // lhsnb: number, the number of function lhs +if F.name <> 'disp' txt=['Funcall : '+F.name ' #lhs : '+string(F.lhsnb) ' Rhs : ' ' '+objectlist2string(F.rhs) 'EndFuncall' ] +else +txt=['Funcall : '+F.name + ' #lhs : '+'0' + ' Rhs : ' + ' '+objectlist2string(F.rhs) + 'EndFuncall' + ] +end endfunction diff --git a/macros/ASTManagement/AST2Ccode.bin b/macros/ASTManagement/AST2Ccode.bin index c6635196..337baa22 100644 Binary files a/macros/ASTManagement/AST2Ccode.bin and b/macros/ASTManagement/AST2Ccode.bin differ diff --git a/macros/ASTManagement/AST2Ccode.sci b/macros/ASTManagement/AST2Ccode.sci index f3c87aba..563f3133 100644 --- a/macros/ASTManagement/AST2Ccode.sci +++ b/macros/ASTManagement/AST2Ccode.sci @@ -62,7 +62,8 @@ StackPosition = 1; global STACKDEDUG STACKDEDUG = 0; // 1 -> Every Pop and Push operation on the stack, the stack content will be printed on screen. - +global disp_isthere +disp_isthere = 0; // ------------------------------------- // --- End parameter Initialization. --- // ------------------------------------- @@ -141,9 +142,10 @@ while ~meof(fidAST) //NUT: qui puoi anche aggiunger piu' case per specificare meglio la struttura della funcall //NUT: i case aggiunti ovviamente faranno solo il push della treeline. case 'EndOperation' then - [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,'Operation'); + [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Operation'); case 'EndFuncall' then - [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,'Funcall'); + [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Funcall'); + disp(disp_isthere); // -------------- // --- Equal. --- @@ -161,13 +163,18 @@ while ~meof(fidAST) rc_count = 0; cc_count = 0; else - [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,'Equal'); + if disp_isthere == 0 + [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Equal'); SharedInfo = INIT_SharedInfoEqual(SharedInfo); + end end + disp_isthere = 0; + case 'Equal' then SharedInfo.Equal.Enabled = 1; // 1 means enabled -> we are inside an equal AST block. AST_PushASTStack(treeline); case 'Lhs :' then + disp(disp_isthere); if rc_count > 0 & cc_count == 0 SharedInfo.Equal.Lhs = 1; [EqualInArgName,EqualInArgScope,EqualNInArg] = AST_HandleRC(FileInfo,SharedInfo); @@ -184,6 +191,7 @@ while ~meof(fidAST) else SharedInfo.Equal.Lhs = 1; // 1 means that we are inside the Lhs block of the Equal //if SharedInfo.Equal.NOutArg > 0 + if disp_isthere == 0 [EqualInArgName,EqualInArgScope,EqualNInArg] = AST_ReadEqualRhsNames(FileInfo,SharedInfo); SharedInfo.Equal.NInArg = EqualNInArg; //end @@ -198,6 +206,7 @@ while ~meof(fidAST) SharedInfo.Equal.InArg(tmpcnt).Scope = EqualInArgScope(tmpcnt); end //end + end AST_PushASTStack(treeline); end @@ -233,6 +242,7 @@ 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 diff --git a/macros/ASTManagement/AST_HandleCC.bin b/macros/ASTManagement/AST_HandleCC.bin index 0d302e4f..b9cc964a 100644 Binary files a/macros/ASTManagement/AST_HandleCC.bin and b/macros/ASTManagement/AST_HandleCC.bin differ diff --git a/macros/ASTManagement/AST_HandleCC.sci b/macros/ASTManagement/AST_HandleCC.sci index d0a2244b..0b9e4d9c 100644 --- a/macros/ASTManagement/AST_HandleCC.sci +++ b/macros/ASTManagement/AST_HandleCC.sci @@ -32,6 +32,8 @@ function [RhsNames,RhsScope,NRhs] = AST_HandleCC(FileInfo,SharedInfo) // Contact: raffaele.nutricato@tiscali.it // ----------------------------------------------------------------- +SCI2CNInArgCheck(argn(2),2,2) + ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; // ------------------------------ diff --git a/macros/ASTManagement/AST_HandleEndGenFun.bin b/macros/ASTManagement/AST_HandleEndGenFun.bin index dfbf15db..e1685ec7 100644 Binary files a/macros/ASTManagement/AST_HandleEndGenFun.bin and b/macros/ASTManagement/AST_HandleEndGenFun.bin differ diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci index 9fdfbb3d..e948529b 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -1,5 +1,5 @@ -function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) +function [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,ASTFunType) // function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunType) // ----------------------------------------------------------------- // #RNU_RES_B @@ -36,7 +36,7 @@ function [FileInfo,SharedInfo] = AST_HandleEndGenFun(FileInfo,SharedInfo,ASTFunT // ------------------------------ // --- Check input arguments. --- // ------------------------------ -//SCI2CNInArgCheck(argn(2),3,3); +SCI2CNInArgCheck(argn(2),4,4); // ----------------------- // --- Initialization. --- @@ -83,6 +83,11 @@ NOutArg_mod = NOutArg AST_PushASTStack('||'); return; end + + if ASTFunName == 'disp' + disp_isthere = 1; + end + if(mtlb_strcmp(part(ASTFunName,1:2),'CV') == %T) SharedInfo.OpenCVUsed = %T; end diff --git a/macros/ASTManagement/AST_HandleFunCC.bin b/macros/ASTManagement/AST_HandleFunCC.bin index 4689450d..e36fa6c6 100644 Binary files a/macros/ASTManagement/AST_HandleFunCC.bin and b/macros/ASTManagement/AST_HandleFunCC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunCC.sci b/macros/ASTManagement/AST_HandleFunCC.sci index 12cb577a..40155bac 100644 --- a/macros/ASTManagement/AST_HandleFunCC.sci +++ b/macros/ASTManagement/AST_HandleFunCC.sci @@ -32,6 +32,8 @@ function [FileInfo,SharedInfo] = AST_HandleFunCC(NCol,FileInfo,SharedInfo) // Contact: ukashanoor.iiitk@gmail.com // ----------------------------------------------------------------- +SCI2CNInArgCheck(argn(2),3,3) + // ------------------------------ // --- Check input arguments. --- // ------------------------------ @@ -156,6 +158,8 @@ com_type = 0; for i = 1:NInArg if InArg(i).Type == 'z' com_type = 1; + elseif InArg(i).Type == 'c' + com_type = 2; end end @@ -168,7 +172,7 @@ if com_type == 0 OutArg(1).Dimension = 2; OutArg(1).Value = InArg(1).Value; OutArg(1).FindLike = InArg(1).FindLike; -else +elseif com_type == 1 PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); OutArg(1).Type = 'z'; OutArg(1).Size(1) = string(NCol); @@ -176,6 +180,14 @@ else OutArg(1).Dimension = 2; OutArg(1).Value = InArg(1).Value; OutArg(1).FindLike = InArg(1).FindLike; +else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'c'; + OutArg(1).Size(1) = string(NCol); + OutArg(1).Size(2) = string(NRow); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; end //--- Check for output Argument in symbol table ---// diff --git a/macros/ASTManagement/AST_HandleFunRC.bin b/macros/ASTManagement/AST_HandleFunRC.bin index b9fcd1ff..70d8b561 100644 Binary files a/macros/ASTManagement/AST_HandleFunRC.bin and b/macros/ASTManagement/AST_HandleFunRC.bin differ diff --git a/macros/ASTManagement/AST_HandleFunRC.sci b/macros/ASTManagement/AST_HandleFunRC.sci index 10f51519..c08c17e7 100644 --- a/macros/ASTManagement/AST_HandleFunRC.sci +++ b/macros/ASTManagement/AST_HandleFunRC.sci @@ -32,6 +32,8 @@ function [FileInfo,SharedInfo] = AST_HandleFunRC(FileInfo,SharedInfo) // Contact: ukashanoor.iiitk@gmail.com // ----------------------------------------------------------------- +SCI2CNInArgCheck(argn(2),2,2) + // ------------------------------ // --- Check input arguments. --- // ------------------------------ @@ -158,6 +160,8 @@ com_type = 0; for i = 1:NInArg if InArg(i).Type == 'z' com_type = 1; + elseif InArg(i).Type == 'c' + com_type = 2; end end @@ -170,7 +174,7 @@ if com_type == 0 OutArg(1).Dimension = 2; OutArg(1).Value = InArg(1).Value; OutArg(1).FindLike = InArg(1).FindLike; -else +elseif com_type == 1 PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); OutArg(1).Type = 'z'; OutArg(1).Size(1) = '1' @@ -178,6 +182,14 @@ else OutArg(1).Dimension = 2; OutArg(1).Value = InArg(1).Value; OutArg(1).FindLike = InArg(1).FindLike; +else + PrintStringInfo(' Generating Out Arg names.',ReportFileName,'file','y'); + OutArg(1).Type = 'c'; + OutArg(1).Size(1) = '1' + OutArg(1).Size(2) = string(size_count); + OutArg(1).Dimension = 2; + OutArg(1).Value = InArg(1).Value; + OutArg(1).FindLike = InArg(1).FindLike; end //--- Check for output Argument in symbol table ---// diff --git a/macros/ASTManagement/AST_HandleRC.bin b/macros/ASTManagement/AST_HandleRC.bin index 829fd67a..f5b8a1af 100644 Binary files a/macros/ASTManagement/AST_HandleRC.bin and b/macros/ASTManagement/AST_HandleRC.bin differ diff --git a/macros/ASTManagement/AST_HandleRC.sci b/macros/ASTManagement/AST_HandleRC.sci index 3952c8eb..2a6cbc3f 100644 --- a/macros/ASTManagement/AST_HandleRC.sci +++ b/macros/ASTManagement/AST_HandleRC.sci @@ -32,6 +32,8 @@ function [RhsNames,RhsScope,NRhs] = AST_HandleRC(FileInfo,SharedInfo) // Contact: raffaele.nutricato@tiscali.it // ----------------------------------------------------------------- +SCI2CNInArgCheck(argn(2),2,2) + ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName; // ------------------------------ diff --git a/macros/ASTManagement/_funcall_string.bin b/macros/ASTManagement/_funcall_string.bin index 8354586d..258933b9 100644 Binary files a/macros/ASTManagement/_funcall_string.bin and b/macros/ASTManagement/_funcall_string.bin differ diff --git a/macros/ASTManagement/_funcall_string.sci b/macros/ASTManagement/_funcall_string.sci index faeb81d9..0ee97016 100644 --- a/macros/ASTManagement/_funcall_string.sci +++ b/macros/ASTManagement/_funcall_string.sci @@ -6,10 +6,19 @@ function txt=%funcall_string(F) // name : string, the name of the function // lhsnb: number, the number of function lhs +if F.name <> 'disp' txt=['Funcall : '+F.name ' #lhs : '+string(F.lhsnb) ' Rhs : ' ' '+objectlist2string(F.rhs) 'EndFuncall' ] +else +txt=['Funcall : '+F.name + ' #lhs : '+'0' + ' Rhs : ' + ' '+objectlist2string(F.rhs) + 'EndFuncall' + ] +end endfunction diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin index 7a4ed870..bdf35642 100644 Binary files a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin and b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.sci b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci index ab32ff1c..475e2e0c 100644 --- a/macros/CCodeGeneration/C_GenDeclarations_Dup.sci +++ b/macros/CCodeGeneration/C_GenDeclarations_Dup.sci @@ -23,7 +23,7 @@ function Cdeclaration = C_GenDeclarations_Dup(InArg,NInArg,com_type,ArgStruct,CD // ------------------------------ // --- Check input arguments. --- // ------------------------------ - //SCI2CNInArgCheck(argn(2),6,6); +SCI2CNInArgCheck(argn(2),9,9); // #RNU_RES_B //NUT: ilnome di questa funzione va cambiato perche' le dichiarazioni le fanno anche i for e i while. @@ -95,13 +95,13 @@ if (ArgStruct.Dimension > 0) Cdeclaration(1) = Cdeclaration(1)+InArg(NInArg).Name+'};'; else for i=1:NInArg-1 - if InArg(i).Type <> 'z' + if InArg(i).Type <> 'z' & InArg(i).Type <> 'c' Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+',0,'; else Cdeclaration(1) = Cdeclaration(1)+InArg(i).Name+','; end end - if InArg(NInArg).Type <> 'z' + if InArg(NInArg).Type <> 'z' & InArg(NInArg).Type <> 'c' Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};' else Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};' @@ -118,11 +118,10 @@ if (ArgStruct.Dimension > 0) end Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};'; else - disp("hello") for i = 1:col for j = 0:row-1 if (j*col)+i ~= row*col - if InArg(((j*col)+i)).Type <> 'z' + if InArg(((j*col)+i)).Type <> 'z' & InArg(((j*col)+i)).Type <> 'c' Cdeclaration(1) = Cdeclaration(1) + InArg(((j*col)+i)).Name + ',0,'; else Cdeclaration(1) = Cdeclaration(1) + InArg(((j*col)+i)).Name + ','; @@ -130,7 +129,7 @@ if (ArgStruct.Dimension > 0) end end end - if InArg(NInArg).Type <> 'z' + if InArg(NInArg).Type <> 'z' & InArg(NInArg).Type <> 'c' Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + ',0};'; else Cdeclaration(1) = Cdeclaration(1) + InArg(NInArg).Name + '};'; diff --git a/macros/CCodeGeneration/C_IfExpression.bin b/macros/CCodeGeneration/C_IfExpression.bin index b1dc7370..c93b6295 100644 Binary files a/macros/CCodeGeneration/C_IfExpression.bin and b/macros/CCodeGeneration/C_IfExpression.bin differ diff --git a/macros/CCodeGeneration/C_IfExpression.sci b/macros/CCodeGeneration/C_IfExpression.sci index c723d95a..359b7882 100644 --- a/macros/CCodeGeneration/C_IfExpression.sci +++ b/macros/CCodeGeneration/C_IfExpression.sci @@ -19,7 +19,7 @@ function SharedInfo = C_IfExpression(IfCondArg,NIfCondArg,Op,NOp,ASTIfExpType,Fi // ------------------------------ // --- Check input arguments. --- // ------------------------------ -//SCI2CNInArgCheck(argn(4),7,7); +SCI2CNInArgCheck(argn(2),7,7); //global SCI2CSTACK //global StackPosition; diff --git a/macros/CCodeGeneration/C_WhileExpression.bin b/macros/CCodeGeneration/C_WhileExpression.bin index 5e426505..c10e1170 100644 Binary files a/macros/CCodeGeneration/C_WhileExpression.bin and b/macros/CCodeGeneration/C_WhileExpression.bin differ diff --git a/macros/CCodeGeneration/C_WhileExpression.sci b/macros/CCodeGeneration/C_WhileExpression.sci index d7cf70ec..368ccffa 100644 --- a/macros/CCodeGeneration/C_WhileExpression.sci +++ b/macros/CCodeGeneration/C_WhileExpression.sci @@ -19,7 +19,7 @@ function SharedInfo = C_WhileExpression(IfCondArg,NIfCondArg,Op,NOp,FileInfo,Sha // ------------------------------ // --- Check input arguments. --- // ------------------------------ -//SCI2CNInArgCheck(argn(2),2,2); +SCI2CNInArgCheck(argn(2),6,6); // ----------------------- // --- Initialization. --- diff --git a/macros/SymbolTable/ST_InsOutArg_Dup.bin b/macros/SymbolTable/ST_InsOutArg_Dup.bin index 3c59d47c..4c4da4db 100644 Binary files a/macros/SymbolTable/ST_InsOutArg_Dup.bin and b/macros/SymbolTable/ST_InsOutArg_Dup.bin differ diff --git a/macros/SymbolTable/ST_InsOutArg_Dup.sci b/macros/SymbolTable/ST_InsOutArg_Dup.sci index 01d25528..bca66235 100644 --- a/macros/SymbolTable/ST_InsOutArg_Dup.sci +++ b/macros/SymbolTable/ST_InsOutArg_Dup.sci @@ -16,6 +16,7 @@ function ST_InsOutArg_Dup(InArg,NInArg,OutArg,NOutArg,com_type,FileInfo,SharedIn // Copyright 2007 Raffaele Nutricato & Alberto Morea. // Contact: raffaele.nutricato@tiscali.it // ----------------------------------------------------------------- +SCI2CNInArgCheck(argn(2),8,8) // ------------------------------ -- cgit From 9fc55b8370323fd8f7364a5abfcee3af65899a97 Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Thu, 29 Jun 2017 20:26:08 +0530 Subject: till disp complete --- macros/ASTManagement/AST_HandleFunRC.bin | Bin 22484 -> 24064 bytes macros/CCodeGeneration/C_GenDeclarations_Dup.bin | Bin 30104 -> 30376 bytes .../ToolInitialization/INIT_FillSCI2LibCDirs.bin | Bin 1639588 -> 1641572 bytes .../ToolInitialization/INIT_FillSCI2LibCDirs.sci | 7 + macros/findDeps/getAllSources.bin | Bin 251248 -> 252292 bytes macros/findDeps/getAllSources.sci | 5 + src/c/elementaryFunctions/includes/linspace.h | 3 + .../elementaryFunctions/interfaces/int_linspace.h | 4 + src/c/elementaryFunctions/linspace/slinspacea.c | 49 +++++++ src/c/elementaryFunctions/linspace/slinspaces.c | 33 +++++ src/c/interpolation/includes/interp1.h | 2 + src/c/interpolation/interfaces/int_interp1.h | 8 +- src/c/interpolation/interp1/sinterp13a.c | 75 ++++++++++ src/c/signalProcessing/includes/dct.h | 2 + src/c/signalProcessing/includes/idct.h | 2 + src/c/signalProcessing/interfaces/int_dct.h | 4 + src/c/signalProcessing/interfaces/int_idct.h | 2 + src/c/signalProcessing/transforms/dct/sdcta.c | 160 +++++++++++++++++++++ src/c/signalProcessing/transforms/idct/sidcta.c | 83 +++++++++++ 19 files changed, 437 insertions(+), 2 deletions(-) create mode 100644 src/c/elementaryFunctions/linspace/slinspacea.c create mode 100644 src/c/elementaryFunctions/linspace/slinspaces.c create mode 100644 src/c/interpolation/interp1/sinterp13a.c create mode 100644 src/c/signalProcessing/transforms/dct/sdcta.c create mode 100644 src/c/signalProcessing/transforms/idct/sidcta.c diff --git a/macros/ASTManagement/AST_HandleFunRC.bin b/macros/ASTManagement/AST_HandleFunRC.bin index 70d8b561..c1a8062e 100644 Binary files a/macros/ASTManagement/AST_HandleFunRC.bin and b/macros/ASTManagement/AST_HandleFunRC.bin differ diff --git a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin index bdf35642..92289938 100644 Binary files a/macros/CCodeGeneration/C_GenDeclarations_Dup.bin and b/macros/CCodeGeneration/C_GenDeclarations_Dup.bin differ diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin index 37cd5655..2d9cc0fc 100644 Binary files a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin and b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.bin differ diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci index bf7ef244..8fec9496 100644 --- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci +++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci @@ -968,6 +968,8 @@ ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); //PrintStringInfo('d2'+ArgSeparator+'d0',ClassFileName,'file','y'); PrintStringInfo('d2d2d2'+ArgSeparator+'d2',ClassFileName,'file','y'); PrintStringInfo('d2d2d2g2'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('s2s2s2'+ArgSeparator+'s2',ClassFileName,'file','y'); +PrintStringInfo('s2s2s2g2'+ArgSeparator+'s2',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- FunctionName = 'interp1'; @@ -1005,6 +1007,8 @@ ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); PrintStringInfo('d2d0'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('s2'+ArgSeparator+'s2',ClassFileName,'file','y'); +PrintStringInfo('s2s0'+ArgSeparator+'s2',ClassFileName,'file','y'); PrintStringInfo('z2'+ArgSeparator+'z2',ClassFileName,'file','y'); PrintStringInfo('z2d0'+ArgSeparator+'z2',ClassFileName,'file','y'); PrintStringInfo('c2'+ArgSeparator+'c2',ClassFileName,'file','y'); @@ -1034,6 +1038,7 @@ PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('s2'+ArgSeparator+'s2',ClassFileName,'file','y'); PrintStringInfo('z2'+ArgSeparator+'z2',ClassFileName,'file','y'); PrintStringInfo('c2'+ArgSeparator+'c2',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- @@ -1404,7 +1409,9 @@ ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); PrintStringInfo('d0d0d0'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('s0s0s0'+ArgSeparator+'s2',ClassFileName,'file','y'); PrintStringInfo('d2d2d0'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('s2s2s0'+ArgSeparator+'s2',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- diff --git a/macros/findDeps/getAllSources.bin b/macros/findDeps/getAllSources.bin index bf618020..56abe947 100644 Binary files a/macros/findDeps/getAllSources.bin and b/macros/findDeps/getAllSources.bin differ diff --git a/macros/findDeps/getAllSources.sci b/macros/findDeps/getAllSources.sci index afa51194..a20fcde3 100644 --- a/macros/findDeps/getAllSources.sci +++ b/macros/findDeps/getAllSources.sci @@ -698,6 +698,8 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/bitset/u16bitsets.c" "src/c/elementaryFunctions/bitget/u8bitgets.c" "src/c/elementaryFunctions/bitget/u16bitgets.c" + "src/c/elementaryFunctions/linspace/slinspacea.c" + "src/c/elementaryFunctions/linspace/slinspaces.c" "src/c/elementaryFunctions/linspace/dlinspaces.c" "src/c/elementaryFunctions/linspace/dlinspacea.c" "src/c/elementaryFunctions/logspace/dlogspaces.c" @@ -968,9 +970,11 @@ function allSources = getAllSources(SharedInfo) "src/c/string/string/i16stringa.c" "src/c/string/string/i16strings.c" "src/c/signalProcessing/modk/dmodka.c" + "src/c/signalProcessing/transforms/idct/sidcta.c" "src/c/signalProcessing/transforms/idct/cidcta.c" "src/c/signalProcessing/transforms/idct/zidcta.c" "src/c/signalProcessing/transforms/idct/didcta.c" + "src/c/signalProcessing/transforms/dct/sdcta.c" "src/c/signalProcessing/transforms/dct/cdcta.c" "src/c/signalProcessing/transforms/dct/zdcta.c" "src/c/signalProcessing/transforms/dct/ddcta.c" @@ -1185,6 +1189,7 @@ function allSources = getAllSources(SharedInfo) "src/c/elementaryFunctions/Trigonometry/sech/zsechs.c" "src/c/elementaryFunctions/Trigonometry/sech/csecha.c" "src/c/elementaryFunctions/Trigonometry/sech/csechs.c" + "src/c/interpolation/interp1/sinterp13a.c" "src/c/interpolation/interp1/dinterp13a.c" "src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcds.c" "src/c/elementaryFunctions/discrete_mathematics/gcd/dgcda.c" diff --git a/src/c/elementaryFunctions/includes/linspace.h b/src/c/elementaryFunctions/includes/linspace.h index 92fe10e5..62d45015 100644 --- a/src/c/elementaryFunctions/includes/linspace.h +++ b/src/c/elementaryFunctions/includes/linspace.h @@ -21,8 +21,11 @@ extern "C" { EXTERN_ELEMFUNCT void dlinspaces(double low_limit,double up_limit,double range_num, double* out); +EXTERN_ELEMFUNCT void slinspaces(float low_limit,float up_limit,float range_num, float* out); + EXTERN_ELEMFUNCT void dlinspacea(double *low_limit,int row,double *up_limit,double range_num, double* out); +EXTERN_ELEMFUNCT void slinspacea(float *low_limit,int row,float *up_limit,float range_num, float* out); diff --git a/src/c/elementaryFunctions/interfaces/int_linspace.h b/src/c/elementaryFunctions/interfaces/int_linspace.h index f8af947a..15ea2696 100644 --- a/src/c/elementaryFunctions/interfaces/int_linspace.h +++ b/src/c/elementaryFunctions/interfaces/int_linspace.h @@ -15,6 +15,10 @@ #define d0d0d0linspaced2(in1,in2,in3,out) dlinspaces(in1,in2,in3,out) +#define s0s0s0linspaces2(in1,in2,in3,out) slinspaces(in1,in2,in3,out) + #define d2d2d0linspaced2(in1,size1,in2,size2,in3,out) dlinspacea(in1,size1[0],in2,in3,out) +#define s2s2s0linspaces2(in1,size1,in2,size2,in3,out) slinspacea(in1,size1[0],in2,in3,out) + #endif diff --git a/src/c/elementaryFunctions/linspace/slinspacea.c b/src/c/elementaryFunctions/linspace/slinspacea.c new file mode 100644 index 00000000..38af3942 --- /dev/null +++ b/src/c/elementaryFunctions/linspace/slinspacea.c @@ -0,0 +1,49 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Ukasha Noor + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ +#include +#include "linspace.h" + +void slinspacea(float *low_limit,int _row,float *up_limit,float range_num,float *out) +{ + int i,j,k; + float temp; + float *step_iterate; /* for each row the spacing between two values is different.*/ + step_iterate = (float*) malloc((float)_row*sizeof(float)); + for(i=0;i<_row;i++) + { + + step_iterate[i] = (up_limit[i]-low_limit[i])/(range_num-1); + + } + for(j=0;j < _row;j++) + { + out[j] = low_limit[j]; /* For every row first element is the first value of low_limit array*/ + temp = low_limit[j]; + for(k=1;k < (float)range_num;k++ ) + { + out[(_row*k)+j] = temp + step_iterate[j]; /* Output matrix positions for 3 X 5 matrix are [0 3 6 9 12;1 4 7 10 13;2 5 8 11 14] so (_row*k)+j) used*/ + temp = out[(_row*k)+j]; + if(k == (float)range_num-1 ) + { + out[(_row*k)+j] = (float)up_limit[j]; /* Last value of output is equal to first value of up_limit array*/ + } + + } + + + } + + + + +} + diff --git a/src/c/elementaryFunctions/linspace/slinspaces.c b/src/c/elementaryFunctions/linspace/slinspaces.c new file mode 100644 index 00000000..2404f4de --- /dev/null +++ b/src/c/elementaryFunctions/linspace/slinspaces.c @@ -0,0 +1,33 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Ukasha Noor + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +#include "linspace.h" +void slinspaces(float low_limit,float up_limit,float range_num,float *out) +{ + int j; + float temp = low_limit; + float step_iterate = (up_limit-low_limit)/(range_num-1); + out[0] = low_limit; /*First value of output is equal to low_limit value*/ + for(j=1; j<(float)range_num; j++) + { + out[j] = temp + step_iterate; + temp = out[j]; + if(j == (float)range_num-1 ) + { + out[j] = (float)up_limit; /* Last value of output is equal to up_limit value*/ + } + } + + + +} + diff --git a/src/c/interpolation/includes/interp1.h b/src/c/interpolation/includes/interp1.h index 1c01417e..738bfe67 100644 --- a/src/c/interpolation/includes/interp1.h +++ b/src/c/interpolation/includes/interp1.h @@ -23,6 +23,8 @@ extern "C" { //void dinterp13a(double *x,double *fx,double *q,int size,double *out); void dinterp13a(double *x,int size1,double *fx,int size2,double *q,int size3,char *a,int size4,double *out); +void sinterp13a(float *x,int size1,float *fx,int size2,float *q,int size3,char *a,int size4,float *out); + #ifdef __cplusplus } /* extern "C" */ #endif diff --git a/src/c/interpolation/interfaces/int_interp1.h b/src/c/interpolation/interfaces/int_interp1.h index 6d579e10..07d8ece4 100644 --- a/src/c/interpolation/interfaces/int_interp1.h +++ b/src/c/interpolation/interfaces/int_interp1.h @@ -19,9 +19,13 @@ #include "interp1.h" #include -#define d2d2d2interp1d2(x,size1,fx,size2,q,size3,out) dinterp13a(x,size1[0]*size1[1],fx,size2[0]*size1[1],q,size3[0]*size3[1],"linear",6,out) +#define d2d2d2interp1d2(x,size1,fx,size2,q,size3,out) dinterp13a(x,size1[0]*size1[1],fx,size2[0]*size2[1],q,size3[0]*size3[1],"linear",6,out) -#define d2d2d2g2interp1d2(x,size1,fx,size2,q,size3,ch,size4,out) dinterp13a(x,size1[0]*size1[1],fx,size2[0]*size1[1],q,size3[0]*size3[1],ch,size4[0]*size4[1],out) +#define d2d2d2g2interp1d2(x,size1,fx,size2,q,size3,ch,size4,out) dinterp13a(x,size1[0]*size1[1],fx,size2[0]*size2[1],q,size3[0]*size3[1],ch,size4[0]*size4[1],out) + +#define s2s2s2interp1s2(x,size1,fx,size2,q,size3,out) sinterp13a(x,size1[0]*size1[1],fx,size2[0]*size2[1],q,size3[0]*size3[1],"linear",6,out) + +#define s2s2s2g2interp1s2(x,size1,fx,size2,q,size3,ch,size4,out) sinterp13a(x,size1[0]*size1[1],fx,size2[0]*size2[1],q,size3[0]*size3[1],ch,size4[0]*size4[1],out) #endif diff --git a/src/c/interpolation/interp1/sinterp13a.c b/src/c/interpolation/interp1/sinterp13a.c new file mode 100644 index 00000000..b8cb0851 --- /dev/null +++ b/src/c/interpolation/interp1/sinterp13a.c @@ -0,0 +1,75 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Ukasha Noor + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + + +#include "interp1.h" +#include + +void sinterp13a(float *x,int size1,float *fx,int size2,float *q,int size3,char *ch,int size4,float *out) +{ + int i,j,k,f; + float a,b; + if(strcmp(ch,"linear")==0) + { + for(i=0;ix[j]) + { + j++; + } + a=x[j-1]; + b=x[j]; + out[i]=fx[j-1]+(q[i]-a)*((fx[j]-fx[j-1])/(b-a)); + } + } + } + else if(strcmp(ch,"nearest")==0) + { + for(i=0;ix[j]) + { + j++; + } + out[i]=fx[j]; + } + } + } +} + + diff --git a/src/c/signalProcessing/includes/dct.h b/src/c/signalProcessing/includes/dct.h index 5255241e..80668ffa 100644 --- a/src/c/signalProcessing/includes/dct.h +++ b/src/c/signalProcessing/includes/dct.h @@ -25,6 +25,8 @@ extern "C" { void ddcta(double *in,int row,int col,int sign,double *out); +void sdcta(float *in,int row,int col,int sign,float *out); + void zdcta(doubleComplex *in,int row,int col,int sign,doubleComplex *out); void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out); diff --git a/src/c/signalProcessing/includes/idct.h b/src/c/signalProcessing/includes/idct.h index 13458b7d..1e7b85b3 100644 --- a/src/c/signalProcessing/includes/idct.h +++ b/src/c/signalProcessing/includes/idct.h @@ -25,6 +25,8 @@ extern "C" { void didcta(double *in,int row,int col,double *out); +void sidcta(float *in,int row,int col,float *out); + void zidcta(doubleComplex *in,int row,int col,doubleComplex *out); void cidcta(floatComplex *in,int row,int col,floatComplex *out); diff --git a/src/c/signalProcessing/interfaces/int_dct.h b/src/c/signalProcessing/interfaces/int_dct.h index 6cfb21c7..3481c4d5 100644 --- a/src/c/signalProcessing/interfaces/int_dct.h +++ b/src/c/signalProcessing/interfaces/int_dct.h @@ -21,6 +21,10 @@ #define d2d0dctd2(in,size,sign,out) ddcta(in,size[0],size[1],sign,out) +#define s2dcts2(in,size,out) sdcta(in,size[0],size[1],-1,out) + +#define s2s0dcts2(in,size,sign,out) sdcta(in,size[0],size[1],sign,out) + #define z2dctz2(in,size,out) zdcta(in,size[0],size[1],-1,out) #define z2d0dctz2(in,size,sign,out) zdcta(in,size[0],size[1],sign,out) diff --git a/src/c/signalProcessing/interfaces/int_idct.h b/src/c/signalProcessing/interfaces/int_idct.h index c3a174ac..f705fe2d 100644 --- a/src/c/signalProcessing/interfaces/int_idct.h +++ b/src/c/signalProcessing/interfaces/int_idct.h @@ -19,6 +19,8 @@ #define d2idctd2(in,size,out) didcta(in,size[0],size[1],out) +#define s2idcts2(in,size,out) sidcta(in,size[0],size[1],out) + #define z2idctz2(in,size,out) zidcta(in,size[0],size[1],out) #define c2idctc2(in,size,out) cidcta(in,size[0],size[1],out) diff --git a/src/c/signalProcessing/transforms/dct/sdcta.c b/src/c/signalProcessing/transforms/dct/sdcta.c new file mode 100644 index 00000000..9f380e8b --- /dev/null +++ b/src/c/signalProcessing/transforms/dct/sdcta.c @@ -0,0 +1,160 @@ +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Ukasha Noor + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + + +#include "dct.h" +/*#include */ +#include + +void sdcta(float *in,int row,int col,int sign,float *out) +{ + int i,j,k,u,v; + int n; + int x,y; + float res,ress; + float re,z,q,m; + if(sign==-1) + { + if(row==1) + { + n=col; + for(u=0;u*/ +#include + +void sidcta(float *in,int row,int col,float *out) +{ + int i,j,k,u,v; + int n=col; + int x,y; + float res,ress; + float re,z,q,m; + if(row==1) + { + res=1./sqrt(n); + ress=sqrt(2./n); + for(u=0;u + + + + + + + + + + + + + + -- cgit