diff options
author | 2016-11-19 05:35:54 +1100 | |
---|---|---|
committer | 2016-11-19 05:38:48 +1100 | |
commit | 8179a84458204a5e767446fcf7d10f032a40fd0c (patch) | |
tree | 16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/emu/dipty.cpp | |
parent | 1b489fe83034072149fb0637b20c7ba57dc72a7a (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/dipty.cpp')
-rw-r--r-- | src/emu/dipty.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/dipty.cpp b/src/emu/dipty.cpp index 7fab9b53a32..2759b27078a 100644 --- a/src/emu/dipty.cpp +++ b/src/emu/dipty.cpp @@ -51,18 +51,18 @@ bool device_pty_interface::is_open() const return m_opened; } -ssize_t device_pty_interface::read(uint8_t *rx_chars , size_t count) const +ssize_t device_pty_interface::read(u8 *rx_chars , size_t count) const { - std::uint32_t actual_bytes; + u32 actual_bytes; if (m_opened && m_pty_master->read(rx_chars, 0, count, actual_bytes) == osd_file::error::NONE) return actual_bytes; else return -1; } -void device_pty_interface::write(uint8_t tx_char) const +void device_pty_interface::write(u8 tx_char) const { - std::uint32_t actual_bytes; + u32 actual_bytes; if (m_opened) m_pty_master->write(&tx_char, 0, 1, actual_bytes); } |