From 5c551446914ea65a56898a435b1251c5af1df306 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 30 Oct 2015 23:13:34 -0400 Subject: [PATCH] For const colors, use define instead of declarations --- include/cyclone/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 81dd121d..4cb0b5b8 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -91,8 +91,8 @@ typedef enum { STAGE_CLEAR_OR_MARKING // Constant colors are defined here. // The mark/clear colors are defined in the gc module because // the collector swaps their values as an optimization. -const int gc_color_red = 0; // Memory not to be GC'd, such as on the stack -const int gc_color_blue = 1; // Unallocated memory +#define gc_color_red 0 // Memory not to be GC'd, such as on the stack +#define gc_color_blue 1 // Unallocated memory /* Utility functions */ void **vpbuffer_realloc(void **buf, int *len);