diff options
| author | Miles Bader | 2007-12-06 09:51:45 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-12-06 09:51:45 +0000 |
| commit | 0bd508417142ff377f34aec8dcec9438d9175c2c (patch) | |
| tree | 4d60fe09e5cebf7d79766b11e9cda8cc1c9dbb9b /src/term.c | |
| parent | 98fe991da804a42f53f6a5e84cd5eab18a82e181 (diff) | |
| parent | 9fb1ba8090da3528de56158a79bd3527d31c7f2f (diff) | |
| download | emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.tar.gz emacs-0bd508417142ff377f34aec8dcec9438d9175c2c.zip | |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c index bb7c139eafd..e7d66420ffa 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -37,6 +37,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 37 | #endif | 37 | #endif |
| 38 | 38 | ||
| 39 | #include <signal.h> | 39 | #include <signal.h> |
| 40 | #include <stdarg.h> | ||
| 40 | 41 | ||
| 41 | #include "lisp.h" | 42 | #include "lisp.h" |
| 42 | #include "termchar.h" | 43 | #include "termchar.h" |
| @@ -3866,14 +3867,14 @@ maybe_fatal (must_succeed, buffer, terminal, str1, str2, arg1, arg2) | |||
| 3866 | abort (); | 3867 | abort (); |
| 3867 | } | 3868 | } |
| 3868 | 3869 | ||
| 3869 | /* VARARGS 1 */ | ||
| 3870 | void | 3870 | void |
| 3871 | fatal (str, arg1, arg2) | 3871 | fatal (const char *str, ...) |
| 3872 | char *str, *arg1, *arg2; | ||
| 3873 | { | 3872 | { |
| 3873 | va_list ap; | ||
| 3874 | va_start (ap, str); | ||
| 3874 | fprintf (stderr, "emacs: "); | 3875 | fprintf (stderr, "emacs: "); |
| 3875 | fprintf (stderr, str, arg1, arg2); | 3876 | vfprintf (stderr, str, ap); |
| 3876 | fprintf (stderr, "\n"); | 3877 | va_end (ap); |
| 3877 | fflush (stderr); | 3878 | fflush (stderr); |
| 3878 | exit (1); | 3879 | exit (1); |
| 3879 | } | 3880 | } |