summaryrefslogtreecommitdiff
path: root/macros/ASTManagement
diff options
context:
space:
mode:
authorBrijeshcr2017-07-07 22:44:13 +0530
committerBrijeshcr2017-07-07 22:44:13 +0530
commitdc2a8c2cec20a086e1f9312e90281891c2f2c4d0 (patch)
treee6b5f23245687b50e2888196bf9e59b5f0bd81b2 /macros/ASTManagement
parenteb4fd4f84b56a9b8f1976a67461f2c918edede32 (diff)
parent6e81efbdcf96e8ce2d393f5641a56783adeaf61c (diff)
downloadScilab2C_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.sci2
-rw-r--r--macros/ASTManagement/AST_HandleEndGenFun.sci10
-rw-r--r--macros/ASTManagement/libbin1960 -> 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
deleted file mode 100644
index f34860a..0000000
--- a/macros/ASTManagement/lib
+++ /dev/null
Binary files differ