diff options
author | Jorawar Singh | 2017-07-07 13:00:37 +0530 |
---|---|---|
committer | Jorawar Singh | 2017-07-07 13:00:37 +0530 |
commit | caaf226244923c75586ea1d4fb1fdcd0a73d2d51 (patch) | |
tree | 7c1cc7bea08325a57c8712dbfb823f4f0b4128ee /2.3-1/macros/ASTManagement | |
parent | e9de337a34e123749927039f7011fb30fc96f7c9 (diff) | |
download | Scilab2C-caaf226244923c75586ea1d4fb1fdcd0a73d2d51.tar.gz Scilab2C-caaf226244923c75586ea1d4fb1fdcd0a73d2d51.tar.bz2 Scilab2C-caaf226244923c75586ea1d4fb1fdcd0a73d2d51.zip |
Raspberry Pi function changes and minor gui changes
Diffstat (limited to '2.3-1/macros/ASTManagement')
-rw-r--r-- | 2.3-1/macros/ASTManagement/AST2Ccode.sci | 2 | ||||
-rw-r--r-- | 2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci | 10 | ||||
-rw-r--r-- | 2.3-1/macros/ASTManagement/lib | bin | 1896 -> 0 bytes |
3 files changed, 6 insertions, 6 deletions
diff --git a/2.3-1/macros/ASTManagement/AST2Ccode.sci b/2.3-1/macros/ASTManagement/AST2Ccode.sci index 563f3133..6fe190ec 100644 --- a/2.3-1/macros/ASTManagement/AST2Ccode.sci +++ b/2.3-1/macros/ASTManagement/AST2Ccode.sci @@ -145,7 +145,6 @@ while ~meof(fidAST) [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Operation'); case 'EndFuncall' then [disp_isthere,FileInfo,SharedInfo] = AST_HandleEndGenFun(disp_isthere,FileInfo,SharedInfo,'Funcall'); - disp(disp_isthere); // -------------- // --- Equal. --- @@ -174,7 +173,6 @@ while ~meof(fidAST) 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); diff --git a/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci b/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci index 96830aa9..41caa2ae 100644 --- a/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci @@ -127,8 +127,10 @@ NOutArg_mod = NOutArg PrintStringInfo(' ',ReportFileName,'both','y'); error(9999, 'SCI2CERROR: Unexpected number of output arguments for global function.'); end - elseif(ASTFunName == 'raspi' | ASTFunName == 'raspi_close') - SharedInfo.SkipNextFun = 1; + //To skip the functions for Raspberry Pi connections + elseif(ASTFunName == 'raspi' | ASTFunName == 'raspi_close' | ASTFunName == 'i2cdetect') + disp_isthere=1; // Skips the corresponding Lhs argument declaration + return // Skips the function call end // #RNU_RES_B @@ -142,8 +144,8 @@ NOutArg_mod = NOutArg if ASTFunName == '%sn' ASTFunName='modsn'; - end - + end + if (ASTFunName == 'OpEqual') FunTypeAnnot = ''; FunSizeAnnot = ''; diff --git a/2.3-1/macros/ASTManagement/lib b/2.3-1/macros/ASTManagement/lib Binary files differdeleted file mode 100644 index 51b54f6f..00000000 --- a/2.3-1/macros/ASTManagement/lib +++ /dev/null |