Removed (pretty inconsistently used) tab chars from source code base.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* cddefs.h */
|
||||
/* cddefs.h */
|
||||
/* */
|
||||
/* Definitions for module constructor/destructors */
|
||||
/* Definitions for module constructor/destructors */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -39,37 +39,37 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* 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 */
|
||||
#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)
|
||||
#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))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user