From 8179a84458204a5e767446fcf7d10f032a40fd0c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 19 Nov 2016 05:35:54 +1100 Subject: Introduce u8/u16/u32/u64/s8/s16/s32/s64 * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names --- src/emu/debug/debugcon.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/emu/debug/debugcon.cpp') diff --git a/src/emu/debug/debugcon.cpp b/src/emu/debug/debugcon.cpp index b0a7e1dd2a4..8cd565cbfa1 100644 --- a/src/emu/debug/debugcon.cpp +++ b/src/emu/debug/debugcon.cpp @@ -165,12 +165,12 @@ CMDERR debugger_console::internal_execute_command(bool execute, int params, char return CMDERR_NONE; /* the first parameter has the command and the real first parameter; separate them */ - for (p = param[0]; *p && isspace((uint8_t)*p); p++) { } - for (command = p; *p && !isspace((uint8_t)*p); p++) { } + for (p = param[0]; *p && isspace(u8(*p)); p++) { } + for (command = p; *p && !isspace(u8(*p)); p++) { } if (*p != 0) { *p++ = 0; - for ( ; *p && isspace((uint8_t)*p); p++) { } + for ( ; *p && isspace(u8(*p)); p++) { } if (*p != 0) param[0] = p; else @@ -271,7 +271,7 @@ CMDERR debugger_console::internal_parse_command(const char *original_command, bo case '+': if (parendex == 0 && paramcount == 1 && p[1] == '+') isexpr = true; *p = c; break; case '=': if (parendex == 0 && paramcount == 1) isexpr = true; *p = c; break; case 0: foundend = true; break; - default: *p = tolower((uint8_t)c); break; + default: *p = tolower(u8(c)); break; } } } @@ -290,7 +290,7 @@ CMDERR debugger_console::internal_parse_command(const char *original_command, bo command_start = params[0]; /* allow for "do" commands */ - if (tolower((uint8_t)command_start[0] == 'd') && tolower((uint8_t)command_start[1] == 'o') && isspace((uint8_t)command_start[2])) + if (tolower(u8(command_start[0])) == 'd' && tolower(u8(command_start[1])) == 'o' && isspace(u8(command_start[2]))) { isexpr = true; command_start += 3; @@ -301,7 +301,7 @@ CMDERR debugger_console::internal_parse_command(const char *original_command, bo { try { - uint64_t expresult; + u64 expresult; parsed_expression expression(m_machine.debugger().cpu().get_visible_symtable(), command_start, &expresult); } catch (expression_error &err) @@ -368,7 +368,7 @@ CMDERR debugger_console::validate_command(const char *command) register_command - register a command handler -------------------------------------------------*/ -void debugger_console::register_command(const char *command, uint32_t flags, int ref, int minparams, int maxparams, std::function handler) +void debugger_console::register_command(const char *command, u32 flags, int ref, int minparams, int maxparams, std::function handler) { assert_always(m_machine.phase() == MACHINE_PHASE_INIT, "Can only call register_command() at init time!"); assert_always((m_machine.debug_flags & DEBUG_FLAG_ENABLED) != 0, "Cannot call register_command() when debugger is not running"); -- cgit v1.2.3