diff options
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 |
commit | 8179a84458204a5e767446fcf7d10f032a40fd0c (patch) | |
tree | 16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/lib/util | |
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/lib/util')
-rw-r--r-- | src/lib/util/chdcd.cpp | 2 | ||||
-rw-r--r-- | src/lib/util/coretmpl.h | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/util/chdcd.cpp b/src/lib/util/chdcd.cpp index f6176cd4cd9..b8d5eb80539 100644 --- a/src/lib/util/chdcd.cpp +++ b/src/lib/util/chdcd.cpp @@ -416,7 +416,7 @@ uint32_t read_uint32(FILE *infile) uint64_t read_uint64(FILE *infile) { - uint64_t res0 = U64(0), res1 = U64(0); + uint64_t res0(0), res1(0); uint64_t res; unsigned char buffer[8]; diff --git a/src/lib/util/coretmpl.h b/src/lib/util/coretmpl.h index 86f242422ac..5c29d97f89f 100644 --- a/src/lib/util/coretmpl.h +++ b/src/lib/util/coretmpl.h @@ -12,6 +12,7 @@ #pragma once +#include "osdcomm.h" #include "osdcore.h" #include "corealloc.h" @@ -354,6 +355,17 @@ private: namespace util { +using osd::u8; +using osd::u16; +using osd::u32; +using osd::u64; + +using osd::s8; +using osd::s16; +using osd::s32; +using osd::s64; + + // wraps an existing sequence of values template<typename T> class contiguous_sequence_wrapper |