[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.
This commit is contained in:
Michael Brown
2009-03-13 02:10:21 +00:00
parent 1266d7902b
commit 3c68ff99ea
26 changed files with 185 additions and 130 deletions
+2 -2
View File
@@ -45,9 +45,9 @@ struct gdb_transport {
void ( * send ) ( const char *buf, size_t len );
};
#define GDB_TRANSPORTS "gdb_transports"
#define GDB_TRANSPORTS __table ( struct gdb_transport, "gdb_transports" )
#define __gdb_transport __table ( struct gdb_transport, GDB_TRANSPORTS, 01 )
#define __gdb_transport __table_entry ( GDB_TRANSPORTS, 01 )
/**
* Look up GDB transport by name