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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [ui-file.c] - Diff between revs 24 and 131

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 24 Rev 131
Line 472... Line 472...
    internal_error (__FILE__, __LINE__,
    internal_error (__FILE__, __LINE__,
                    _("stdio_file_read: bad magic number"));
                    _("stdio_file_read: bad magic number"));
  return read (fileno (stdio->file), buf, length_buf);
  return read (fileno (stdio->file), buf, length_buf);
}
}
 
 
 
/* JPB: Some picky Ubuntu GCC compilers don't like the result of fwrite being
 
   ignored (even if you cast it to void). So capture the value and ignore
 
   THAT. */
static void
static void
stdio_file_write (struct ui_file *file, const char *buf, long length_buf)
stdio_file_write (struct ui_file *file, const char *buf, long length_buf)
{
{
 
  int  res;                     /* For fwrite result */
  struct stdio_file *stdio = ui_file_data (file);
  struct stdio_file *stdio = ui_file_data (file);
  if (stdio->magic != &stdio_file_magic)
  if (stdio->magic != &stdio_file_magic)
    internal_error (__FILE__, __LINE__,
    internal_error (__FILE__, __LINE__,
                    _("stdio_file_write: bad magic number"));
                    _("stdio_file_write: bad magic number"));
  fwrite (buf, length_buf, 1, stdio->file);
  res = fwrite (buf, length_buf, 1, stdio->file);
}
}
 
 
static void
static void
stdio_file_fputs (const char *linebuffer, struct ui_file *file)
stdio_file_fputs (const char *linebuffer, struct ui_file *file)
{
{

powered by: WebSVN 2.1.0

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