aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorPaul Eggert2012-09-04 10:34:54 -0700
committerPaul Eggert2012-09-04 10:34:54 -0700
commit1088b9226e7dac7314dab52ef0696a5f540900cd (patch)
treebfae7d26f4b411f5c6a0ef33cfcd0c526619ee56 /src/widget.c
parent30934d334e8a67c8992d910428758d5b93e0f04f (diff)
downloademacs-1088b9226e7dac7314dab52ef0696a5f540900cd.tar.gz
emacs-1088b9226e7dac7314dab52ef0696a5f540900cd.zip
Simplify redefinition of 'abort' (Bug#12316).
Do not try to redefine the 'abort' function. Instead, redo the code so that it calls 'emacs_abort' rather than 'abort'. This removes the need for the NO_ABORT configure-time macro and makes it easier to change the abort code to do a backtrace. * configure.ac (NO_ABRT): Remove. * admin/CPP-DEFINES (NO_ABORT): Remove. * nt/inc/ms-w32.h (w32_abort) [HAVE_NTGUI]: Remove. * src/.gdbinit: Just stop at emacs_abort, not at w32_abort or abort. * src/emacs.c (abort) [!DOS_NT && !NO_ABORT]: Remove; sysdep.c's emacs_abort now takes its place. * src/lisp.h (emacs_abort): New decl. All calls from Emacs code to 'abort' changed to use 'emacs_abort'. * src/msdos.c (dos_abort) [defined abort]: Remove; not used. (abort) [!defined abort]: Rename to ... (emacs_abort): ... new name. * src/sysdep.c (emacs_abort) [!HAVE_NTGUI]: New function, taking the place of the old 'abort' in emacs.c. * src/w32.c, src/w32fns.c (abort): Do not #undef. * src/w32.c (emacs_abort): Rename from w32_abort.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget.c b/src/widget.c
index ea9bdb61b13..9eaf6d1df6a 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -226,7 +226,7 @@ get_wm_shell (Widget w)
226static void 226static void
227mark_shell_size_user_specified (Widget wmshell) 227mark_shell_size_user_specified (Widget wmshell)
228{ 228{
229 if (! XtIsWMShell (wmshell)) abort (); 229 if (! XtIsWMShell (wmshell)) emacs_abort ();
230 /* This is kind of sleazy, but I can't see how else to tell it to make it 230 /* This is kind of sleazy, but I can't see how else to tell it to make it
231 mark the WM_SIZE_HINTS size as user specified when appropriate. */ 231 mark the WM_SIZE_HINTS size as user specified when appropriate. */
232 ((WMShellWidget) wmshell)->wm.size_hints.flags |= USSize; 232 ((WMShellWidget) wmshell)->wm.size_hints.flags |= USSize;
@@ -290,7 +290,7 @@ set_frame_size (EmacsFrame ew)
290 Widget wmshell = get_wm_shell ((Widget) ew); 290 Widget wmshell = get_wm_shell ((Widget) ew);
291 /* Each Emacs shell is now independent and top-level. */ 291 /* Each Emacs shell is now independent and top-level. */
292 292
293 if (! XtIsSubclass (wmshell, shellWidgetClass)) abort (); 293 if (! XtIsSubclass (wmshell, shellWidgetClass)) emacs_abort ();
294 294
295 /* We don't need this for the moment. The geometry is computed in 295 /* We don't need this for the moment. The geometry is computed in
296 xfns.c. */ 296 xfns.c. */
@@ -677,8 +677,8 @@ EmacsFrameDestroy (Widget widget)
677 EmacsFrame ew = (EmacsFrame) widget; 677 EmacsFrame ew = (EmacsFrame) widget;
678 struct frame* s = ew->emacs_frame.frame; 678 struct frame* s = ew->emacs_frame.frame;
679 679
680 if (! s) abort (); 680 if (! s) emacs_abort ();
681 if (! s->output_data.x) abort (); 681 if (! s->output_data.x) emacs_abort ();
682 682
683 BLOCK_INPUT; 683 BLOCK_INPUT;
684 x_free_gcs (s); 684 x_free_gcs (s);