contrib/gdb-7/gdb/utils.c
static void
vfprintf_maybe_filtered (struct ui_file *stream, const char *format,
			 va_list args, int filter)
{
  char *linebuffer;
  struct cleanup *old_cleanups;

  linebuffer = xstrvprintf (format, args);
  old_cleanups = make_cleanup (xfree, linebuffer);
  fputs_maybe_filtered (linebuffer, stream, filter);
  do_cleanups (old_cleanups);
}
/* Print a variable number of ARGS using format FORMAT.  If this
   information is going to put the amount written (since the last call
   to REINITIALIZE_MORE_FILTER or the last page break) over the page size,
   call prompt_for_continue to get the users permision to continue.

   Unlike fprintf, this function does not return a value.

   We implement three variants, vfprintf (takes a vararg list and stream),
   fprintf (takes a stream to write on), and printf (the usual).

   Note also that a longjmp to top level may occur in this routine
   (since prompt_for_continue may do so) so this routine should not be
   called when cleanups are not in place.  */
Print a variable number of ARGS using format FORMAT.  If this
information is going to put the amount written (since the last call
to REINITIALIZE_MORE_FILTER or the last page break) over the page size,
call prompt_for_continue to get the users permision to continue.

Unlike fprintf, this function does not return a value.

We implement three variants, vfprintf (takes a vararg list and stream),
fprintf (takes a stream to write on), and printf (the usual).

Note also that a longjmp to top level may occur in this routine
(since prompt_for_continue may do so) so this routine should not be
called when cleanups are not in place.
Print a variable number of ARGS using format FORMAT . If this information is going to put the amount written ( since the last call to REINITIALIZE_MORE_FILTER or the last page break ) over the page size call prompt_for_continue to get the users permision to continue . Unlike fprintf this function does not return a value . We implement three variants vfprintf ( takes a vararg list and stream ) fprintf ( takes a stream to write on ) and printf ( the usual ) . Note also that a longjmp to top level may occur in this routine ( since prompt_for_continue may do so ) so this routine should not be called when cleanups are not in place .
static void
vfprintf_maybe_filtered (struct ui_file *stream, const char *format,
			 va_list args, int filter)
{
  char *linebuffer;
  struct cleanup *old_cleanups;
  linebuffer = xstrvprintf (format, args);
  old_cleanups = make_cleanup (xfree, linebuffer);
  fputs_maybe_filtered (linebuffer, stream, filter);
  do_cleanups (old_cleanups);
}
static void vfprintf_maybe_filtered ( struct ui_file * stream , const char * format , va_list args , int filter ) { char * linebuffer ; struct cleanup * old_cleanups ; linebuffer = xstrvprintf ( format , args ) ; old_cleanups = make_cleanup ( xfree , linebuffer ) ; fputs_maybe_filtered ( linebuffer , stream , filter ) ; do_cleanups ( old_cleanups ) ; }
Print a variable number of ARGS using format FORMAT.
Print a variable number of ARGS using format FORMAT .