1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 23:31:55 -08:00

* emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING

instead of XSYMBOL and name field.
This commit is contained in:
Ken Raeburn 2002-05-20 08:05:32 +00:00
parent f6620ee2b0
commit 6a5161bbd1

View file

@ -1975,8 +1975,8 @@ shut_down_emacs (sig, no_x, stuff)
#ifdef HAVE_X_WINDOWS
/* It's not safe to call intern here. Maybe we are crashing. */
if (!noninteractive && SYMBOLP (Vwindow_system)
&& XSYMBOL (Vwindow_system)->name->size == 1
&& XSYMBOL (Vwindow_system)->name->data[0] == 'x'
&& XSTRING (SYMBOL_NAME (Vwindow_system))->size == 1
&& XSTRING (SYMBOL_NAME (Vwindow_system))->data[0] == 'x'
&& ! no_x)
Fx_close_current_connection ();
#endif /* HAVE_X_WINDOWS */