From adddb2655cb09a2fb2ef54942692376ff85e969d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Apr 2011 18:57:17 -0700 Subject: [PATCH] * 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. --- src/ChangeLog | 4 ++++ src/sysdep.c | 2 -- src/syssignal.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) 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) -- 2.39.2