Refactor Compact.c:

Authored by osa1 on Oct 7 2019, 6:12 AM.

Description

Refactor Compact.c:

  • Remove forward declarations
  • Introduce UNTAG_PTR and GET_PTR_TAG for dealing with pointer tags without having to cast arguments to StgClosure*
  • Remove dead code
  • Use W_ instead of StgWord
  • Use P_ instead of StgPtr

(cherry picked from commit b521e8b698cc415684fbc0ea5ddfab51077cb144)

Details

Committed
bgamariDec 9 2019, 7:53 PM
Parents
rGHCa530ebd53891: testsuite: Add tests for #16893
Branches
Unknown
Tags
Unknown
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.