From 49b66ebd2b06ffe22d684c0e548660df030bae33 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 7 Aug 2011 18:47:21 +0000 Subject: [PATCH] New flag bit that tells if a scope has a label. git-svn-id: svn://svn.cc65.org/cc65/trunk@5131 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/common/scopedefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/scopedefs.h b/src/common/scopedefs.h index b36b788d6..d1a0cec46 100644 --- a/src/common/scopedefs.h +++ b/src/common/scopedefs.h @@ -51,6 +51,14 @@ #define SCOPE_HAS_SIZE(x) (((x) & SCOPE_MASK_SIZE) == SCOPE_SIZE) +/* Does the scope has a label? */ +#define SCOPE_UNLABELED 0x00U /* Scope has no label */ +#define SCOPE_LABELED 0x02U /* Scope has a label */ +#define SCOPE_MASK_LABEL 0x02U /* Label size */ + +#define SCOPE_HAS_LABEL(x) (((x) & SCOPE_MASK_LABEL) == SCOPE_LABELED) + + /* Scope types */ enum { -- 2.39.5