diff options
| author | Po Lu | 2022-06-26 18:14:17 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-26 18:14:34 +0800 |
| commit | 05ee87d4233d0bbb64cf24af93d3d074a5d5a3eb (patch) | |
| tree | 048d947fb30873e63da089c1a08b1f0b5f470462 /src | |
| parent | 3b7d8dd3b3ee2b28ea5aa86e84f5a355698b29a8 (diff) | |
| download | emacs-05ee87d4233d0bbb64cf24af93d3d074a5d5a3eb.tar.gz emacs-05ee87d4233d0bbb64cf24af93d3d074a5d5a3eb.zip | |
; Minor cosmetics adjustment to xterm.c
* src/xterm.c: Rename xIOErrorHandler & friends to
"Emacs_XIOErrorHandler" so they don't look like X protocol
header types.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xterm.c b/src/xterm.c index 6afb2a3312f..34fbbfb81cb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -720,10 +720,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 720 | #endif | 720 | #endif |
| 721 | 721 | ||
| 722 | /* Although X11/Xlib.h commonly defines the types XErrorHandler and | 722 | /* Although X11/Xlib.h commonly defines the types XErrorHandler and |
| 723 | XIOErrorHandler, they are not in the Xlib spec so for portability | 723 | XIOErrorHandler, they are not in the Xlib spec, so for portability |
| 724 | define and use names with a leading lower-case 'x' instead. */ | 724 | define and use names with an Emacs_ prefix instead. */ |
| 725 | typedef int (*xErrorHandler) (Display *, XErrorEvent *); | 725 | typedef int (*Emacs_XErrorHandler) (Display *, XErrorEvent *); |
| 726 | typedef int (*xIOErrorHandler) (Display *); | 726 | typedef int (*Emacs_XIOErrorHandler) (Display *); |
| 727 | 727 | ||
| 728 | #if defined USE_XCB && defined USE_CAIRO_XCB | 728 | #if defined USE_XCB && defined USE_CAIRO_XCB |
| 729 | #define USE_CAIRO_XCB_SURFACE | 729 | #define USE_CAIRO_XCB_SURFACE |
| @@ -1838,8 +1838,8 @@ xm_get_drag_window_1 (struct x_display_info *dpyinfo) | |||
| 1838 | Window drag_window; | 1838 | Window drag_window; |
| 1839 | XSetWindowAttributes attrs; | 1839 | XSetWindowAttributes attrs; |
| 1840 | Display *temp_display; | 1840 | Display *temp_display; |
| 1841 | xErrorHandler old_handler; | 1841 | Emacs_XErrorHandler old_handler; |
| 1842 | xIOErrorHandler old_io_handler; | 1842 | Emacs_XIOErrorHandler old_io_handler; |
| 1843 | 1843 | ||
| 1844 | /* These are volatile because GCC mistakenly warns about them being | 1844 | /* These are volatile because GCC mistakenly warns about them being |
| 1845 | clobbered by longjmp. */ | 1845 | clobbered by longjmp. */ |
| @@ -23168,7 +23168,7 @@ x_connection_closed (Display *dpy, const char *error_message, bool ioerror) | |||
| 23168 | struct x_display_info *dpyinfo; | 23168 | struct x_display_info *dpyinfo; |
| 23169 | Lisp_Object frame, tail; | 23169 | Lisp_Object frame, tail; |
| 23170 | specpdl_ref idx = SPECPDL_INDEX (); | 23170 | specpdl_ref idx = SPECPDL_INDEX (); |
| 23171 | xIOErrorHandler io_error_handler; | 23171 | Emacs_XIOErrorHandler io_error_handler; |
| 23172 | xm_drop_start_message dmsg; | 23172 | xm_drop_start_message dmsg; |
| 23173 | struct frame *f; | 23173 | struct frame *f; |
| 23174 | 23174 | ||