aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2006-07-18 16:33:45 +0000
committerDan Nicolaescu2006-07-18 16:33:45 +0000
commit2381d38d0af85e3a97eb9f98c66a7259a2a3e1e1 (patch)
tree00bdc68e837797ff0e0c4029dd5a058e00a75a2f /src
parent2d545d838f41ca56d5329ad00a30c1f7603504f0 (diff)
downloademacs-2381d38d0af85e3a97eb9f98c66a7259a2a3e1e1.tar.gz
emacs-2381d38d0af85e3a97eb9f98c66a7259a2a3e1e1.zip
* ebrowse.c (usage, version): Mark as NO_RETURN.
* emacsclient.c (print_help_and_exit): Likewise. * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN. * textprop.c (text_read_only): Likewise. * lread.c (end_of_file_error): Likewise. * lisp.h (circular_list_error, memory_full, buffer_memory_full): Likewise. * eval.c (unwind_to_catch): Likewise. * buffer.h (buffer_slot_type_mismatch): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/buffer.h2
-rw-r--r--src/eval.c1
-rw-r--r--src/lisp.h6
-rw-r--r--src/lread.c1
-rw-r--r--src/textprop.c2
-rw-r--r--src/xterm.c4
7 files changed, 25 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 67d26d13f99..41b3f92a4c8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,18 @@
12006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
4
5 * textprop.c (text_read_only): Likewise.
6
7 * lread.c (end_of_file_error): Likewise.
8
9 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
10 Likewise.
11
12 * eval.c (unwind_to_catch): Likewise.
13
14 * buffer.h (buffer_slot_type_mismatch): Likewise.
15
12006-07-18 Kim F. Storm <storm@cua.dk> 162006-07-18 Kim F. Storm <storm@cua.dk>
2 17
3 Cleanup Fsignal calls that never returns; now only use it for Qquit. 18 Cleanup Fsignal calls that never returns; now only use it for Qquit.
diff --git a/src/buffer.h b/src/buffer.h
index 60aa3e7aaed..efe0252453a 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -833,7 +833,7 @@ extern void set_buffer_internal P_ ((struct buffer *));
833extern void set_buffer_internal_1 P_ ((struct buffer *)); 833extern void set_buffer_internal_1 P_ ((struct buffer *));
834extern void set_buffer_temp P_ ((struct buffer *)); 834extern void set_buffer_temp P_ ((struct buffer *));
835extern void record_buffer P_ ((Lisp_Object)); 835extern void record_buffer P_ ((Lisp_Object));
836extern void buffer_slot_type_mismatch P_ ((int)); 836extern void buffer_slot_type_mismatch P_ ((int)) NO_RETURN;
837extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT)); 837extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT));
838extern void mmap_set_vars P_ ((int)); 838extern void mmap_set_vars P_ ((int));
839 839
diff --git a/src/eval.c b/src/eval.c
index 37c245234fc..0d7a6a31038 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -198,6 +198,7 @@ Lisp_Object Vmacro_declaration_function;
198extern Lisp_Object Qrisky_local_variable; 198extern Lisp_Object Qrisky_local_variable;
199 199
200static Lisp_Object funcall_lambda P_ ((Lisp_Object, int, Lisp_Object*)); 200static Lisp_Object funcall_lambda P_ ((Lisp_Object, int, Lisp_Object*));
201static void unwind_to_catch P_ ((struct catchtag *, Lisp_Object)) NO_RETURN;
201 202
202void 203void
203init_eval_once () 204init_eval_once ()
diff --git a/src/lisp.h b/src/lisp.h
index 8d9e2b7cfa4..d1ce953cd68 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2174,7 +2174,7 @@ extern Lisp_Object Qnumberp, Qnumber_or_marker_p;
2174 2174
2175extern Lisp_Object Qinteger; 2175extern Lisp_Object Qinteger;
2176 2176
2177extern void circular_list_error P_ ((Lisp_Object)); 2177extern void circular_list_error P_ ((Lisp_Object)) NO_RETURN;
2178EXFUN (Finteractive_form, 1); 2178EXFUN (Finteractive_form, 1);
2179 2179
2180/* Defined in frame.c */ 2180/* Defined in frame.c */
@@ -2549,8 +2549,8 @@ extern void allocate_string_data P_ ((struct Lisp_String *, int, int));
2549extern void reset_malloc_hooks P_ ((void)); 2549extern void reset_malloc_hooks P_ ((void));
2550extern void uninterrupt_malloc P_ ((void)); 2550extern void uninterrupt_malloc P_ ((void));
2551extern void malloc_warning P_ ((char *)); 2551extern void malloc_warning P_ ((char *));
2552extern void memory_full P_ ((void)); 2552extern void memory_full P_ ((void)) NO_RETURN;
2553extern void buffer_memory_full P_ ((void)); 2553extern void buffer_memory_full P_ ((void)) NO_RETURN;
2554extern int survives_gc_p P_ ((Lisp_Object)); 2554extern int survives_gc_p P_ ((Lisp_Object));
2555extern void mark_object P_ ((Lisp_Object)); 2555extern void mark_object P_ ((Lisp_Object));
2556extern Lisp_Object Vpurify_flag; 2556extern Lisp_Object Vpurify_flag;
diff --git a/src/lread.c b/src/lread.c
index c407b5947d9..88a70f691c3 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -215,6 +215,7 @@ static Lisp_Object load_unwind P_ ((Lisp_Object));
215static Lisp_Object load_descriptor_unwind P_ ((Lisp_Object)); 215static Lisp_Object load_descriptor_unwind P_ ((Lisp_Object));
216 216
217static void invalid_syntax P_ ((const char *, int)) NO_RETURN; 217static void invalid_syntax P_ ((const char *, int)) NO_RETURN;
218static void end_of_file_error P_ (()) NO_RETURN;
218 219
219 220
220/* Handle unreading and rereading of characters. 221/* Handle unreading and rereading of characters.
diff --git a/src/textprop.c b/src/textprop.c
index b89d73a7ef9..fd70f039d22 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -78,6 +78,8 @@ Lisp_Object Vtext_property_default_nonsticky;
78Lisp_Object interval_insert_behind_hooks; 78Lisp_Object interval_insert_behind_hooks;
79Lisp_Object interval_insert_in_front_hooks; 79Lisp_Object interval_insert_in_front_hooks;
80 80
81static void text_read_only P_ ((Lisp_Object)) NO_RETURN;
82
81 83
82/* Signal a `text-read-only' error. This function makes it easier 84/* Signal a `text-read-only' error. This function makes it easier
83 to capture that error in GDB by putting a breakpoint on it. */ 85 to capture that error in GDB by putting a breakpoint on it. */
diff --git a/src/xterm.c b/src/xterm.c
index 0b16a37a62c..5e4eeb3bb64 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -358,7 +358,7 @@ static void x_check_expected_move P_ ((struct frame *, int, int));
358static void x_sync_with_move P_ ((struct frame *, int, int, int)); 358static void x_sync_with_move P_ ((struct frame *, int, int, int));
359static int handle_one_xevent P_ ((struct x_display_info *, XEvent *, 359static int handle_one_xevent P_ ((struct x_display_info *, XEvent *,
360 int *, struct input_event *)); 360 int *, struct input_event *));
361static SIGTYPE x_connection_closed P_ ((Display *, char *)); 361static SIGTYPE x_connection_closed P_ ((Display *, char *)) NO_RETURN;
362 362
363 363
364/* Flush display of frame F, or of all frames if F is null. */ 364/* Flush display of frame F, or of all frames if F is null. */
@@ -7771,7 +7771,7 @@ x_connection_closed (dpy, error_message)
7771 7771
7772/* We specifically use it before defining it, so that gcc doesn't inline it, 7772/* We specifically use it before defining it, so that gcc doesn't inline it,
7773 otherwise gdb doesn't know how to properly put a breakpoint on it. */ 7773 otherwise gdb doesn't know how to properly put a breakpoint on it. */
7774static void x_error_quitter (Display *display, XErrorEvent *error); 7774static void x_error_quitter P_ ((Display *, XErrorEvent *)) NO_RETURN;
7775 7775
7776/* This is the first-level handler for X protocol errors. 7776/* This is the first-level handler for X protocol errors.
7777 It calls x_error_quitter or x_error_catcher. */ 7777 It calls x_error_quitter or x_error_catcher. */