Commit 97d0b0a3 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot

Make Block.h compile with c++ compilers

parent 1132602f
Pipeline #15242 failed with stages
in 459 minutes and 10 seconds
......@@ -84,10 +84,18 @@
// freely modified.
#if !defined(CMINUSMINUS)
struct NonmovingSegmentInfo {
StgWord8 log_block_size;
StgWord16 next_free_snap;
};
typedef struct bdescr_ {
StgPtr start; // [READ ONLY] start addr of memory
union {
StgPtr free; // First free byte of memory.
// allocGroup() sets this to the value of start.
......@@ -100,10 +108,7 @@ typedef struct bdescr_ {
// indicate that a block is unallocated.
//
// Unused by the non-moving allocator.
struct NonmovingSegmentInfo {
StgWord8 log_block_size;
StgWord16 next_free_snap;
} nonmoving_segment;
struct NonmovingSegmentInfo nonmoving_segment;
};
struct bdescr_ *link; // used for chaining blocks together
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment