OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [stdlib/] [eprintf.c] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
/* This is an implementation of the __eprintf function which is
/* This is an implementation of the __eprintf function which is
   compatible with the assert.h which is distributed with gcc.
   compatible with the assert.h which is distributed with gcc.
 
 
   This function is provided because in some cases libgcc.a will not
   This function is provided because in some cases libgcc.a will not
   provide __eprintf.  This will happen if inhibit_libc is defined,
   provide __eprintf.  This will happen if inhibit_libc is defined,
   which is done because at the time that libgcc2.c is compiled, the
   which is done because at the time that libgcc2.c is compiled, the
   correct <stdio.h> may not be available.  newlib provides its own
   correct <stdio.h> may not be available.  newlib provides its own
   copy of assert.h, which calls __assert, not __eprintf.  However, in
   copy of assert.h, which calls __assert, not __eprintf.  However, in
   some cases you may accidentally wind up compiling with the gcc
   some cases you may accidentally wind up compiling with the gcc
   assert.h.  In such a case, this __eprintf will be used if there
   assert.h.  In such a case, this __eprintf will be used if there
   does not happen to be one in libgcc2.c.  */
   does not happen to be one in libgcc2.c.  */
 
 
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
 
 
void
void
__eprintf (format, file, line, expression)
__eprintf (format, file, line, expression)
     const char *format;
     const char *format;
     const char *file;
     const char *file;
     unsigned int line;
     unsigned int line;
     const char *expression;
     const char *expression;
{
{
  (void) fiprintf (stderr, format, file, line, expression);
  (void) fiprintf (stderr, format, file, line, expression);
  abort ();
  abort ();
  /*NOTREACHED*/
  /*NOTREACHED*/
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.