summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration
diff options
context:
space:
mode:
authorSunil Shetye2019-05-16 12:36:11 +0530
committerSunil Shetye2019-05-29 11:08:03 +0530
commit5808c44e344c3f80504ec93d2bb588e83d0170b8 (patch)
tree6dad3b3663903bad863721a28a39b6d79f942d4c /macros/CCodeGeneration
parent26b77d7593b5ee0792b6b556f5569ea4227c2b02 (diff)
downloadscilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.tar.gz
scilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.tar.bz2
scilab2c-5808c44e344c3f80504ec93d2bb588e83d0170b8.zip
replace SCI2Cerror
Diffstat (limited to 'macros/CCodeGeneration')
-rw-r--r--macros/CCodeGeneration/C_ForExpression.sci2
-rw-r--r--macros/CCodeGeneration/C_Funcall.sci8
-rw-r--r--macros/CCodeGeneration/GetWhileCondVariable.sci3
-rw-r--r--macros/CCodeGeneration/JoinDeclarAndCcode.sci3
4 files changed, 9 insertions, 7 deletions
diff --git a/macros/CCodeGeneration/C_ForExpression.sci b/macros/CCodeGeneration/C_ForExpression.sci
index 383d53ea..38ace3fd 100644
--- a/macros/CCodeGeneration/C_ForExpression.sci
+++ b/macros/CCodeGeneration/C_ForExpression.sci
@@ -211,7 +211,7 @@ else
// --- Case 5. ---
// ---------------
- SCI2Cerror('Could not manage the for expression.');
+ error(9999, 'Could not manage the for expression.');
end
endfunction
diff --git a/macros/CCodeGeneration/C_Funcall.sci b/macros/CCodeGeneration/C_Funcall.sci
index 450ad088..8d60b7eb 100644
--- a/macros/CCodeGeneration/C_Funcall.sci
+++ b/macros/CCodeGeneration/C_Funcall.sci
@@ -127,7 +127,7 @@ end
// // #RNU_RES_E
// PrintStringInfo(C_IndentBlanks(IndentLevel)+CCall,CPass1FileName,'file','y');
// else
-// SCI2Cerror('Don''t know how to manage size function with number of output args different from 1 and 2.');
+// error(9999, 'Don''t know how to manage size function with number of output args different from 1 and 2.');
// end
// elseif (NInArg == 2)
// if (NOutArg == 1)
@@ -144,13 +144,13 @@ end
// // #RNU_RES_E
// PrintStringInfo(C_IndentBlanks(IndentLevel)+CCall,CPass1FileName,'file','y');
// else
-// SCI2Cerror('Not known the value of the second input arg for the size function.');
+// error(9999, 'Not known the value of the second input arg for the size function.');
// end
// else
-// SCI2Cerror('Don''t know how to manage size function with number of output args different from 1.');
+// error(9999, 'Don''t know how to manage size function with number of output args different from 1.');
// end
// else
-// SCI2Cerror('Don''t know how to manage size function with number of input args different from 1 and 2.');
+// error(9999, 'Don''t know how to manage size function with number of input args different from 1 and 2.');
// end
// return;
// end
diff --git a/macros/CCodeGeneration/GetWhileCondVariable.sci b/macros/CCodeGeneration/GetWhileCondVariable.sci
index ba4c7e92..4a207ae1 100644
--- a/macros/CCodeGeneration/GetWhileCondVariable.sci
+++ b/macros/CCodeGeneration/GetWhileCondVariable.sci
@@ -61,7 +61,8 @@ if ((SharedInfo.WhileExpr.OnExec > 0) & (NOutArg==1))
//RNU: secondo me la matrice finale non e' supportata dalla while, ma while(det(M)>0)
//RNU: puo' essere benissimo supportato.
// if (OutArg.Dimension > 0)
- // SCI2CerrorFile('Cannot manage while with matrix conditions',ReportFileName);
+ // PrintStringInfo('Cannot manage while with matrix conditions',ReportFileName,'file','y');
+ // error(9999, 'Cannot manage while with matrix conditions');
// SharedInfo.SkipNextFun = 0; //NUT verifica se serve
// end
// #RNU_RES_E
diff --git a/macros/CCodeGeneration/JoinDeclarAndCcode.sci b/macros/CCodeGeneration/JoinDeclarAndCcode.sci
index 35607f6d..76ee0a22 100644
--- a/macros/CCodeGeneration/JoinDeclarAndCcode.sci
+++ b/macros/CCodeGeneration/JoinDeclarAndCcode.sci
@@ -100,7 +100,8 @@ while ((~meof(CPass1V1FileFid)) & (FoundCurlyBracket == 0))
end
if (FoundCurlyBracket == 0)
- SCI2CerrorFile('""{"" char not found in:'+CPass1FileName,ReportFileName);
+ PrintStringInfo('""{"" char not found in:'+CPass1FileName,ReportFileName,'file','y');
+ error(9999, '""{"" char not found in:'+CPass1FileName);
end
PrintStringInfo('/*',CPass2FileName,'file','y');