]> git.sur5r.net Git - cc65/blobdiff - src/common/cddefs.h
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / cddefs.h
index 5d8717931fb229c665a3f98eb2f7013797aa508e..c44ec7b523473f61fd52ee8a6caf487b3cee9b55 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                cddefs.h                                  */
+/*                                 cddefs.h                                  */
 /*                                                                           */
-/*             Definitions for module constructor/destructors               */
+/*              Definitions for module constructor/destructors               */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 2000-2004 Ullrich von Bassewitz                                       */
+/*               Roemerstrasse 52                                            */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 /* ConDes types. Count is only 7 because we want to encode 0..count in 3 bits */
-#define        CD_TYPE_COUNT   7               /* Number of table types */
-#define CD_TYPE_MIN            0               /* Minimum numeric type value */
-#define CD_TYPE_MAX            6               /* Maximum numeric type value */
+#define CD_TYPE_COUNT   7               /* Number of table types */
+#define CD_TYPE_MIN     0               /* Minimum numeric type value */
+#define CD_TYPE_MAX     6               /* Maximum numeric type value */
 
 /* ConDes priorities, zero is no valid priority and used to mark an empty
- * (missing) decl for this type throughout the code.
- */
-#define CD_PRIO_NONE   0               /* No priority (no decl) */
-#define CD_PRIO_MIN            1               /* Lowest priority */
-#define CD_PRIO_DEF    7               /* Default priority */
-#define CD_PRIO_MAX    32              /* Highest priority */
+** (missing) decl for this type throughout the code.
+*/
+#define CD_PRIO_NONE    0               /* No priority (no decl) */
+#define CD_PRIO_MIN     1               /* Lowest priority */
+#define CD_PRIO_DEF     7               /* Default priority */
+#define CD_PRIO_MAX     32              /* Highest priority */
 
 /* Predefined types */
-#define CD_TYPE_CON    0               /* Constructor */
-#define CD_TYPE_DES    1               /* Destructor */
+#define CD_TYPE_CON     0               /* Constructor */
+#define CD_TYPE_DES     1               /* Destructor */
+#define CD_TYPE_INT     2               /* Interruptor */
 
 /* When part of an export in an object file, type and priority are encoded in
- * one byte. In this case, the following macros access the fields:
- */
-#define CD_GET_TYPE(v)                 (((v) >> 5) & 0x07)
-#define CD_GET_PRIO(v)         (((v) & 0x1F) + 1)
+** one byte. In this case, the following macros access the fields:
+*/
+#define CD_GET_TYPE(v)          (((v) >> 5) & 0x07)
+#define CD_GET_PRIO(v)          (((v) & 0x1F) + 1)
 
 /* Macro to build the byte value: */
-#define CD_BUILD(type,prio)            ((((type) & 0x07) << 5) | (((prio) - 1) & 0x1F))
+#define CD_BUILD(type,prio)     ((((type) & 0x07) << 5) | (((prio) - 1) & 0x1F))
 
 
 
 /* End of cddefs.h */
 
 #endif
-
-
-