emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/term.c


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/src/term.c
Date: Fri, 30 Sep 2005 18:38:29 -0400

Index: emacs/src/term.c
diff -c emacs/src/term.c:1.167 emacs/src/term.c:1.168
*** emacs/src/term.c:1.167      Mon Aug 22 20:47:49 2005
--- emacs/src/term.c    Fri Sep 30 22:38:14 2005
***************
*** 25,30 ****
--- 25,31 ----
  #include <stdio.h>
  #include <ctype.h>
  #include <string.h>
+ #include <stdarg.h>
  
  #include "termchar.h"
  #include "termopts.h"
***************
*** 2689,2700 ****
  
  /* VARARGS 1 */
  void
! fatal (str, arg1, arg2)
!      char *str, *arg1, *arg2;
  {
    fprintf (stderr, "emacs: ");
!   fprintf (stderr, str, arg1, arg2);
!   fprintf (stderr, "\n");
    fflush (stderr);
    exit (1);
  }
--- 2690,2702 ----
  
  /* VARARGS 1 */
  void
! fatal (const char *str, ...)
  {
+   va_list ap;
+   va_start (ap, str);
    fprintf (stderr, "emacs: ");
!   vfprintf (stderr, str, ap);
!   va_end (ap);
    fflush (stderr);
    exit (1);
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]