diff src/lread.c @ 40690:ba7239b8872e

(Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of treating XCAR and XCDR as lvalues. (openp): Use CHECK_STRING_CAR. (read_list): Use XSETCDR instead of treating XCDR as lvalue.
author Ken Raeburn <raeburn@raeburn.org>
date Sat, 03 Nov 2001 21:30:34 +0000
parents cdfd4d09b79a
children d57f74c55909
line wrap: on
line diff
--- a/src/lread.c	Sat Nov 03 21:29:35 2001 +0000
+++ b/src/lread.c	Sat Nov 03 21:30:34 2001 +0000
@@ -833,8 +833,8 @@
 
   GCPRO1 (file);
   lispstream = Fcons (Qnil, Qnil);
-  XSETFASTINT (XCAR (lispstream), (EMACS_UINT)stream >> 16);
-  XSETFASTINT (XCDR (lispstream), (EMACS_UINT)stream & 0xffff);
+  XSETCARFASTINT (lispstream, (EMACS_UINT)stream >> 16);
+  XSETCDRFASTINT (lispstream, (EMACS_UINT)stream & 0xffff);
   record_unwind_protect (load_unwind, lispstream);
   record_unwind_protect (load_descriptor_unwind, load_descriptor_list);
   specbind (Qload_file_name, found);
@@ -966,7 +966,7 @@
 
   for (tail = suffixes; CONSP (tail); tail = XCDR (tail))
     {
-      CHECK_STRING (XCAR (tail));
+      CHECK_STRING_CAR (tail);
       max_suffix_len = max (max_suffix_len,
 			    STRING_BYTES (XSTRING (XCAR (tail))));
     }
@@ -2761,7 +2761,7 @@
 	    {
 	      GCPRO2 (val, tail);
 	      if (!NILP (tail))
-		XCDR (tail) = read0 (readcharfun);
+		XSETCDR (tail, read0 (readcharfun));
 	      else
 		val = read0 (readcharfun);
 	      read1 (readcharfun, &ch, 0);
@@ -2854,7 +2854,7 @@
 	     ? pure_cons (elt, Qnil)
 	     : Fcons (elt, Qnil));
       if (!NILP (tail))
-	XCDR (tail) = tem;
+	XSETCDR (tail, tem);
       else
 	val = tem;
       tail = tem;