diff options
Diffstat (limited to 'macros/CCodeGeneration')
-rw-r--r-- | macros/CCodeGeneration/C_ForExpression.sci | 2 | ||||
-rw-r--r-- | macros/CCodeGeneration/C_Funcall.sci | 8 | ||||
-rw-r--r-- | macros/CCodeGeneration/GetWhileCondVariable.sci | 3 | ||||
-rw-r--r-- | macros/CCodeGeneration/JoinDeclarAndCcode.sci | 3 |
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'); |