diff options
Diffstat (limited to 'lib/system.h')
| -rw-r--r-- | lib/system.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/system.h b/lib/system.h index 8e32c3a1..3f9f0af5 100644 --- a/lib/system.h +++ b/lib/system.h @@ -49,6 +49,7 @@ #ifndef LIB_SYSTEM_H #define LIB_SYSTEM_H 1 +#include <argp.h> #include <stddef.h> #include <stdint.h> #include <endian.h> @@ -107,4 +108,37 @@ extern int crc32_file (int fd, uint32_t *resp); extern char *__cxa_demangle (const char *mangled_name, char *output_buffer, size_t *length, int *status); + + +/* Color handling. */ + +/* Command line parser. */ +extern const struct argp color_argp; + +/* Coloring mode. */ +enum color_enum + { + color_never = 0, + color_always, + color_auto + } __attribute__ ((packed)); +extern enum color_enum color_mode; + +/* Colors to use for the various components. */ +extern char *color_address; +extern char *color_bytes; +extern char *color_mnemonic; +extern char *color_operand1; +extern char *color_operand2; +extern char *color_operand3; +extern char *color_label; +extern char *color_undef; +extern char *color_undef_tls; +extern char *color_undef_weak; +extern char *color_symbol; +extern char *color_tls; +extern char *color_weak; + +extern const char color_off[]; + #endif /* system.h */ |
