aboutsummaryrefslogtreecommitdiffstats
path: root/src/fontset.c
diff options
context:
space:
mode:
authorKen Raeburn2001-10-16 09:09:51 +0000
committerKen Raeburn2001-10-16 09:09:51 +0000
commitf3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f (patch)
tree43eb51ff0ca4af1705387403827ef210098f2da8 /src/fontset.c
parent018ba359ab456f6a43f3acea0c15df616aa0ad02 (diff)
downloademacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.tar.gz
emacs-f3fbd1553534bb85c75baf891c0ca9aaa4c3fa6f.zip
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 5e359ddef8f..983222f4bb7 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -994,8 +994,8 @@ name of a font, REGSITRY is a registry name of a font.")
994 { 994 {
995 /* CH should be (FROM . TO) where FROM and TO are non-generic 995 /* CH should be (FROM . TO) where FROM and TO are non-generic
996 characters. */ 996 characters. */
997 CHECK_NUMBER (XCAR (character), 1); 997 CHECK_NUMBER_CAR (character, 1);
998 CHECK_NUMBER (XCDR (character), 1); 998 CHECK_NUMBER_CDR (character, 1);
999 from = XINT (XCAR (character)); 999 from = XINT (XCAR (character));
1000 to = XINT (XCDR (character)); 1000 to = XINT (XCDR (character));
1001 if (!char_valid_p (from, 0) || !char_valid_p (to, 0)) 1001 if (!char_valid_p (from, 0) || !char_valid_p (to, 0))
@@ -1214,7 +1214,7 @@ accumulate_font_info (arg, character, elt)
1214 { 1214 {
1215 if (this_charset == CHAR_CHARSET (XINT (XCAR (last_char)))) 1215 if (this_charset == CHAR_CHARSET (XINT (XCAR (last_char))))
1216 { 1216 {
1217 XCDR (last_char) = character; 1217 XSETCDR (last_char, character);
1218 return; 1218 return;
1219 } 1219 }
1220 } 1220 }
@@ -1222,12 +1222,12 @@ accumulate_font_info (arg, character, elt)
1222 return; 1222 return;
1223 else if (this_charset == CHAR_CHARSET (XINT (last_char))) 1223 else if (this_charset == CHAR_CHARSET (XINT (last_char)))
1224 { 1224 {
1225 XCAR (XCAR (last)) = Fcons (last_char, character); 1225 XSETCAR (XCAR (last), Fcons (last_char, character));
1226 return; 1226 return;
1227 } 1227 }
1228 } 1228 }
1229 XCDR (last) = Fcons (Fcons (character, Fcons (elt, Qnil)), Qnil); 1229 XSETCDR (last, Fcons (Fcons (character, Fcons (elt, Qnil)), Qnil));
1230 XCAR (arg) = XCDR (last); 1230 XSETCAR (arg, XCDR (last));
1231} 1231}
1232 1232
1233 1233
@@ -1306,7 +1306,7 @@ If FRAME is omitted, it defaults to the currently selected frame.")
1306 c = XINT (XCAR (elt)); 1306 c = XINT (XCAR (elt));
1307 SPLIT_CHAR (c, charset, c1, c2); 1307 SPLIT_CHAR (c, charset, c1, c2);
1308 if (c1 == 0) 1308 if (c1 == 0)
1309 XCAR (elt) = CHARSET_SYMBOL (charset); 1309 XSETCAR (elt, CHARSET_SYMBOL (charset));
1310 } 1310 }
1311 else 1311 else
1312 c = XINT (XCAR (XCAR (elt))); 1312 c = XINT (XCAR (XCAR (elt)));
@@ -1323,7 +1323,7 @@ If FRAME is omitted, it defaults to the currently selected frame.")
1323 { 1323 {
1324 font = build_string (face->font_name); 1324 font = build_string (face->font_name);
1325 if (NILP (Fmember (font, XCDR (XCDR (elt))))) 1325 if (NILP (Fmember (font, XCDR (XCDR (elt)))))
1326 XCDR (XCDR (elt)) = Fcons (font, XCDR (XCDR (elt))); 1326 XSETCDR (XCDR (elt), Fcons (font, XCDR (XCDR (elt))));
1327 } 1327 }
1328 } 1328 }
1329 } 1329 }