aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-26 19:32:40 -0700
committerPaul Eggert2011-03-26 19:32:40 -0700
commit4a843dd730dc1d209fb759136460dc411b299616 (patch)
tree6270452d0e918d57b080d53e5417d602aea96e59 /src
parentffa8c828c6c76d3c246443a6752f1038eab60413 (diff)
parent9af30bdf17f8371664bc0c5854c91c2e46257b5e (diff)
downloademacs-4a843dd730dc1d209fb759136460dc411b299616.tar.gz
emacs-4a843dd730dc1d209fb759136460dc411b299616.zip
Merge from mainline.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog14
-rw-r--r--src/atimer.c4
-rw-r--r--src/data.c2
-rw-r--r--src/dispnew.c2
-rw-r--r--src/emacs.c4
-rw-r--r--src/floatfns.c6
-rw-r--r--src/keyboard.c12
-rw-r--r--src/keyboard.h2
-rw-r--r--src/lisp.h2
-rw-r--r--src/process.c8
-rw-r--r--src/s/template.h9
-rw-r--r--src/s/usg5-4-common.h3
-rw-r--r--src/sysdep.c4
-rw-r--r--src/syssignal.h2
-rw-r--r--src/xdisp.c1
-rw-r--r--src/xterm.c6
16 files changed, 41 insertions, 40 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 93c43b85184..8a20c06b41c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -27,6 +27,20 @@
27 (stack_copy_size): Now size_t, not int. 27 (stack_copy_size): Now size_t, not int.
28 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0. 28 (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.
29 29
302011-03-27 Glenn Morris <rgm@gnu.org>
31
32 * syssignal.h: Replace RETSIGTYPE with void.
33 * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c:
34 * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c:
35 Replace SIGTYPE with void everywhere.
36 * s/usg5-4-common.h (SIGTYPE): Remove definition.
37 * s/template.h (SIGTYPE): Remove commented out definition.
38
392011-03-26 Eli Zaretskii <eliz@gnu.org>
40
41 * xdisp.c (redisplay_window): Don't check buffer's clip_changed
42 flag as a prerequisite for invoking try_scrolling. (Bug#6671)
43
302011-03-26 Juanma Barranquero <lekktu@gmail.com> 442011-03-26 Juanma Barranquero <lekktu@gmail.com>
31 45
32 * w32.c (read_unc_volume): Use parameter `henum', instead of 46 * w32.c (read_unc_volume): Use parameter `henum', instead of
diff --git a/src/atimer.c b/src/atimer.c
index e10add961eb..b947ea59ccd 100644
--- a/src/atimer.c
+++ b/src/atimer.c
@@ -64,7 +64,7 @@ static void set_alarm (void);
64static void schedule_atimer (struct atimer *); 64static void schedule_atimer (struct atimer *);
65static struct atimer *append_atimer_lists (struct atimer *, 65static struct atimer *append_atimer_lists (struct atimer *,
66 struct atimer *); 66 struct atimer *);
67SIGTYPE alarm_signal_handler (int signo); 67void alarm_signal_handler (int signo);
68 68
69 69
70/* Start a new atimer of type TYPE. TIME specifies when the timer is 70/* Start a new atimer of type TYPE. TIME specifies when the timer is
@@ -388,7 +388,7 @@ run_timers (void)
388/* Signal handler for SIGALRM. SIGNO is the signal number, i.e. 388/* Signal handler for SIGALRM. SIGNO is the signal number, i.e.
389 SIGALRM. */ 389 SIGALRM. */
390 390
391SIGTYPE 391void
392alarm_signal_handler (int signo) 392alarm_signal_handler (int signo)
393{ 393{
394#ifndef SYNC_INPUT 394#ifndef SYNC_INPUT
diff --git a/src/data.c b/src/data.c
index 0a5ce52c95f..ba7ae58d7b2 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3301,7 +3301,7 @@ syms_of_data (void)
3301 XSYMBOL (intern_c_string ("most-negative-fixnum"))->constant = 1; 3301 XSYMBOL (intern_c_string ("most-negative-fixnum"))->constant = 1;
3302} 3302}
3303 3303
3304static SIGTYPE 3304static void
3305arith_error (int signo) 3305arith_error (int signo)
3306{ 3306{
3307 sigsetmask (SIGEMPTYMASK); 3307 sigsetmask (SIGEMPTYMASK);
diff --git a/src/dispnew.c b/src/dispnew.c
index 093ed9524e4..a15b5f45e60 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5566,7 +5566,7 @@ marginal_area_string (struct window *w, enum window_part part,
5566 5566
5567#ifdef SIGWINCH 5567#ifdef SIGWINCH
5568 5568
5569static SIGTYPE 5569static void
5570window_change_signal (int signalnum) /* If we don't have an argument, */ 5570window_change_signal (int signalnum) /* If we don't have an argument, */
5571 /* some compilers complain in signal calls. */ 5571 /* some compilers complain in signal calls. */
5572{ 5572{
diff --git a/src/emacs.c b/src/emacs.c
index 0382ade728d..6bdd2550ed1 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -308,7 +308,7 @@ pthread_t main_thread;
308 308
309 309
310/* Handle bus errors, invalid instruction, etc. */ 310/* Handle bus errors, invalid instruction, etc. */
311SIGTYPE 311void
312fatal_error_signal (int sig) 312fatal_error_signal (int sig)
313{ 313{
314 SIGNAL_THREAD_CHECK (sig); 314 SIGNAL_THREAD_CHECK (sig);
@@ -345,7 +345,7 @@ fatal_error_signal (int sig)
345#ifdef SIGDANGER 345#ifdef SIGDANGER
346 346
347/* Handler for SIGDANGER. */ 347/* Handler for SIGDANGER. */
348SIGTYPE 348void
349memory_warning_signal (sig) 349memory_warning_signal (sig)
350 int sig; 350 int sig;
351{ 351{
diff --git a/src/floatfns.c b/src/floatfns.c
index bc03509b757..1232fc0afa1 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -103,7 +103,7 @@ extern double logb (double);
103#endif 103#endif
104 104
105#ifdef FLOAT_CATCH_SIGILL 105#ifdef FLOAT_CATCH_SIGILL
106static SIGTYPE float_error (); 106static void float_error ();
107#endif 107#endif
108 108
109/* Nonzero while executing in floating point. 109/* Nonzero while executing in floating point.
@@ -126,7 +126,7 @@ static const char *float_error_fn_name;
126 Handle errors which may result in signals or may set errno. 126 Handle errors which may result in signals or may set errno.
127 127
128 Note that float_error may be declared to return void, so you can't 128 Note that float_error may be declared to return void, so you can't
129 just cast the zero after the colon to (SIGTYPE) to make the types 129 just cast the zero after the colon to (void) to make the types
130 check properly. */ 130 check properly. */
131 131
132#ifdef FLOAT_CHECK_ERRNO 132#ifdef FLOAT_CHECK_ERRNO
@@ -960,7 +960,7 @@ Rounds the value toward zero. */)
960} 960}
961 961
962#ifdef FLOAT_CATCH_SIGILL 962#ifdef FLOAT_CATCH_SIGILL
963static SIGTYPE 963static void
964float_error (signo) 964float_error (signo)
965 int signo; 965 int signo;
966{ 966{
diff --git a/src/keyboard.c b/src/keyboard.c
index 09a0010cedc..31bcfd3e2bc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -434,15 +434,15 @@ static void restore_getcjmp (jmp_buf);
434static Lisp_Object apply_modifiers (int, Lisp_Object); 434static Lisp_Object apply_modifiers (int, Lisp_Object);
435static void clear_event (struct input_event *); 435static void clear_event (struct input_event *);
436static Lisp_Object restore_kboard_configuration (Lisp_Object); 436static Lisp_Object restore_kboard_configuration (Lisp_Object);
437static SIGTYPE interrupt_signal (int signalnum); 437static void interrupt_signal (int signalnum);
438#ifdef SIGIO 438#ifdef SIGIO
439static SIGTYPE input_available_signal (int signo); 439static void input_available_signal (int signo);
440#endif 440#endif
441static void handle_interrupt (void); 441static void handle_interrupt (void);
442static void timer_start_idle (void); 442static void timer_start_idle (void);
443static void timer_stop_idle (void); 443static void timer_stop_idle (void);
444static void timer_resume_idle (void); 444static void timer_resume_idle (void);
445static SIGTYPE handle_user_signal (int); 445static void handle_user_signal (int);
446static char *find_user_signal_name (int); 446static char *find_user_signal_name (int);
447static int store_user_signal_events (void); 447static int store_user_signal_events (void);
448 448
@@ -7082,7 +7082,7 @@ process_pending_signals (void)
7082#ifdef SIGIO /* for entire page */ 7082#ifdef SIGIO /* for entire page */
7083/* Note SIGIO has been undef'd if FIONREAD is missing. */ 7083/* Note SIGIO has been undef'd if FIONREAD is missing. */
7084 7084
7085static SIGTYPE 7085static void
7086input_available_signal (int signo) 7086input_available_signal (int signo)
7087{ 7087{
7088 /* Must preserve main program's value of errno. */ 7088 /* Must preserve main program's value of errno. */
@@ -7160,7 +7160,7 @@ add_user_signal (int sig, const char *name)
7160 signal (sig, handle_user_signal); 7160 signal (sig, handle_user_signal);
7161} 7161}
7162 7162
7163static SIGTYPE 7163static void
7164handle_user_signal (int sig) 7164handle_user_signal (int sig)
7165{ 7165{
7166 int old_errno = errno; 7166 int old_errno = errno;
@@ -10712,7 +10712,7 @@ clear_waiting_for_input (void)
10712 SIGINT was generated by C-g, so we call handle_interrupt. 10712 SIGINT was generated by C-g, so we call handle_interrupt.
10713 Otherwise, the handler kills Emacs. */ 10713 Otherwise, the handler kills Emacs. */
10714 10714
10715static SIGTYPE 10715static void
10716interrupt_signal (int signalnum) /* If we don't have an argument, some */ 10716interrupt_signal (int signalnum) /* If we don't have an argument, some */
10717 /* compilers complain in signal calls. */ 10717 /* compilers complain in signal calls. */
10718{ 10718{
diff --git a/src/keyboard.h b/src/keyboard.h
index 31215199f14..72bb821b2eb 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -485,7 +485,7 @@ extern void push_frame_kboard (struct frame *);
485extern void pop_kboard (void); 485extern void pop_kboard (void);
486extern void temporarily_switch_to_single_kboard (struct frame *); 486extern void temporarily_switch_to_single_kboard (struct frame *);
487extern void record_asynch_buffer_change (void); 487extern void record_asynch_buffer_change (void);
488extern SIGTYPE input_poll_signal (int); 488extern void input_poll_signal (int);
489extern void start_polling (void); 489extern void start_polling (void);
490extern void stop_polling (void); 490extern void stop_polling (void);
491extern void set_poll_suppress_count (int); 491extern void set_poll_suppress_count (int);
diff --git a/src/lisp.h b/src/lisp.h
index e8d77c83a79..edf6130e5b5 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3181,7 +3181,7 @@ extern Lisp_Object decode_env_path (const char *, const char *);
3181extern Lisp_Object empty_unibyte_string, empty_multibyte_string; 3181extern Lisp_Object empty_unibyte_string, empty_multibyte_string;
3182extern Lisp_Object Qfile_name_handler_alist; 3182extern Lisp_Object Qfile_name_handler_alist;
3183extern void (*fatal_error_signal_hook) (void); 3183extern void (*fatal_error_signal_hook) (void);
3184extern SIGTYPE fatal_error_signal (int); 3184extern void fatal_error_signal (int);
3185EXFUN (Fkill_emacs, 1) NO_RETURN; 3185EXFUN (Fkill_emacs, 1) NO_RETURN;
3186#if HAVE_SETLOCALE 3186#if HAVE_SETLOCALE
3187void fixup_locale (void); 3187void fixup_locale (void);
diff --git a/src/process.c b/src/process.c
index ecda8e08012..1abfbd3f2a4 100644
--- a/src/process.c
+++ b/src/process.c
@@ -5471,7 +5471,7 @@ read_process_output (Lisp_Object proc, register int channel)
5471jmp_buf send_process_frame; 5471jmp_buf send_process_frame;
5472Lisp_Object process_sent_to; 5472Lisp_Object process_sent_to;
5473 5473
5474static SIGTYPE 5474static void
5475send_process_trap (int ignore) 5475send_process_trap (int ignore)
5476{ 5476{
5477 SIGNAL_THREAD_CHECK (SIGPIPE); 5477 SIGNAL_THREAD_CHECK (SIGPIPE);
@@ -5498,7 +5498,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf,
5498 EMACS_INT rv; 5498 EMACS_INT rv;
5499 struct coding_system *coding; 5499 struct coding_system *coding;
5500 struct gcpro gcpro1; 5500 struct gcpro gcpro1;
5501 SIGTYPE (*volatile old_sigpipe) (int); 5501 void (*volatile old_sigpipe) (int);
5502 5502
5503 GCPRO1 (object); 5503 GCPRO1 (object);
5504 5504
@@ -5620,7 +5620,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf,
5620 while (this > 0) 5620 while (this > 0)
5621 { 5621 {
5622 int outfd = p->outfd; 5622 int outfd = p->outfd;
5623 old_sigpipe = (SIGTYPE (*) (int)) signal (SIGPIPE, send_process_trap); 5623 old_sigpipe = (void (*) (int)) signal (SIGPIPE, send_process_trap);
5624#ifdef DATAGRAM_SOCKETS 5624#ifdef DATAGRAM_SOCKETS
5625 if (DATAGRAM_CHAN_P (outfd)) 5625 if (DATAGRAM_CHAN_P (outfd))
5626 { 5626 {
@@ -6380,7 +6380,7 @@ process has been transmitted to the serial port. */)
6380 indirectly; if it does, that is a bug */ 6380 indirectly; if it does, that is a bug */
6381 6381
6382#ifdef SIGCHLD 6382#ifdef SIGCHLD
6383static SIGTYPE 6383static void
6384sigchld_handler (int signo) 6384sigchld_handler (int signo)
6385{ 6385{
6386 int old_errno = errno; 6386 int old_errno = errno;
diff --git a/src/s/template.h b/src/s/template.h
index ee5afa81de4..4e0400e99e3 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -77,15 +77,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
77 a file that someone else has modified in his Emacs. */ 77 a file that someone else has modified in his Emacs. */
78#define CLASH_DETECTION 78#define CLASH_DETECTION
79 79
80/* Define this if your operating system declares signal handlers to
81 have a type other than the usual. `The usual' is `void' for ANSI C
82 systems (i.e. when the __STDC__ macro is defined), and `int' for
83 pre-ANSI systems. If you're using GCC on an older system, __STDC__
84 will be defined, but the system's include files will still say that
85 signal returns int or whatever; in situations like that, define
86 this to be what the system's include files want. */
87/* #define SIGTYPE int */
88
89/* If the character used to separate elements of the executable path 80/* If the character used to separate elements of the executable path
90 is not ':', #define this to be the appropriate character constant. */ 81 is not ':', #define this to be the appropriate character constant. */
91/* #define SEPCHAR ':' */ 82/* #define SEPCHAR ':' */
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h
index aeedd7f4b15..236f71e3007 100644
--- a/src/s/usg5-4-common.h
+++ b/src/s/usg5-4-common.h
@@ -38,9 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
38/* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ 38/* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */
39#define HAVE_SYSV_SIGPAUSE 39#define HAVE_SYSV_SIGPAUSE
40 40
41/* On USG systems signal handlers return void. */
42#define SIGTYPE void
43
44/* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. 41/* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars.
45 But get <termio.h> first to make sure ttold.h doesn't interfere. 42 But get <termio.h> first to make sure ttold.h doesn't interfere.
46 And don't try to use SIGIO yet. */ 43 And don't try to use SIGIO yet. */
diff --git a/src/sysdep.c b/src/sysdep.c
index 14db0fd26d0..1bb400421f0 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -449,7 +449,7 @@ child_setup_tty (int out)
449struct save_signal 449struct save_signal
450{ 450{
451 int code; 451 int code;
452 SIGTYPE (*handler) (int); 452 void (*handler) (int);
453}; 453};
454 454
455static void save_signal_handlers (struct save_signal *); 455static void save_signal_handlers (struct save_signal *);
@@ -608,7 +608,7 @@ save_signal_handlers (struct save_signal *saved_handlers)
608 while (saved_handlers->code) 608 while (saved_handlers->code)
609 { 609 {
610 saved_handlers->handler 610 saved_handlers->handler
611 = (SIGTYPE (*) (int)) signal (saved_handlers->code, SIG_IGN); 611 = (void (*) (int)) signal (saved_handlers->code, SIG_IGN);
612 saved_handlers++; 612 saved_handlers++;
613 } 613 }
614} 614}
diff --git a/src/syssignal.h b/src/syssignal.h
index 7b4070322d6..03768168e20 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -69,7 +69,7 @@ extern sigset_t sys_sigmask ();
69 69
70/* Whether this is what all systems want or not, this is what 70/* Whether this is what all systems want or not, this is what
71 appears to be assumed in the source, for example data.c:arith_error. */ 71 appears to be assumed in the source, for example data.c:arith_error. */
72typedef RETSIGTYPE (*signal_handler_t) (int); 72typedef void (*signal_handler_t) (int);
73 73
74signal_handler_t sys_signal (int signal_number, signal_handler_t action); 74signal_handler_t sys_signal (int signal_number, signal_handler_t action);
75sigset_t sys_sigblock (sigset_t new_mask); 75sigset_t sys_sigblock (sigset_t new_mask);
diff --git a/src/xdisp.c b/src/xdisp.c
index 4b196645720..140c2155d15 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -14176,7 +14176,6 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
14176 || temp_scroll_step 14176 || temp_scroll_step
14177 || NUMBERP (BVAR (current_buffer, scroll_up_aggressively)) 14177 || NUMBERP (BVAR (current_buffer, scroll_up_aggressively))
14178 || NUMBERP (BVAR (current_buffer, scroll_down_aggressively))) 14178 || NUMBERP (BVAR (current_buffer, scroll_down_aggressively)))
14179 && !current_buffer->clip_changed
14180 && CHARPOS (startp) >= BEGV 14179 && CHARPOS (startp) >= BEGV
14181 && CHARPOS (startp) <= ZV) 14180 && CHARPOS (startp) <= ZV)
14182 { 14181 {
diff --git a/src/xterm.c b/src/xterm.c
index f87c22912a4..0b18356b0a3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -349,7 +349,7 @@ static int handle_one_xevent (struct x_display_info *, XEvent *,
349 int *, struct input_event *); 349 int *, struct input_event *);
350/* Don't declare this NO_RETURN because we want no 350/* Don't declare this NO_RETURN because we want no
351 interference with debugging failing X calls. */ 351 interference with debugging failing X calls. */
352static SIGTYPE x_connection_closed (Display *, const char *); 352static void x_connection_closed (Display *, const char *);
353 353
354 354
355/* Flush display of frame F, or of all frames if F is null. */ 355/* Flush display of frame F, or of all frames if F is null. */
@@ -7650,7 +7650,7 @@ x_trace_wire (void)
7650 SIGPIPE will fail, causing Xlib to invoke the X IO error handler, 7650 SIGPIPE will fail, causing Xlib to invoke the X IO error handler,
7651 which will do the appropriate cleanup for us. */ 7651 which will do the appropriate cleanup for us. */
7652 7652
7653static SIGTYPE 7653static void
7654x_connection_signal (int signalnum) /* If we don't have an argument, */ 7654x_connection_signal (int signalnum) /* If we don't have an argument, */
7655 /* some compilers complain in signal calls. */ 7655 /* some compilers complain in signal calls. */
7656{ 7656{
@@ -7673,7 +7673,7 @@ static char *error_msg;
7673/* Handle the loss of connection to display DPY. ERROR_MESSAGE is 7673/* Handle the loss of connection to display DPY. ERROR_MESSAGE is
7674 the text of an error message that lead to the connection loss. */ 7674 the text of an error message that lead to the connection loss. */
7675 7675
7676static SIGTYPE 7676static void
7677x_connection_closed (Display *dpy, const char *error_message) 7677x_connection_closed (Display *dpy, const char *error_message)
7678{ 7678{
7679 struct x_display_info *dpyinfo = x_display_info_for_display (dpy); 7679 struct x_display_info *dpyinfo = x_display_info_for_display (dpy);