* sysdep.c (croak): Move decl from here to syssignal.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Apr 2011 01:57:17 +0000 (18:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Apr 2011 01:57:17 +0000 (18:57 -0700)
* syssignal.h (croak): Put it here, so the API can be checked when
'croak' is called from dissociate_if_controlling_tty.

src/ChangeLog
src/sysdep.c
src/syssignal.h

index 685a30d..37225e1 100644 (file)
@@ -1,5 +1,9 @@
 2011-04-14  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * 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.
index f4f767d..f9e8ee7 100644 (file)
@@ -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;
index 0376816..083d70d 100644 (file)
@@ -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)