Mercurial > emacs
comparison src/dispnew.c @ 1650:60a49bc9673a
* dispnew.c: Remove dyked-out copy of safe_bcopy.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 06 Dec 1992 22:16:01 +0000 |
parents | 732a88db381f |
children | a688543448e7 |
comparison
equal
deleted
inserted
replaced
1649:c3225b867171 | 1650:60a49bc9673a |
---|---|
514 (endt + (to - from)) - to, which is endt - from. */ | 514 (endt + (to - from)) - to, which is endt - from. */ |
515 bcopy (from, to, endt - from); | 515 bcopy (from, to, endt - from); |
516 } | 516 } |
517 } | 517 } |
518 } | 518 } |
519 | |
520 #if 0 | |
521 void | |
522 safe_bcopy (from, to, size) | |
523 char *from, *to; | |
524 int size; | |
525 { | |
526 register char *endf; | |
527 register char *endt; | |
528 | |
529 if (size == 0) | |
530 return; | |
531 | |
532 /* If destination is higher in memory, and overlaps source zone, | |
533 copy from the end. */ | |
534 if (from < to && from + size > to) | |
535 { | |
536 endf = from + size; | |
537 endt = to + size; | |
538 | |
539 do | |
540 *--endt = *--endf; | |
541 while (endf != from); | |
542 | |
543 return; | |
544 } | |
545 | |
546 bcopy (from, to, size); | |
547 } | |
548 #endif | |
549 | 519 |
550 /* Rotate a vector of SIZE bytes right, by DISTANCE bytes. | 520 /* Rotate a vector of SIZE bytes right, by DISTANCE bytes. |
551 DISTANCE may be negative. */ | 521 DISTANCE may be negative. */ |
552 | 522 |
553 static void | 523 static void |