set bitfield to union header.mark

This commit is contained in:
Yuichi Nishiwaki 2013-12-03 11:53:36 +09:00
parent b5b30de05a
commit 62f0a50faf
1 changed files with 3 additions and 3 deletions

View File

@ -2,15 +2,15 @@
#define GC_H__ #define GC_H__
enum pic_gc_mark { enum pic_gc_mark {
PIC_GC_MARK, PIC_GC_UNMARK = 0,
PIC_GC_UNMARK PIC_GC_MARK
}; };
union header { union header {
struct { struct {
union header *ptr; union header *ptr;
size_t size; size_t size;
enum pic_gc_mark mark; enum pic_gc_mark mark : 1;
} s; } s;
long alignment[2]; long alignment[2];
}; };