diff options
author | Brijeshcr | 2017-07-07 22:44:13 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-07 22:44:13 +0530 |
commit | dc2a8c2cec20a086e1f9312e90281891c2f2c4d0 (patch) | |
tree | e6b5f23245687b50e2888196bf9e59b5f0bd81b2 /macros/ASTManagement | |
parent | eb4fd4f84b56a9b8f1976a67461f2c918edede32 (diff) | |
parent | 6e81efbdcf96e8ce2d393f5641a56783adeaf61c (diff) | |
download | Scilab2C_fossee_old-dc2a8c2cec20a086e1f9312e90281891c2f2c4d0.tar.gz Scilab2C_fossee_old-dc2a8c2cec20a086e1f9312e90281891c2f2c4d0.tar.bz2 Scilab2C_fossee_old-dc2a8c2cec20a086e1f9312e90281891c2f2c4d0.zip |
Pi function changes and gui mods
Diffstat (limited to 'macros/ASTManagement')
-rw-r--r-- | macros/ASTManagement/AST2Ccode.sci | 2 | ||||
-rw-r--r-- | macros/ASTManagement/AST_HandleEndGenFun.sci | 10 | ||||
-rw-r--r-- | macros/ASTManagement/lib | bin | 1960 -> 0 bytes |
3 files changed, 6 insertions, 6 deletions
diff --git a/macros/ASTManagement/AST2Ccode.sci b/macros/ASTManagement/AST2Ccode.sci index 563f313..6fe190e 100644 --- a/macros/ASTManagement/AST2Ccode.sci +++ b/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/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci index 96830aa..41caa2a 100644 --- a/macros/ASTManagement/AST_HandleEndGenFun.sci +++ b/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/macros/ASTManagement/lib b/macros/ASTManagement/lib Binary files differdeleted file mode 100644 index f34860a..0000000 --- a/macros/ASTManagement/lib +++ /dev/null |