From dafe68b1f05c3d1d288e7435b3f146326ea4eebc Mon Sep 17 00:00:00 2001 From: jofret Date: Wed, 23 Jun 2010 19:44:55 +0000 Subject: Remove SCI2Cerror wrapping call --- macros/ASTManagement/AST_ReadASTHeader.sci | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'macros/ASTManagement/AST_ReadASTHeader.sci') diff --git a/macros/ASTManagement/AST_ReadASTHeader.sci b/macros/ASTManagement/AST_ReadASTHeader.sci index 3df6cd28..7a52b1f2 100644 --- a/macros/ASTManagement/AST_ReadASTHeader.sci +++ b/macros/ASTManagement/AST_ReadASTHeader.sci @@ -38,7 +38,7 @@ if STACKDEDUG == 1 disp('Read AST Line: '+treeline); end if (SCI2Cstrncmps1size('Program',treeline) == %F) - SCI2CerrorFile('Expected ""Program"" label in the AST',ReportFileName); + error(9999, 'Expected ""Program"" label in the AST'); end tline = mgetl(fidAST,1); @@ -48,7 +48,7 @@ if STACKDEDUG == 1 disp('Read AST Line: '+treeline); end if (SCI2Cstrncmps1size('Name : ',treeline) == %F) - SCI2CerrorFile('Expected ""Name : "" label in the AST',ReportFileName); + error(9999, 'Expected ""Name : "" label in the AST'); else ASTHeader.Name = stripblanks(part(treeline,length('Name : ')+1:length(treeline))); end @@ -60,7 +60,7 @@ if STACKDEDUG == 1 disp('Read AST Line: '+treeline); end if (SCI2Cstrncmps1size('Outputs: ',treeline) == %F) - SCI2CerrorFile('Expected ""Outputs: "" label in the AST',ReportFileName); + error(9999, 'Expected ""Outputs: "" label in the AST'); else ASTHeader.Outputs = stripblanks(part(treeline,length('Outputs: ')+1:length(treeline))); end @@ -72,7 +72,7 @@ if STACKDEDUG == 1 disp('Read AST Line: '+treeline); end if (SCI2Cstrncmps1size('Inputs : ',treeline) == %F) - SCI2CerrorFile('Expected ""Inputs : "" label in the AST',ReportFileName); + error(9999, 'Expected ""Inputs : "" label in the AST'); else ASTHeader.Inputs = stripblanks(part(treeline,length('Inputs : ')+1:length(treeline))); end @@ -84,7 +84,7 @@ if STACKDEDUG == 1 disp('Read AST Line: '+treeline); end if (SCI2Cstrncmps1size('Statements ',treeline) == %F) - SCI2CerrorFile('Expected ""Statements "" label in the AST',ReportFileName); + error(9999, 'Expected ""Statements "" label in the AST'); end endfunction -- cgit