-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define a macro for constructing heap block from index
(refactoring) Issue #627 (bdwgc). This is to reduce code duplication between GC_next_block, GC_prev_block and GC_apply_to_all_blocks. * headers.c (HBLK_ADDR): New macro. * headers.c (GC_apply_to_all_blocks): Move j local variable to the nested block; rename index_p local variable to bi; use ADDR() for hhdr. * headers.c (GC_apply_to_all_blocks, ): Use HBLK_ADDR(). * headers.c (GC_next_block): Change while() outermost loop to for().
- Loading branch information
Showing
1 changed file
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters