From: Paul Eggert Date: Thu, 14 Apr 2011 01:57:17 +0000 (-0700) Subject: * sysdep.c (croak): Move decl from here to syssignal.h. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~314 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=adddb2655cb09a2fb2ef54942692376ff85e969d;p=emacs.git * sysdep.c (croak): Move decl from here to syssignal.h. * syssignal.h (croak): Put it here, so the API can be checked when 'croak' is called from dissociate_if_controlling_tty. --- diff --git a/src/ChangeLog b/src/ChangeLog index 685a30d21d7..37225e11f76 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2011-04-14 Paul Eggert + * sysdep.c (croak): Move decl from here to syssignal.h. + * syssignal.h (croak): Put it here, so the API can be checked when + 'croak' is called from dissociate_if_controlling_tty. + * minibuf.c: Make symbols static if they're not exported. (minibuf_save_list, choose_minibuf_frame): Now static. * lisp.h (choose_minibuf_frame): Remove decl. diff --git a/src/sysdep.c b/src/sysdep.c index f4f767dac3f..f9e8ee746c9 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -127,8 +127,6 @@ static const int baud_convert[] = 1800, 2400, 4800, 9600, 19200, 38400 }; -void croak (char *) NO_RETURN; - /* Temporary used by `sigblock' when defined in terms of signprocmask. */ SIGMASKTYPE sigprocmask_set; diff --git a/src/syssignal.h b/src/syssignal.h index 03768168e20..083d70d6c13 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -75,6 +75,7 @@ signal_handler_t sys_signal (int signal_number, signal_handler_t action); sigset_t sys_sigblock (sigset_t new_mask); sigset_t sys_sigunblock (sigset_t new_mask); sigset_t sys_sigsetmask (sigset_t new_mask); +void croak (char *) NO_RETURN; #define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG)