1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-07 05:30:30 +00:00

Switch typedefs to usings.

This commit is contained in:
Thomas Harte 2025-01-03 21:35:34 -05:00
parent 88b5f6b148
commit c5bffc38f4
5 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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>(

View File

@ -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,

View File

@ -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;

View File

@ -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.