diff options
author | 2021-08-31 12:30:11 -0400 | |
---|---|---|
committer | 2021-08-31 12:30:11 -0400 | |
commit | ccaa00b3ed00d63b4781270c992e00b63811c85d (patch) | |
tree | 6b40a2b00ca27c61f0a6d5ddb5bab9f78fefcdec /src/tools/unidasm.cpp | |
parent | d7e65e3f42611b3fdd299aff1304dc4b786a571b (diff) |
Move endianness type into lib/util header
Diffstat (limited to 'src/tools/unidasm.cpp')
-rw-r--r-- | src/tools/unidasm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp index 5395bc6ae01..a78816f87c9 100644 --- a/src/tools/unidasm.cpp +++ b/src/tools/unidasm.cpp @@ -197,6 +197,7 @@ using util::BIT; #include "corefile.h" #include "corestr.h" #include "eminline.h" +#include "endianness.h" #include <algorithm> #include <cctype> @@ -334,12 +335,13 @@ struct nec_unidasm_t : nec_disassembler::config } nec_unidasm; -enum endianness { le, be }; +static constexpr auto le = util::endianness::little; +static constexpr auto be = util::endianness::big; struct dasm_table_entry { const char * name; - endianness endian; + util::endianness endian; int8_t pcshift; std::function<util::disasm_interface *()> alloc; }; |