changeset 108299:a5fcd78ad3eb

Don't use XSYMBOL (foo)->value. msdos.c (dos_set_window_size): w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)' instead of `XSYMBOL (foo)->value'.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 07 May 2010 16:51:16 +0300
parents ffcbc15ab440
children 9fb2b015a2b4
files src/ChangeLog src/msdos.c src/w16select.c
diffstat 3 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri May 07 15:57:24 2010 +0300
+++ b/src/ChangeLog	Fri May 07 16:51:16 2010 +0300
@@ -1,5 +1,9 @@
 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
 
+	* msdos.c (dos_set_window_size):
+	* w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
+	instead of `XSYMBOL (foo)->value'.
+
 	Fix the MS-DOS build, broken by autoconfiscation.
 
 	* Makefile.in: Don't use Make-style comments past the "start of
--- a/src/msdos.c	Fri May 07 15:57:24 2010 +0300
+++ b/src/msdos.c	Fri May 07 16:51:16 2010 +0300
@@ -528,8 +528,7 @@
   /* If the user specified a special video mode for these dimensions,
      use that mode.  */
   sprintf (video_name, "screen-dimensions-%dx%d", *rows, *cols);
-  video_mode = XSYMBOL (Fintern_soft (build_string (video_name),
-				      Qnil))-> value;
+  video_mode = Fsymbol_value (Fintern_soft (build_string (video_name), Qnil));
 
   if (INTEGERP (video_mode)
       && (video_mode_value = XINT (video_mode)) > 0)
--- a/src/w16select.c	Fri May 07 15:57:24 2010 +0300
+++ b/src/w16select.c	Fri May 07 16:51:16 2010 +0300
@@ -685,8 +685,8 @@
      into the clipboard if we run under Windows, so we cannot check
      the clipboard alone.)  */
   if ((EQ (selection, Qnil) || EQ (selection, QPRIMARY))
-      && ! NILP (SYMBOL_VALUE (Fintern_soft (build_string ("kill-ring"),
-					     Qnil))))
+      && ! NILP (Fsymbol_value (Fintern_soft (build_string ("kill-ring"),
+					      Qnil))))
     return Qt;
 
   if (EQ (selection, QCLIPBOARD))