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/gpxe/process.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/gpxe/process.h')
| -rw-r--r-- | src/include/gpxe/process.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/gpxe/process.h b/src/include/gpxe/process.h index 705c9f676..42e4dfa6a 100644 --- a/src/include/gpxe/process.h +++ b/src/include/gpxe/process.h @@ -64,7 +64,7 @@ process_init ( struct process *process, } /** Permanent process table */ -#define PERMANENT_PROCESSES "processes" +#define PERMANENT_PROCESSES __table ( struct process, "processes" ) /** * Declare a permanent process @@ -72,7 +72,6 @@ process_init ( struct process *process, * Permanent processes will be automatically added to the process list * at initialisation time. */ -#define __permanent_process \ - __table ( struct process, PERMANENT_PROCESSES, 01 ) +#define __permanent_process __table_entry ( PERMANENT_PROCESSES, 01 ) #endif /* _GPXE_PROCESS_H */ |
