aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2001-11-03 21:30:34 +0000
committerKen Raeburn2001-11-03 21:30:34 +0000
commitf5df591a708e96e7516c7210205ec66b2915796e (patch)
tree8497afdb706686912795d76b083f568538b24b07 /src
parent57ddb5d0013b5230b3d7c2c333a2c345652ee967 (diff)
downloademacs-f5df591a708e96e7516c7210205ec66b2915796e.tar.gz
emacs-f5df591a708e96e7516c7210205ec66b2915796e.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c
index 9d35ce074c9..99111a06c7d 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -833,8 +833,8 @@ Return t if file exists.")
833 833
834 GCPRO1 (file); 834 GCPRO1 (file);
835 lispstream = Fcons (Qnil, Qnil); 835 lispstream = Fcons (Qnil, Qnil);
836 XSETFASTINT (XCAR (lispstream), (EMACS_UINT)stream >> 16); 836 XSETCARFASTINT (lispstream, (EMACS_UINT)stream >> 16);
837 XSETFASTINT (XCDR (lispstream), (EMACS_UINT)stream & 0xffff); 837 XSETCDRFASTINT (lispstream, (EMACS_UINT)stream & 0xffff);
838 record_unwind_protect (load_unwind, lispstream); 838 record_unwind_protect (load_unwind, lispstream);
839 record_unwind_protect (load_descriptor_unwind, load_descriptor_list); 839 record_unwind_protect (load_descriptor_unwind, load_descriptor_list);
840 specbind (Qload_file_name, found); 840 specbind (Qload_file_name, found);
@@ -966,7 +966,7 @@ openp (path, str, suffixes, storeptr, exec_only)
966 966
967 for (tail = suffixes; CONSP (tail); tail = XCDR (tail)) 967 for (tail = suffixes; CONSP (tail); tail = XCDR (tail))
968 { 968 {
969 CHECK_STRING (XCAR (tail)); 969 CHECK_STRING_CAR (tail);
970 max_suffix_len = max (max_suffix_len, 970 max_suffix_len = max (max_suffix_len,
971 STRING_BYTES (XSTRING (XCAR (tail)))); 971 STRING_BYTES (XSTRING (XCAR (tail))));
972 } 972 }
@@ -2761,7 +2761,7 @@ read_list (flag, readcharfun)
2761 { 2761 {
2762 GCPRO2 (val, tail); 2762 GCPRO2 (val, tail);
2763 if (!NILP (tail)) 2763 if (!NILP (tail))
2764 XCDR (tail) = read0 (readcharfun); 2764 XSETCDR (tail, read0 (readcharfun));
2765 else 2765 else
2766 val = read0 (readcharfun); 2766 val = read0 (readcharfun);
2767 read1 (readcharfun, &ch, 0); 2767 read1 (readcharfun, &ch, 0);
@@ -2854,7 +2854,7 @@ read_list (flag, readcharfun)
2854 ? pure_cons (elt, Qnil) 2854 ? pure_cons (elt, Qnil)
2855 : Fcons (elt, Qnil)); 2855 : Fcons (elt, Qnil));
2856 if (!NILP (tail)) 2856 if (!NILP (tail))
2857 XCDR (tail) = tem; 2857 XSETCDR (tail, tem);
2858 else 2858 else
2859 val = tem; 2859 val = tem;
2860 tail = tem; 2860 tail = tem;