diff options
author | Michael Brown | 2010-11-21 16:58:30 +0100 |
---|---|---|
committer | Michael Brown | 2010-11-21 21:38:26 +0100 |
commit | 216fd0a5cf3f017a19f5ad0006011637dcfa9a5b (patch) | |
tree | 4e599beb5adbcfa9241c9eeade12f0ef2efcccd3 /src/include/ipxe/errfile.h | |
parent | [autoboot] Add "netboot" command (diff) | |
download | ipxe-216fd0a5cf3f017a19f5ad0006011637dcfa9a5b.tar.gz ipxe-216fd0a5cf3f017a19f5ad0006011637dcfa9a5b.tar.xz ipxe-216fd0a5cf3f017a19f5ad0006011637dcfa9a5b.zip |
[parseopt] Add generic option-parsing library
Command implementations tend to include a substantial amount of common
boilerplate code revolving around the parsing of command-line options
and arguments. This increases the size cost of each command.
Introduce an option-parsing library that abstracts out the common
operations involved in command implementations. This enables the size
of each individual command to be reduced, and also enhances
consistency between commands.
Total size of the library is 704 bytes, to be amortised across all
command implementations.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/errfile.h')
-rw-r--r-- | src/include/ipxe/errfile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 5f0f1661..7b415928 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -59,6 +59,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define ERRFILE_acpi ( ERRFILE_CORE | 0x00130000 ) #define ERRFILE_null_sanboot ( ERRFILE_CORE | 0x00140000 ) #define ERRFILE_edd ( ERRFILE_CORE | 0x00150000 ) +#define ERRFILE_parseopt ( ERRFILE_CORE | 0x00160000 ) #define ERRFILE_eisa ( ERRFILE_DRIVER | 0x00000000 ) #define ERRFILE_isa ( ERRFILE_DRIVER | 0x00010000 ) |