/[ascend]/trunk/base/generic/utilities/error.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/error.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1047 by johnpye, Thu Jan 4 08:11:55 2007 UTC revision 1048 by johnpye, Fri Jan 5 12:19:41 2007 UTC
# Line 233  int error_reporter_tree_has_error(){ Line 233  int error_reporter_tree_has_error(){
233    
234  static int error_reporter_tree_write(error_reporter_tree_t *t){  static int error_reporter_tree_write(error_reporter_tree_t *t){
235      int res = 0;      int res = 0;
     static int writecount = 0;  
236    
237      asc_assert(TREE==NULL); /* else recursive calls will occur */      asc_assert(TREE==NULL); /* else recursive calls will occur */
238    
     if(++writecount > 50){  
         CONSOLE_DEBUG("TOO MUCH WRITING");  
         return 0;  
     }  
   
239      if(t->err){      if(t->err){
240          res += error_reporter(t->err->sev, t->err->filename, t->err->line, t->err->func, t->err->msg);          res += error_reporter(t->err->sev, t->err->filename, t->err->line, t->err->func, t->err->msg);
241      }else{      }else{

Legend:
Removed from v.1047  
changed lines
  Added in v.1048

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22