]> git.sur5r.net Git - cc65/blobdiff - src/common/scopedefs.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / scopedefs.h
index 7732a4652f746bbac8bddec8a1fd86c2fad14380..31e493f2b0964116ea5a737ba21b170d91949da4 100644 (file)
@@ -1,6 +1,6 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                symdefs.h                                 */
+/*                                 symdefs.h                                 */
 /*                                                                           */
 /*               Scope definitions for the bin65 binary utils                */
 /*                                                                           */
@@ -39,7 +39,7 @@
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 #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 {
     SCOPE_GLOBAL,                       /* Global level */
     SCOPE_FILE,                         /* File level */
-    SCOPE_PROC,                         /* .PROC */
-    SCOPE_SCOPE,                        /* .SCOPE */
+    SCOPE_SCOPE,                        /* .SCOPE/.PROC */
     SCOPE_HAS_DATA = SCOPE_SCOPE,       /* Last scope that contains data */
     SCOPE_STRUCT,                       /* .STRUCT/.UNION */
     SCOPE_ENUM,                         /* .ENUM */
@@ -69,6 +76,3 @@ enum {
 /* End of scopedefs.h */
 
 #endif
-
-
-