aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2005-01-27 17:00:38 +0000
committerStefan Monnier <[email protected]>2005-01-27 17:00:38 +0000
commit043f7f73332e93e9c147eb94406b054c26b89272 (patch)
treee03a6f42973c9cf20799081b1460ea07b0f5f890 /src/xterm.c
parent760ebc9b6c671a6254bd1270e8e18d4ffbc662e0 (diff)
(x_error_quitter): Add a prototype. Make it static again.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 63783de4f4..49e635c0fa 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1,6 +1,6 @@
/* X Communication module for terminals which understand the X protocol.
- Copyright (C) 1989, 93, 94, 95, 96, 97, 98, 1999, 2000,01,02,03,04
- Free Software Foundation, Inc.
+ Copyright (C) 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+ 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -7766,6 +7766,10 @@ x_connection_closed (dpy, error_message)
error ("%s", error_msg);
}
+/* We specifically use it before defining it, so that gcc doesn't inline it,
+ otherwise gdb doesn't know how to properly put a breakpoint on it. */
+static void x_error_quitter (Display *display, XErrorEvent *error);
+
/* This is the first-level handler for X protocol errors.
It calls x_error_quitter or x_error_catcher. */
@@ -7785,11 +7789,10 @@ x_error_handler (display, error)
It kills all frames on the display that we got the error for.
If that was the only one, it prints an error message and kills Emacs. */
-/* This is not static because we want to put a breakpoint on it.
- It is after x_error_handler so that it won't get inlined in
+/* It is after x_error_handler so that it won't get inlined in
x_error_handler. */
-void
+static void
x_error_quitter (display, error)
Display *display;
XErrorEvent *error;