summaryrefslogtreecommitdiff
path: root/2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-07-07 22:46:29 +0530
committerBrijeshcr2017-07-07 22:46:29 +0530
commitce61940a1398e66d9d09b81241789576c1ceca01 (patch)
tree45a111d7e55aa9cbfc1a675662149b106bb0e2ff /2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci
parent6ff1c85175485eafabb6a943bc47f30d20ff8382 (diff)
parent9ac9018159cd030c688d8f5ad9167519a8a1d44c (diff)
downloadScilab2C-ce61940a1398e66d9d09b81241789576c1ceca01.tar.gz
Scilab2C-ce61940a1398e66d9d09b81241789576c1ceca01.tar.bz2
Scilab2C-ce61940a1398e66d9d09b81241789576c1ceca01.zip
RPi functions, Gui mods and updated toeplitz
Diffstat (limited to '2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci')
-rw-r--r--2.3-1/macros/ASTManagement/AST_HandleEndGenFun.sci10
1 files changed, 6 insertions, 4 deletions
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 = '';