/[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 378 by johnpye, Wed Mar 15 11:27:22 2006 UTC revision 379 by johnpye, Wed Mar 15 12:48:03 2006 UTC
# Line 200  error_reporter( Line 200  error_reporter(
200      return res;      return res;
201  }  }
202    
203    /*-------------------------
204      SET the callback function
205    */
206    void
207    error_reporter_set_callback(
208            const error_reporter_callback_t new_callback
209    ){
210        extern error_reporter_callback_t g_error_reporter_callback;
211        g_error_reporter_callback = new_callback;
212    }
213    
214    /*-------------------------
215      OPTIONAL code for systems not supporting variadic macros.
216      You know, your system probably does support variadic macros, it's just
217      a question of checking what your particular syntax is...
218    */
219    
220  #if !(defined(__GNUC__) && !defined(__STRICT_ANSI__)) && !defined(HAVE_C99)  #if !(defined(__GNUC__) && !defined(__STRICT_ANSI__)) && !defined(HAVE_C99)
221  /* Following are only required on compilers without variadic macros: */  /* Following are only required on compilers without variadic macros: */
222    
# Line 256  int console_debug(const char *fmt,...){ Line 273  int console_debug(const char *fmt,...){
273      return res;      return res;
274  }  }
275  #endif  #endif
   
 /*-------------------------  
   SET the callback function  
 */  
 void  
 error_reporter_set_callback(  
         const error_reporter_callback_t new_callback  
 ){  
     extern error_reporter_callback_t g_error_reporter_callback;  
     g_error_reporter_callback = new_callback;  
 }  
   

Legend:
Removed from v.378  
changed lines
  Added in v.379

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