diff options
| author | Dan Nicolaescu | 2005-09-30 22:38:16 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2005-09-30 22:38:16 +0000 |
| commit | fa8459a34e076cacde3b7c259af9b5dd84b60802 (patch) | |
| tree | b3d68a9fe6cdfe631bcecb42b30b087aa566e942 /src/term.c | |
| parent | b17f937955a92bd8416821ec847d859bc9c3de85 (diff) | |
| download | emacs-fa8459a34e076cacde3b7c259af9b5dd84b60802.tar.gz emacs-fa8459a34e076cacde3b7c259af9b5dd84b60802.zip | |
* image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct
type.
* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
* unexelf.c (fatal): Fix prototype.
* term.c (fatal): Implement using varargs.
* regex.c (re_char): Move typedef ...
* regex.h (re_char): ... here.
(re_iswctype, re_wctype, re_set_whitespace_regexp): New
prototypes.
* emacs.c (malloc_set_state): Fix return type.
(endif): Fix type.
* lisp.h (fatal): Add argument types.
* dispextern.h (fatal): Delete prototype.
* systime.h: (make_time): Prototype moved from ...
* editfns.c (make_time): ... here.
* editfns.c: Move systime.h include after lisp.h.
* dired.c:
* xsmfns.c:
* process.c: Likewise.
* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
Add parameter types.
(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
(emacs_blocked_free): Change definition to match __free_hook.
(emacs_blocked_malloc): Change definition to match __malloc_hook.
(emacs_blocked_realloc): Change definition to match
__realloc_hook.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c index 2b4ea7e23a4..21333826b3c 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -25,6 +25,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <ctype.h> | 26 | #include <ctype.h> |
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include <stdarg.h> | ||
| 28 | 29 | ||
| 29 | #include "termchar.h" | 30 | #include "termchar.h" |
| 30 | #include "termopts.h" | 31 | #include "termopts.h" |
| @@ -2689,12 +2690,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", | |||
| 2689 | 2690 | ||
| 2690 | /* VARARGS 1 */ | 2691 | /* VARARGS 1 */ |
| 2691 | void | 2692 | void |
| 2692 | fatal (str, arg1, arg2) | 2693 | fatal (const char *str, ...) |
| 2693 | char *str, *arg1, *arg2; | ||
| 2694 | { | 2694 | { |
| 2695 | va_list ap; | ||
| 2696 | va_start (ap, str); | ||
| 2695 | fprintf (stderr, "emacs: "); | 2697 | fprintf (stderr, "emacs: "); |
| 2696 | fprintf (stderr, str, arg1, arg2); | 2698 | vfprintf (stderr, str, ap); |
| 2697 | fprintf (stderr, "\n"); | 2699 | va_end (ap); |
| 2698 | fflush (stderr); | 2700 | fflush (stderr); |
| 2699 | exit (1); | 2701 | exit (1); |
| 2700 | } | 2702 | } |