diff options
| author | Karl Heuer | 1994-10-04 15:49:29 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 15:49:29 +0000 |
| commit | 55561c637ecc4e3093f00377da167dd06f6d8675 (patch) | |
| tree | 7ea2d785d2b536515451826081cff4cae65d5692 | |
| parent | 2ee7863a14b300f75d873a0962810466d09a6456 (diff) | |
| download | emacs-55561c637ecc4e3093f00377da167dd06f6d8675.tar.gz emacs-55561c637ecc4e3093f00377da167dd06f6d8675.zip | |
(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.
| -rw-r--r-- | src/editfns.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/editfns.c b/src/editfns.c index 3ffbc2658bb..5131fa17438 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -128,9 +128,9 @@ DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, | |||
| 128 | 128 | ||
| 129 | p = XSTRING (str); | 129 | p = XSTRING (str); |
| 130 | if (p->size) | 130 | if (p->size) |
| 131 | XFASTINT (val) = ((unsigned char *) p->data)[0]; | 131 | XSETFASTINT (val, ((unsigned char *) p->data)[0]); |
| 132 | else | 132 | else |
| 133 | XFASTINT (val) = 0; | 133 | XSETFASTINT (val, 0); |
| 134 | return val; | 134 | return val; |
| 135 | } | 135 | } |
| 136 | 136 | ||
| @@ -150,7 +150,7 @@ Beginning of buffer is position (point-min)") | |||
| 150 | () | 150 | () |
| 151 | { | 151 | { |
| 152 | Lisp_Object temp; | 152 | Lisp_Object temp; |
| 153 | XFASTINT (temp) = point; | 153 | XSETFASTINT (temp, point); |
| 154 | return temp; | 154 | return temp; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| @@ -357,7 +357,7 @@ DEFUN ("buffer-size", Fbufsize, Sbufsize, 0, 0, 0, | |||
| 357 | () | 357 | () |
| 358 | { | 358 | { |
| 359 | Lisp_Object temp; | 359 | Lisp_Object temp; |
| 360 | XFASTINT (temp) = Z - BEG; | 360 | XSETFASTINT (temp, Z - BEG); |
| 361 | return temp; | 361 | return temp; |
| 362 | } | 362 | } |
| 363 | 363 | ||
| @@ -367,7 +367,7 @@ This is 1, unless narrowing (a buffer restriction) is in effect.") | |||
| 367 | () | 367 | () |
| 368 | { | 368 | { |
| 369 | Lisp_Object temp; | 369 | Lisp_Object temp; |
| 370 | XFASTINT (temp) = BEGV; | 370 | XSETFASTINT (temp, BEGV); |
| 371 | return temp; | 371 | return temp; |
| 372 | } | 372 | } |
| 373 | 373 | ||
| @@ -386,7 +386,7 @@ is in effect, in which case it is less.") | |||
| 386 | () | 386 | () |
| 387 | { | 387 | { |
| 388 | Lisp_Object temp; | 388 | Lisp_Object temp; |
| 389 | XFASTINT (temp) = ZV; | 389 | XSETFASTINT (temp, ZV); |
| 390 | return temp; | 390 | return temp; |
| 391 | } | 391 | } |
| 392 | 392 | ||
| @@ -406,9 +406,9 @@ At the end of the buffer or accessible region, return 0.") | |||
| 406 | { | 406 | { |
| 407 | Lisp_Object temp; | 407 | Lisp_Object temp; |
| 408 | if (point >= ZV) | 408 | if (point >= ZV) |
| 409 | XFASTINT (temp) = 0; | 409 | XSETFASTINT (temp, 0); |
| 410 | else | 410 | else |
| 411 | XFASTINT (temp) = FETCH_CHAR (point); | 411 | XSETFASTINT (temp, FETCH_CHAR (point)); |
| 412 | return temp; | 412 | return temp; |
| 413 | } | 413 | } |
| 414 | 414 | ||
| @@ -419,9 +419,9 @@ At the beginning of the buffer or accessible region, return 0.") | |||
| 419 | { | 419 | { |
| 420 | Lisp_Object temp; | 420 | Lisp_Object temp; |
| 421 | if (point <= BEGV) | 421 | if (point <= BEGV) |
| 422 | XFASTINT (temp) = 0; | 422 | XSETFASTINT (temp, 0); |
| 423 | else | 423 | else |
| 424 | XFASTINT (temp) = FETCH_CHAR (point - 1); | 424 | XSETFASTINT (temp, FETCH_CHAR (point - 1)); |
| 425 | return temp; | 425 | return temp; |
| 426 | } | 426 | } |
| 427 | 427 | ||
| @@ -479,7 +479,7 @@ If POS is out of range, the value is nil.") | |||
| 479 | n = XINT (pos); | 479 | n = XINT (pos); |
| 480 | if (n < BEGV || n >= ZV) return Qnil; | 480 | if (n < BEGV || n >= ZV) return Qnil; |
| 481 | 481 | ||
| 482 | XFASTINT (val) = FETCH_CHAR (n); | 482 | XSETFASTINT (val, FETCH_CHAR (n)); |
| 483 | return val; | 483 | return val; |
| 484 | } | 484 | } |
| 485 | 485 | ||
| @@ -1305,7 +1305,7 @@ for the character with code N. Returns the number of characters changed.") | |||
| 1305 | } | 1305 | } |
| 1306 | } | 1306 | } |
| 1307 | 1307 | ||
| 1308 | XFASTINT (z) = cnt; | 1308 | XSETFASTINT (z, cnt); |
| 1309 | return (z); | 1309 | return (z); |
| 1310 | } | 1310 | } |
| 1311 | 1311 | ||
| @@ -1355,7 +1355,7 @@ or markers) bounding the text that should remain visible.") | |||
| 1355 | { | 1355 | { |
| 1356 | i = XFASTINT (b); | 1356 | i = XFASTINT (b); |
| 1357 | b = e; | 1357 | b = e; |
| 1358 | XFASTINT (e) = i; | 1358 | XSETFASTINT (e, i); |
| 1359 | } | 1359 | } |
| 1360 | 1360 | ||
| 1361 | if (!(BEG <= XINT (b) && XINT (b) <= XINT (e) && XINT (e) <= Z)) | 1361 | if (!(BEG <= XINT (b) && XINT (b) <= XINT (e) && XINT (e) <= Z)) |
| @@ -1380,8 +1380,8 @@ save_restriction_save () | |||
| 1380 | /* Note: I tried using markers here, but it does not win | 1380 | /* Note: I tried using markers here, but it does not win |
| 1381 | because insertion at the end of the saved region | 1381 | because insertion at the end of the saved region |
| 1382 | does not advance mh and is considered "outside" the saved region. */ | 1382 | does not advance mh and is considered "outside" the saved region. */ |
| 1383 | XFASTINT (bottom) = BEGV - BEG; | 1383 | XSETFASTINT (bottom, BEGV - BEG); |
| 1384 | XFASTINT (top) = Z - ZV; | 1384 | XSETFASTINT (top, Z - ZV); |
| 1385 | 1385 | ||
| 1386 | return Fcons (Fcurrent_buffer (), Fcons (bottom, top)); | 1386 | return Fcons (Fcurrent_buffer (), Fcons (bottom, top)); |
| 1387 | } | 1387 | } |