/[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 187 by johnpye, Fri Dec 23 01:30:46 2005 UTC revision 188 by johnpye, Mon Jan 16 07:47:02 2006 UTC
# Line 207  error_reporter( Line 207  error_reporter(
207      return res;      return res;
208  }  }
209    
210  #ifndef HAVE_C99  #if !(defined(__GNUC__) && !defined(__STRICT_ANSI__)) && !defined(HAVE_C99)
211  /* Following are only required on compilers without variadic macros: */  /* Following are only required on compilers without variadic macros: */
212    
213  int error_reporter_note_no_line(const char *fmt,...){  int error_reporter_note_no_line(const char *fmt,...){
# Line 219  int error_reporter_note_no_line(const ch Line 219  int error_reporter_note_no_line(const ch
219      va_end(args);      va_end(args);
220    
221      return res;      return res;
222    }
223    
224    /**
225        Error reporter 'here' function for compilers not supporting
226        variadic macros.
227    */
228    int error_reporter_here(const error_severity_t sev, const char *fmt,...){
229        int res;
230        va_list args;
231    
232        va_start(args,fmt);
233        res = va_error_reporter(sev,"unknown-file",0,fmt,args);
234        va_end(args);
235    
236        return res;
237  }  }
238    
239  int console_debug(const char *fmt,...){  int console_debug(const char *fmt,...){

Legend:
Removed from v.187  
changed lines
  Added in v.188

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