Mercurial > emacs
changeset 9305:ac077e2a75f1
(Fstring_to_char, Fpoint, Fbufsize, Fpoint_min, Fpoint_max, Ffollowing_char,
Fprevious_char, Fchar_after, Ftranslate_region, Fnarrow_to_region,
save_restriction_save): Don't use XFASTINT as an lvalue.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 04 Oct 1994 15:49:29 +0000 |
parents | 1fbc46670cb0 |
children | ac852c183fa1 |
files | src/editfns.c |
diffstat | 1 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Tue Oct 04 15:48:16 1994 +0000 +++ b/src/editfns.c Tue Oct 04 15:49:29 1994 +0000 @@ -128,9 +128,9 @@ p = XSTRING (str); if (p->size) - XFASTINT (val) = ((unsigned char *) p->data)[0]; + XSETFASTINT (val, ((unsigned char *) p->data)[0]); else - XFASTINT (val) = 0; + XSETFASTINT (val, 0); return val; } @@ -150,7 +150,7 @@ () { Lisp_Object temp; - XFASTINT (temp) = point; + XSETFASTINT (temp, point); return temp; } @@ -357,7 +357,7 @@ () { Lisp_Object temp; - XFASTINT (temp) = Z - BEG; + XSETFASTINT (temp, Z - BEG); return temp; } @@ -367,7 +367,7 @@ () { Lisp_Object temp; - XFASTINT (temp) = BEGV; + XSETFASTINT (temp, BEGV); return temp; } @@ -386,7 +386,7 @@ () { Lisp_Object temp; - XFASTINT (temp) = ZV; + XSETFASTINT (temp, ZV); return temp; } @@ -406,9 +406,9 @@ { Lisp_Object temp; if (point >= ZV) - XFASTINT (temp) = 0; + XSETFASTINT (temp, 0); else - XFASTINT (temp) = FETCH_CHAR (point); + XSETFASTINT (temp, FETCH_CHAR (point)); return temp; } @@ -419,9 +419,9 @@ { Lisp_Object temp; if (point <= BEGV) - XFASTINT (temp) = 0; + XSETFASTINT (temp, 0); else - XFASTINT (temp) = FETCH_CHAR (point - 1); + XSETFASTINT (temp, FETCH_CHAR (point - 1)); return temp; } @@ -479,7 +479,7 @@ n = XINT (pos); if (n < BEGV || n >= ZV) return Qnil; - XFASTINT (val) = FETCH_CHAR (n); + XSETFASTINT (val, FETCH_CHAR (n)); return val; } @@ -1305,7 +1305,7 @@ } } - XFASTINT (z) = cnt; + XSETFASTINT (z, cnt); return (z); } @@ -1355,7 +1355,7 @@ { i = XFASTINT (b); b = e; - XFASTINT (e) = i; + XSETFASTINT (e, i); } if (!(BEG <= XINT (b) && XINT (b) <= XINT (e) && XINT (e) <= Z)) @@ -1380,8 +1380,8 @@ /* Note: I tried using markers here, but it does not win because insertion at the end of the saved region does not advance mh and is considered "outside" the saved region. */ - XFASTINT (bottom) = BEGV - BEG; - XFASTINT (top) = Z - ZV; + XSETFASTINT (bottom, BEGV - BEG); + XSETFASTINT (top, Z - ZV); return Fcons (Fcurrent_buffer (), Fcons (bottom, top)); }