diff options
author | Michael Brown | 2009-03-13 01:13:38 +0100 |
---|---|---|
committer | Michael Brown | 2009-03-13 03:10:21 +0100 |
commit | 3c68ff99eaff6e0d615349bdc85ea12ad8345284 (patch) | |
tree | 969a335fe8d1685203f7bfe90d07868dcbc1fe34 /src/include/console.h | |
parent | [tables] Redefine methods for accessing linker tables (diff) | |
download | ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.tar.gz ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.tar.xz ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.zip |
[tables] Incorporate table data type information into table definition
Eliminate the potential for mismatches between table names and the
table entry data type by incorporating the data type into the
definition of the table, rather than specifying it explicitly in each
table accessor method.
Diffstat (limited to 'src/include/console.h')
-rw-r--r-- | src/include/console.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/console.h b/src/include/console.h index fd36cd5b..93c53adb 100644 --- a/src/include/console.h +++ b/src/include/console.h @@ -86,7 +86,7 @@ struct console_driver { }; /** Console driver table */ -#define CONSOLES "consoles" +#define CONSOLES __table ( struct console_driver, "consoles" ) /** * Mark a <tt> struct console_driver </tt> as being part of the @@ -105,7 +105,7 @@ struct console_driver { * @endcode * */ -#define __console_driver __table ( struct console_driver, CONSOLES, 01 ) +#define __console_driver __table_entry ( CONSOLES, 01 ) /* Function prototypes */ |