summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2019-08-25 13:39:06 +1000
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2019-08-25 13:39:06 +1000
commit7031c31c00eb947993fa2b7a6157b6778812a9dd (patch)
treed03b64b1489aba2d0f1e82b8744bb11d677138a7 /src/osd
parent792fc52cdc9a35e4e5fcba0ea7869fe26f966625 (diff)
srcclean (nw)
I'm assuming atronic.cpp was supposed to be Windows-1252 with Euro currency symbol encoding. Everyone please use UTF-8 for source files.
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/debugger/debuggdbstub.cpp46
-rw-r--r--src/osd/windows/window.h8
2 files changed, 27 insertions, 27 deletions
diff --git a/src/osd/modules/debugger/debuggdbstub.cpp b/src/osd/modules/debugger/debuggdbstub.cpp
index c521bd0d463..1787d3857a6 100644
--- a/src/osd/modules/debugger/debuggdbstub.cpp
+++ b/src/osd/modules/debugger/debuggdbstub.cpp
@@ -1037,35 +1037,35 @@ void debug_gdbstub::handle_packet(void)
//-------------------------------------------------------------------------
#define BYTESWAP_64(x) ((((x) << 56) & 0xFF00000000000000) \
- | (((x) << 40) & 0x00FF000000000000) \
- | (((x) << 24) & 0x0000FF0000000000) \
- | (((x) << 8) & 0x000000FF00000000) \
- | (((x) >> 8) & 0x00000000FF000000) \
- | (((x) >> 24) & 0x0000000000FF0000) \
- | (((x) >> 40) & 0x000000000000FF00) \
- | (((x) >> 56) & 0x00000000000000FF))
+ | (((x) << 40) & 0x00FF000000000000) \
+ | (((x) << 24) & 0x0000FF0000000000) \
+ | (((x) << 8) & 0x000000FF00000000) \
+ | (((x) >> 8) & 0x00000000FF000000) \
+ | (((x) >> 24) & 0x0000000000FF0000) \
+ | (((x) >> 40) & 0x000000000000FF00) \
+ | (((x) >> 56) & 0x00000000000000FF))
#define BYTESWAP_32(x) ((((x) << 24) & 0xFF000000) \
- | (((x) << 8) & 0x00FF0000) \
- | (((x) >> 8) & 0x0000FF00) \
- | (((x) >> 24) & 0x000000FF))
+ | (((x) << 8) & 0x00FF0000) \
+ | (((x) >> 8) & 0x0000FF00) \
+ | (((x) >> 24) & 0x000000FF))
#define BYTESWAP_16(x) ((((x) << 8) & 0xFF00) \
- | (((x) >> 8) & 0x00FF))
+ | (((x) >> 8) & 0x00FF))
//-------------------------------------------------------------------------
std::string debug_gdbstub::get_register_string(int gdb_regnum)
{
const gdb_register &reg = m_gdb_registers[gdb_regnum];
const char *fmt = (reg.gdb_bitsize == 64) ? "%016" PRIx64
- : (reg.gdb_bitsize == 32) ? "%08" PRIx64
- : (reg.gdb_bitsize == 16) ? "%04" PRIx64
- : "%02" PRIx64;
+ : (reg.gdb_bitsize == 32) ? "%08" PRIx64
+ : (reg.gdb_bitsize == 16) ? "%04" PRIx64
+ : "%02" PRIx64;
uint64_t value = m_state->state_int(reg.state_index);
if ( !m_is_be )
{
value = (reg.gdb_bitsize == 64) ? BYTESWAP_64(value)
- : (reg.gdb_bitsize == 32) ? BYTESWAP_32(value)
- : (reg.gdb_bitsize == 16) ? BYTESWAP_16(value)
- : value;
+ : (reg.gdb_bitsize == 32) ? BYTESWAP_32(value)
+ : (reg.gdb_bitsize == 16) ? BYTESWAP_16(value)
+ : value;
}
return string_format(fmt, value);
}
@@ -1075,18 +1075,18 @@ bool debug_gdbstub::parse_register_string(uint64_t *pvalue, const char *buf, int
{
const gdb_register &reg = m_gdb_registers[gdb_regnum];
const char *fmt = (reg.gdb_bitsize == 64) ? "%016" PRIx64
- : (reg.gdb_bitsize == 32) ? "%08" PRIx64
- : (reg.gdb_bitsize == 16) ? "%04" PRIx64
- : "%02" PRIx64;
+ : (reg.gdb_bitsize == 32) ? "%08" PRIx64
+ : (reg.gdb_bitsize == 16) ? "%04" PRIx64
+ : "%02" PRIx64;
uint64_t value;
if ( sscanf(buf, fmt, &value) != 1 )
return false;
if ( !m_is_be )
{
value = (reg.gdb_bitsize == 64) ? BYTESWAP_64(value)
- : (reg.gdb_bitsize == 32) ? BYTESWAP_32(value)
- : (reg.gdb_bitsize == 16) ? BYTESWAP_16(value)
- : value;
+ : (reg.gdb_bitsize == 32) ? BYTESWAP_32(value)
+ : (reg.gdb_bitsize == 16) ? BYTESWAP_16(value)
+ : value;
}
*pvalue = value;
return true;
diff --git a/src/osd/windows/window.h b/src/osd/windows/window.h
index 3e9838ba396..b04e35aa110 100644
--- a/src/osd/windows/window.h
+++ b/src/osd/windows/window.h
@@ -44,9 +44,9 @@
enum class win_window_focus
{
- NONE, // neither this window nor this thread have focus
- THREAD, // a window in this thread has focus
- WINDOW // this window has focus directly
+ NONE, // neither this window nor this thread have focus
+ THREAD, // a window in this thread has focus
+ WINDOW // this window has focus directly
};
@@ -154,7 +154,7 @@ private:
#endif
running_machine & m_machine;
- bool m_attached_mode;
+ bool m_attached_mode;
};
struct osd_draw_callbacks