summaryrefslogtreecommitdiff
path: root/macros/FunctionAnnotation/FA_GetFunAnn.sci
diff options
context:
space:
mode:
authorjofret2010-06-23 19:44:55 +0000
committerjofret2010-06-23 19:44:55 +0000
commitdafe68b1f05c3d1d288e7435b3f146326ea4eebc (patch)
tree441af19e42a3f486f2348ca1fd1824e7c9f3ff20 /macros/FunctionAnnotation/FA_GetFunAnn.sci
parent43f050700865808bde98b87129070ded818961f1 (diff)
downloadscilab2c-dafe68b1f05c3d1d288e7435b3f146326ea4eebc.tar.gz
scilab2c-dafe68b1f05c3d1d288e7435b3f146326ea4eebc.tar.bz2
scilab2c-dafe68b1f05c3d1d288e7435b3f146326ea4eebc.zip
Remove SCI2Cerror wrapping call
Diffstat (limited to 'macros/FunctionAnnotation/FA_GetFunAnn.sci')
-rw-r--r--macros/FunctionAnnotation/FA_GetFunAnn.sci10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/FunctionAnnotation/FA_GetFunAnn.sci b/macros/FunctionAnnotation/FA_GetFunAnn.sci
index 98956785..86b99328 100644
--- a/macros/FunctionAnnotation/FA_GetFunAnn.sci
+++ b/macros/FunctionAnnotation/FA_GetFunAnn.sci
@@ -107,14 +107,14 @@ while ((meof(inclsfid) == 0) & (FoundNIn == 0) & (FoundNOut == 0))
PrintStringInfo('SCI2CERROR: Incorrect format for function annotation.',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Expected '+SharedInfo.Annotations.FUNNIN+' field in the annotations of the function.',ReportFileName,'both','y');
PrintStringInfo(' ',ReportFileName,'both','y');
- SCI2Cerror(' ');
+ error(9999, 'SCI2CERROR: Incorrect format for function annotation.');
end
else
PrintStringInfo(' ',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Incorrect format for function annotation.',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Expected '+SharedInfo.Annotations.FUNNIN+' field in the annotations of the function.',ReportFileName,'both','y');
PrintStringInfo(' ',ReportFileName,'both','y');
- SCI2Cerror(' ');
+ error(9999, 'SCI2CERROR: Incorrect format for function annotation.');
end
end
end
@@ -129,7 +129,7 @@ if (FoundNOut*FoundNIn == 0)
PrintStringInfo('SCI2CERROR: 1. Syntax error in function annotations.',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: 2. Missing the right combination of NIN/NOUT annotations: ""'+SharedInfo.Annotations.FUNNIN+string(NInArg)+','+SharedInfo.Annotations.FUNNOUT+' '+string(NOutArg)+'"".',ReportFileName,'both','y');
PrintStringInfo(' ',ReportFileName,'both','y');
- SCI2Cerror(' ');
+ error(9999, 'SCI2CERROR: Incorrect function annotation.');
else
for cntout = 1:NOutArg
SCI2C_nout=cntout; // Useful for eval.
@@ -153,7 +153,7 @@ else
PrintStringInfo(' ',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Line '+string(line_position)+' Function type annotation not found in file: '+SCI2CClassFileName,ReportFileName,'both','y');
PrintStringInfo(' ',ReportFileName,'both','y');
- SCI2Cerror(' ');
+ error(9999, 'SCI2CERROR: Line '+string(line_position)+' Function type annotation not found in file: '+SCI2CClassFileName);
end
// #RNU_RES_B
@@ -178,7 +178,7 @@ else
PrintStringInfo(' ',ReportFileName,'both','y');
PrintStringInfo('SCI2CERROR: Line '+string(line_position)+' Function size annotation not found in file: '+SCI2CClassFileName,ReportFileName,'both','y');
PrintStringInfo(' ',ReportFileName,'both','y');
- SCI2Cerror(' ');
+ error(9999, 'SCI2CERROR: Line '+string(line_position)+' Function size annotation not found in file: '+SCI2CClassFileName);
end
end
end