diff options
author | Jorawar Singh | 2017-07-07 13:00:37 +0530 |
---|---|---|
committer | Jorawar Singh | 2017-07-07 13:00:37 +0530 |
commit | de14a5628ad439e20770d10733ebdac46562a860 (patch) | |
tree | 32373efacf2a4a6eb5a04cd222339905b077830e /macros/ASTManagement/AST_HandleEndGenFun.sci | |
parent | 87823db220f4c3b8bee16c0b2e08027704de1efe (diff) | |
download | Scilab2C_fossee_old-de14a5628ad439e20770d10733ebdac46562a860.tar.gz Scilab2C_fossee_old-de14a5628ad439e20770d10733ebdac46562a860.tar.bz2 Scilab2C_fossee_old-de14a5628ad439e20770d10733ebdac46562a860.zip |
Raspberry Pi function changes and minor gui changes
Diffstat (limited to 'macros/ASTManagement/AST_HandleEndGenFun.sci')
-rw-r--r-- | macros/ASTManagement/AST_HandleEndGenFun.sci | 10 |
1 files changed, 6 insertions, 4 deletions
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 = ''; |