summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devfind.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/devfind.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/devfind.cpp')
-rw-r--r--src/emu/devfind.cpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/src/emu/devfind.cpp b/src/emu/devfind.cpp
index 90daaa0a499..7eb309bbfd2 100644
--- a/src/emu/devfind.cpp
+++ b/src/emu/devfind.cpp
@@ -22,23 +22,23 @@ template class object_finder_base<memory_bank, true>;
template class object_finder_base<ioport_port, false>;
template class object_finder_base<ioport_port, true>;
-template class object_finder_base<uint8_t, false>;
-template class object_finder_base<uint8_t, true>;
-template class object_finder_base<uint16_t, false>;
-template class object_finder_base<uint16_t, true>;
-template class object_finder_base<uint32_t, false>;
-template class object_finder_base<uint32_t, true>;
-template class object_finder_base<uint64_t, false>;
-template class object_finder_base<uint64_t, true>;
-
-template class object_finder_base<int8_t, false>;
-template class object_finder_base<int8_t, true>;
-template class object_finder_base<int16_t, false>;
-template class object_finder_base<int16_t, true>;
-template class object_finder_base<int32_t, false>;
-template class object_finder_base<int32_t, true>;
-template class object_finder_base<int64_t, false>;
-template class object_finder_base<int64_t, true>;
+template class object_finder_base<u8, false>;
+template class object_finder_base<u8, true>;
+template class object_finder_base<u16, false>;
+template class object_finder_base<u16, true>;
+template class object_finder_base<u32, false>;
+template class object_finder_base<u32, true>;
+template class object_finder_base<u64, false>;
+template class object_finder_base<u64, true>;
+
+template class object_finder_base<s8, false>;
+template class object_finder_base<s8, true>;
+template class object_finder_base<s16, false>;
+template class object_finder_base<s16, true>;
+template class object_finder_base<s32, false>;
+template class object_finder_base<s32, true>;
+template class object_finder_base<s64, false>;
+template class object_finder_base<s64, true>;
template class memory_region_finder<false>;
template class memory_region_finder<true>;
@@ -49,41 +49,41 @@ template class memory_bank_finder<true>;
template class ioport_finder<false>;
template class ioport_finder<true>;
-template class region_ptr_finder<uint8_t, false>;
-template class region_ptr_finder<uint8_t, true>;
-template class region_ptr_finder<uint16_t, false>;
-template class region_ptr_finder<uint16_t, true>;
-template class region_ptr_finder<uint32_t, false>;
-template class region_ptr_finder<uint32_t, true>;
-template class region_ptr_finder<uint64_t, false>;
-template class region_ptr_finder<uint64_t, true>;
-
-template class region_ptr_finder<int8_t, false>;
-template class region_ptr_finder<int8_t, true>;
-template class region_ptr_finder<int16_t, false>;
-template class region_ptr_finder<int16_t, true>;
-template class region_ptr_finder<int32_t, false>;
-template class region_ptr_finder<int32_t, true>;
-template class region_ptr_finder<int64_t, false>;
-template class region_ptr_finder<int64_t, true>;
-
-template class shared_ptr_finder<uint8_t, false>;
-template class shared_ptr_finder<uint8_t, true>;
-template class shared_ptr_finder<uint16_t, false>;
-template class shared_ptr_finder<uint16_t, true>;
-template class shared_ptr_finder<uint32_t, false>;
-template class shared_ptr_finder<uint32_t, true>;
-template class shared_ptr_finder<uint64_t, false>;
-template class shared_ptr_finder<uint64_t, true>;
-
-template class shared_ptr_finder<int8_t, false>;
-template class shared_ptr_finder<int8_t, true>;
-template class shared_ptr_finder<int16_t, false>;
-template class shared_ptr_finder<int16_t, true>;
-template class shared_ptr_finder<int32_t, false>;
-template class shared_ptr_finder<int32_t, true>;
-template class shared_ptr_finder<int64_t, false>;
-template class shared_ptr_finder<int64_t, true>;
+template class region_ptr_finder<u8, false>;
+template class region_ptr_finder<u8, true>;
+template class region_ptr_finder<u16, false>;
+template class region_ptr_finder<u16, true>;
+template class region_ptr_finder<u32, false>;
+template class region_ptr_finder<u32, true>;
+template class region_ptr_finder<u64, false>;
+template class region_ptr_finder<u64, true>;
+
+template class region_ptr_finder<s8, false>;
+template class region_ptr_finder<s8, true>;
+template class region_ptr_finder<s16, false>;
+template class region_ptr_finder<s16, true>;
+template class region_ptr_finder<s32, false>;
+template class region_ptr_finder<s32, true>;
+template class region_ptr_finder<s64, false>;
+template class region_ptr_finder<s64, true>;
+
+template class shared_ptr_finder<u8, false>;
+template class shared_ptr_finder<u8, true>;
+template class shared_ptr_finder<u16, false>;
+template class shared_ptr_finder<u16, true>;
+template class shared_ptr_finder<u32, false>;
+template class shared_ptr_finder<u32, true>;
+template class shared_ptr_finder<u64, false>;
+template class shared_ptr_finder<u64, true>;
+
+template class shared_ptr_finder<s8, false>;
+template class shared_ptr_finder<s8, true>;
+template class shared_ptr_finder<s16, false>;
+template class shared_ptr_finder<s16, true>;
+template class shared_ptr_finder<s32, false>;
+template class shared_ptr_finder<s32, true>;
+template class shared_ptr_finder<s64, false>;
+template class shared_ptr_finder<s64, true>;
@@ -119,7 +119,7 @@ finder_base::~finder_base()
// find_memregion - find memory region
//-------------------------------------------------
-void *finder_base::find_memregion(uint8_t width, size_t &length, bool required) const
+void *finder_base::find_memregion(u8 width, size_t &length, bool required) const
{
// look up the region and return nullptr if not found
memory_region *const region = m_base.memregion(m_tag);
@@ -194,7 +194,7 @@ bool finder_base::validate_memregion(size_t bytes, bool required) const
// find_memshare - find memory share
//-------------------------------------------------
-void *finder_base::find_memshare(uint8_t width, size_t &bytes, bool required) const
+void *finder_base::find_memshare(u8 width, size_t &bytes, bool required) const
{
// look up the share and return nullptr if not found
memory_share *share = m_base.memshare(m_tag);