summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration/C_Funcall.sci
diff options
context:
space:
mode:
authorsiddhu89902016-06-06 09:18:33 +0530
committersiddhu89902016-06-06 09:18:33 +0530
commitc75fb67154fb5679d6ede9a52d5f5ae15600f9f9 (patch)
treec2c950617ab555a0fa74a4f7e0c592ec80bcf3bd /macros/CCodeGeneration/C_Funcall.sci
parent212c54043e454e41ca4b23a5b965d4dbd4b683fe (diff)
downloadscilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.tar.gz
scilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.tar.bz2
scilab2c-c75fb67154fb5679d6ede9a52d5f5ae15600f9f9.zip
File handling functions added
Diffstat (limited to 'macros/CCodeGeneration/C_Funcall.sci')
-rw-r--r--macros/CCodeGeneration/C_Funcall.sci10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/CCodeGeneration/C_Funcall.sci b/macros/CCodeGeneration/C_Funcall.sci
index eec20c70..22a27709 100644
--- a/macros/CCodeGeneration/C_Funcall.sci
+++ b/macros/CCodeGeneration/C_Funcall.sci
@@ -222,7 +222,7 @@ if(mtlb_strcmp(part(CFunName,1:5),'odefn') == %F)
else
TmpInArgName = InArg(counterin).Name;
end
-
+
TmpInArgType = C_Type(InArg(counterin).Type);
//if (FunctionName == 'OpEqual')
@@ -251,8 +251,8 @@ else
//function containing odes in specific format which is differnt than generated
//above.
for counterin = 1:NInArg
-
- if(counterin <> 3) //Skip third argument
+
+ //if((NInArg == 4 & counterin <> 3) | (NInArg == 5 & counterin <> 4)) //Skip third argument
if (InArg(counterin).Type == 'g' & InArg(counterin).Scope == 'String')
TmpInArgName = '""'+InArg(counterin).Name+'""';
elseif (InArg(counterin).Type == 'z' & (InArg(counterin).Scope == 'Number'))
@@ -262,7 +262,7 @@ else
else
TmpInArgName = InArg(counterin).Name;
end
-
+
TmpInArgType = C_Type(InArg(counterin).Type);
//if (FunctionName == 'OpEqual')
@@ -283,7 +283,7 @@ else
CCall = CCall+TmpInArgName+', ';//+TmpInArgSizeVar+',';
end
end
- end
+ //end
end
end