comparison src/ralloc.c @ 109501:c02e8765755d

Remove unused static functions. * alloc.c (free_float) * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse) * frame.c (delete_frame_handler) * ralloc.c (reorder_bloc) * w32menu.c (menubar_id_to_frame, add_left_right_boundary)
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 23 Jul 2010 19:50:14 +0200
parents 750db9f3e6d8
children 68ca98ae70fb
comparison
equal deleted inserted replaced
109500:3a9a140f18bb 109501:c02e8765755d
517 b = b->next; 517 b = b->next;
518 } 518 }
519 519
520 return 1; 520 return 1;
521 } 521 }
522
523 /* Reorder the bloc BLOC to go before bloc BEFORE in the doubly linked list.
524 This is necessary if we put the memory of space of BLOC
525 before that of BEFORE. */
526
527 static void
528 reorder_bloc (bloc_ptr bloc, bloc_ptr before)
529 {
530 bloc_ptr prev, next;
531
532 /* Splice BLOC out from where it is. */
533 prev = bloc->prev;
534 next = bloc->next;
535
536 if (prev)
537 prev->next = next;
538 if (next)
539 next->prev = prev;
540
541 /* Splice it in before BEFORE. */
542 prev = before->prev;
543
544 if (prev)
545 prev->next = bloc;
546 bloc->prev = prev;
547
548 before->prev = bloc;
549 bloc->next = before;
550 }
551 522
552 /* Update the records of which heaps contain which blocs, starting 523 /* Update the records of which heaps contain which blocs, starting
553 with heap HEAP and bloc BLOC. */ 524 with heap HEAP and bloc BLOC. */
554 525
555 static void 526 static void