From 58eaf2a88a93f3ce1acff0e48e47596cc39d74d8 Mon Sep 17 00:00:00 2001 From: Kevin Tew Date: Wed, 5 Nov 2008 21:04:02 +0000 Subject: [PATCH] Move page type constants to an enum svn: r12247 --- src/mzscheme/gc2/newgc.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/mzscheme/gc2/newgc.c b/src/mzscheme/gc2/newgc.c index f968100351..020e31c604 100644 --- a/src/mzscheme/gc2/newgc.c +++ b/src/mzscheme/gc2/newgc.c @@ -265,15 +265,16 @@ struct mpage { #define MAX_OBJECT_SIZEW (gcBYTES_TO_WORDS(APAGE_SIZE) - PREFIX_WSIZE - 3) /* the page type constants */ -#define PAGE_TAGGED 0 -#define PAGE_ATOMIC 1 -#define PAGE_ARRAY 2 -#define PAGE_TARRAY 3 -#define PAGE_XTAGGED 4 -#define PAGE_BIG 5 - -/* the number of page types. */ -#define PAGE_TYPES 6 +enum { + PAGE_TAGGED = 0, + PAGE_ATOMIC = 1, + PAGE_ARRAY = 2, + PAGE_TARRAY = 3, + PAGE_XTAGGED = 4, + PAGE_BIG = 5, + /* the number of page types. */ + PAGE_TYPES = 6, +}; /* the page map makes a nice mapping from addresses to pages, allowing fairly fast lookup. this is useful. */