From 9b8da82d72fa41452c6640fce33a80414f48cfca Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 13 Jan 2009 09:55:24 -0800 Subject: Tweak code to make it easier to compile with gcc. + Use macros to name symbols with non-ASCII characters. + Make some variables unsigned, because they are compared against unsigned values. + Fix a few void* pointers to be MLink*. R=rsc DELTA=94 (44 added, 3 deleted, 47 changed) OCL=22303 CL=22638 --- src/runtime/malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/malloc.h') diff --git a/src/runtime/malloc.h b/src/runtime/malloc.h index 5d2916af12..8b4d76919a 100644 --- a/src/runtime/malloc.h +++ b/src/runtime/malloc.h @@ -208,7 +208,7 @@ struct MSpan MSpan *prev; // in a span linked list PageID start; // starting page number uintptr npages; // number of pages in span - void *freelist; // list of free objects + MLink *freelist; // list of free objects uint32 ref; // number of allocated objects in this span uint32 sizeclass; // size class uint32 state; // MSpanInUse or MSpanFree -- cgit v1.3