diff options
| author | Karl Heuer | 1994-10-04 16:05:05 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 16:05:05 +0000 |
| commit | 6e344130f07109e870f71f4b8b057aa1e357d21f (patch) | |
| tree | 58314dd92c34d895debf9f055fff4a1ad0ea3a49 /src | |
| parent | bb9e9bed5a19a98f5ac2cbba451cf53e73743267 (diff) | |
| download | emacs-6e344130f07109e870f71f4b8b057aa1e357d21f.tar.gz emacs-6e344130f07109e870f71f4b8b057aa1e357d21f.zip | |
(synkey, access_keymap, store_in_keymap, Faccessible_keymaps,
Fkey_description, ascii_sequence_p, Fwhere_is_internal, describe_vector):
Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/keymap.c b/src/keymap.c index a750972575c..e64a3264164 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -164,7 +164,7 @@ synkey (frommap, fromchar, tomap, tochar) | |||
| 164 | { | 164 | { |
| 165 | Lisp_Object v, c; | 165 | Lisp_Object v, c; |
| 166 | XSETVECTOR (v, tomap); | 166 | XSETVECTOR (v, tomap); |
| 167 | XFASTINT (c) = tochar; | 167 | XSETFASTINT (c, tochar); |
| 168 | frommap->contents[fromchar] = Fcons (v, c); | 168 | frommap->contents[fromchar] = Fcons (v, c); |
| 169 | } | 169 | } |
| 170 | #endif /* 0 */ | 170 | #endif /* 0 */ |
| @@ -284,7 +284,7 @@ access_keymap (map, idx, t_ok, noinherit) | |||
| 284 | else if (INTEGERP (idx)) | 284 | else if (INTEGERP (idx)) |
| 285 | /* Clobber the high bits that can be present on a machine | 285 | /* Clobber the high bits that can be present on a machine |
| 286 | with more than 24 bits of integer. */ | 286 | with more than 24 bits of integer. */ |
| 287 | XFASTINT (idx) = XINT (idx) & (CHAR_META | (CHAR_META - 1)); | 287 | XSETFASTINT (idx, XINT (idx) & (CHAR_META | (CHAR_META - 1))); |
| 288 | 288 | ||
| 289 | { | 289 | { |
| 290 | Lisp_Object tail; | 290 | Lisp_Object tail; |
| @@ -414,7 +414,7 @@ store_in_keymap (keymap, idx, def) | |||
| 414 | else if (INTEGERP (idx)) | 414 | else if (INTEGERP (idx)) |
| 415 | /* Clobber the high bits that can be present on a machine | 415 | /* Clobber the high bits that can be present on a machine |
| 416 | with more than 24 bits of integer. */ | 416 | with more than 24 bits of integer. */ |
| 417 | XFASTINT (idx) = XINT (idx) & (CHAR_META | (CHAR_META - 1)); | 417 | XSETFASTINT (idx, XINT (idx) & (CHAR_META | (CHAR_META - 1))); |
| 418 | 418 | ||
| 419 | /* Scan the keymap for a binding of idx. */ | 419 | /* Scan the keymap for a binding of idx. */ |
| 420 | { | 420 | { |
| @@ -1317,7 +1317,7 @@ then the value includes only maps for prefixes that start with PREFIX.") | |||
| 1317 | for (i = 0; i < prefixlen; i++) | 1317 | for (i = 0; i < prefixlen; i++) |
| 1318 | { | 1318 | { |
| 1319 | Lisp_Object i1; | 1319 | Lisp_Object i1; |
| 1320 | XFASTINT (i1) = i; | 1320 | XSETFASTINT (i1, i); |
| 1321 | if (!EQ (Faref (thisseq, i1), Faref (prefix, i1))) | 1321 | if (!EQ (Faref (thisseq, i1), Faref (prefix, i1))) |
| 1322 | break; | 1322 | break; |
| 1323 | } | 1323 | } |
| @@ -1352,11 +1352,11 @@ spaces are put between sequence elements, etc.") | |||
| 1352 | for (i = 0; i < XSTRING (keys)->size; i++) | 1352 | for (i = 0; i < XSTRING (keys)->size; i++) |
| 1353 | { | 1353 | { |
| 1354 | if (XSTRING (keys)->data[i] & 0x80) | 1354 | if (XSTRING (keys)->data[i] & 0x80) |
| 1355 | XFASTINT (XVECTOR (vector)->contents[i]) | 1355 | XSETFASTINT (XVECTOR (vector)->contents[i], |
| 1356 | = meta_modifier | (XSTRING (keys)->data[i] & ~0x80); | 1356 | meta_modifier | (XSTRING (keys)->data[i] & ~0x80)); |
| 1357 | else | 1357 | else |
| 1358 | XFASTINT (XVECTOR (vector)->contents[i]) | 1358 | XSETFASTINT (XVECTOR (vector)->contents[i], |
| 1359 | = XSTRING (keys)->data[i]; | 1359 | XSTRING (keys)->data[i]); |
| 1360 | } | 1360 | } |
| 1361 | keys = vector; | 1361 | keys = vector; |
| 1362 | } | 1362 | } |
| @@ -1568,14 +1568,15 @@ static int | |||
| 1568 | ascii_sequence_p (seq) | 1568 | ascii_sequence_p (seq) |
| 1569 | Lisp_Object seq; | 1569 | Lisp_Object seq; |
| 1570 | { | 1570 | { |
| 1571 | Lisp_Object i; | 1571 | int i; |
| 1572 | int len = XINT (Flength (seq)); | 1572 | int len = XINT (Flength (seq)); |
| 1573 | 1573 | ||
| 1574 | for (XFASTINT (i) = 0; XFASTINT (i) < len; XFASTINT (i)++) | 1574 | for (i = 0; i < len; i++) |
| 1575 | { | 1575 | { |
| 1576 | Lisp_Object elt; | 1576 | Lisp_Object ii, elt; |
| 1577 | 1577 | ||
| 1578 | elt = Faref (seq, i); | 1578 | XSETFASTINT (ii, i); |
| 1579 | elt = Faref (seq, ii); | ||
| 1579 | 1580 | ||
| 1580 | if (!INTEGERP (elt) | 1581 | if (!INTEGERP (elt) |
| 1581 | || (XUINT (elt) & ~CHAR_META) >= 0x80) | 1582 | || (XUINT (elt) & ~CHAR_META) >= 0x80) |
| @@ -1692,7 +1693,7 @@ indirect definition itself.") | |||
| 1692 | { | 1693 | { |
| 1693 | /* In a vector, look at each element. */ | 1694 | /* In a vector, look at each element. */ |
| 1694 | binding = XVECTOR (elt)->contents[i]; | 1695 | binding = XVECTOR (elt)->contents[i]; |
| 1695 | XFASTINT (key) = i; | 1696 | XSETFASTINT (key, i); |
| 1696 | i++; | 1697 | i++; |
| 1697 | 1698 | ||
| 1698 | /* If we've just finished scanning a vector, advance map | 1699 | /* If we've just finished scanning a vector, advance map |
| @@ -2307,7 +2308,7 @@ describe_vector (vector, elt_prefix, elt_describer, partial, shadow) | |||
| 2307 | insert1 (elt_prefix); | 2308 | insert1 (elt_prefix); |
| 2308 | 2309 | ||
| 2309 | /* Get the string to describe the character I, and print it. */ | 2310 | /* Get the string to describe the character I, and print it. */ |
| 2310 | XFASTINT (dummy) = i; | 2311 | XSETFASTINT (dummy, i); |
| 2311 | 2312 | ||
| 2312 | /* THIS gets the string to describe the character DUMMY. */ | 2313 | /* THIS gets the string to describe the character DUMMY. */ |
| 2313 | this = Fsingle_key_description (dummy); | 2314 | this = Fsingle_key_description (dummy); |
| @@ -2328,7 +2329,7 @@ describe_vector (vector, elt_prefix, elt_describer, partial, shadow) | |||
| 2328 | if (!NILP (elt_prefix)) | 2329 | if (!NILP (elt_prefix)) |
| 2329 | insert1 (elt_prefix); | 2330 | insert1 (elt_prefix); |
| 2330 | 2331 | ||
| 2331 | XFASTINT (dummy) = i; | 2332 | XSETFASTINT (dummy, i); |
| 2332 | insert1 (Fsingle_key_description (dummy)); | 2333 | insert1 (Fsingle_key_description (dummy)); |
| 2333 | } | 2334 | } |
| 2334 | 2335 | ||