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

Diff of /trunk/ascend/utilities/error.c

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

revision 2328 by jpye, Wed Dec 15 06:35:43 2010 UTC revision 2329 by jpye, Wed Dec 22 12:52:47 2010 UTC
# Line 117  int error_reporter_tree_start(){ Line 117  int error_reporter_tree_start(){
117      error_reporter_tree_t *tnew;      error_reporter_tree_t *tnew;
118      tnew = error_reporter_tree_new();      tnew = error_reporter_tree_new();
119    
120    #if 0
121      fprintf(stderr,"TREE = %p",TREE);      fprintf(stderr,"TREE = %p",TREE);
122      fprintf(stderr,"TREECURRENT = %p",TREECURRENT);      fprintf(stderr,"TREECURRENT = %p",TREECURRENT);
123    
 #if 0  
124      if(TREE != NULL && TREECURRENT == NULL){      if(TREE != NULL && TREECURRENT == NULL){
125          CONSOLE_DEBUG("CALLED WITH NULL TREECURRENT BUT NON-NULL TREE");          CONSOLE_DEBUG("CALLED WITH NULL TREECURRENT BUT NON-NULL TREE");
126          error_reporter_tree_write(TREE);          error_reporter_tree_write(TREE);
# Line 158  int error_reporter_tree_start(){ Line 158  int error_reporter_tree_start(){
158  }  }
159    
160  int error_reporter_tree_end(){  int error_reporter_tree_end(){
161      CONSOLE_DEBUG("TREE END");      //CONSOLE_DEBUG("TREE END");
162      if(!TREECURRENT){      if(!TREECURRENT){
163          ERROR_REPORTER_HERE(ASC_PROG_ERR,"'end' without TREECURRENT set");          ERROR_REPORTER_HERE(ASC_PROG_ERR,"'end' without TREECURRENT set");
164          return 1;          return 1;
# Line 305  va_error_reporter( Line 305  va_error_reporter(
305              t = TREE;              t = TREE;
306              TREE = NULL;              TREE = NULL;
307              error_reporter_tree_write(t);              error_reporter_tree_write(t);
308              CONSOLE_DEBUG("DONE WRITING TREE");              //CONSOLE_DEBUG("DONE WRITING TREE");
309              TREECURRENT = t;              TREECURRENT = t;
310              error_reporter_tree_clear();              error_reporter_tree_clear();
311              /* CONSOLE_DEBUG("DONE FREEING TREE");              /* CONSOLE_DEBUG("DONE FREEING TREE");

Legend:
Removed from v.2328  
changed lines
  Added in v.2329

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