summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcon.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-11-19 05:35:54 +1100
committer Vas Crabb <vas@vastheman.com>2016-11-19 05:38:48 +1100
commit8179a84458204a5e767446fcf7d10f032a40fd0c (patch)
tree16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/emu/debug/debugcon.cpp
parent1b489fe83034072149fb0637b20c7ba57dc72a7a (diff)
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
Diffstat (limited to 'src/emu/debug/debugcon.cpp')
-rw-r--r--src/emu/debug/debugcon.cpp14
1 files changed, 7 insertions, 7 deletions
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<void(int, int, const char **)> handler)
+void debugger_console::register_command(const char *command, u32 flags, int ref, int minparams, int maxparams, std::function<void(int, int, const char **)> 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");