mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-07 05:30:30 +00:00
Switch typedef
s to using
s.
This commit is contained in:
parent
88b5f6b148
commit
c5bffc38f4
@ -66,7 +66,7 @@ struct Target {
|
||||
Media media;
|
||||
float confidence = 0.5f;
|
||||
};
|
||||
typedef std::vector<std::unique_ptr<Target>> TargetList;
|
||||
using TargetList = std::vector<std::unique_ptr<Target>>;
|
||||
|
||||
/*!
|
||||
Attempts, through any available means, to return a list of potential targets for the file with the given name.
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
namespace Time {
|
||||
|
||||
typedef double Seconds;
|
||||
typedef int64_t Nanos;
|
||||
using Seconds = double;
|
||||
using Nanos = int64_t;
|
||||
|
||||
inline Nanos nanos_now() {
|
||||
return std::chrono::duration_cast<std::chrono::nanoseconds>(
|
||||
|
@ -27,7 +27,7 @@ namespace ROMMachine {
|
||||
return a vector of unique_ptrs that either contain the contents of the ROM from @c names that corresponds by
|
||||
index, or else are @c nullptr.
|
||||
*/
|
||||
typedef std::function<ROM::Map(const ROM::Request &)> ROMFetcher;
|
||||
using ROMFetcher = std::function<ROM::Map(const ROM::Request &)>;
|
||||
|
||||
enum class Error {
|
||||
MissingROMs,
|
||||
|
@ -20,7 +20,7 @@ namespace SCSI {
|
||||
|
||||
/// Provides the current state of the SCSI bus, being comprised of a bitwise combination
|
||||
/// of zero or more of the @c BusState flags defined below.
|
||||
typedef int BusState;
|
||||
using BusState = int;
|
||||
|
||||
constexpr BusState DefaultBusState = 0;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
namespace TargetPlatform {
|
||||
|
||||
typedef int IntType;
|
||||
using IntType = int;
|
||||
|
||||
// The below is somehwat overspecified because some of the file formats already supported by this
|
||||
// emulator can self-specify platforms beyond those the emulator otherwise implements.
|
||||
|
Loading…
x
Reference in New Issue
Block a user