mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-09 11:21:06 +02:00
Update to v106r81 release.
byuu says: First 32 instructions implemented in the TLCS900H disassembler. Only 992 to go! I removed the use of anonymous namespaces in nall. It was something I rarely used, because it rarely did what I wanted. I updated all nested namespaces to use C++17-style namespace Foo::Bar {} syntax instead of classic C++-style namespace Foo { namespace Bar {}}. I updated ruby::Video::acquire() to return a struct, so we can use C++17 structured bindings. Long term, I want to get away from all functions that take references for output only. Even though C++ botched structured bindings by not allowing you to bind to existing variables, it's even worse to have function calls that take arguments by reference and then write to them. From the caller side, you can't tell the value is being written, nor that the value passed in doesn't matter, which is terrible.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct CRC16 : Hash {
|
||||
using Hash::input;
|
||||
@@ -52,4 +52,4 @@ private:
|
||||
uint16_t checksum = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct CRC32 : Hash {
|
||||
using Hash::input;
|
||||
@@ -52,4 +52,4 @@ private:
|
||||
uint32_t checksum = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct CRC64 : Hash {
|
||||
using Hash::input;
|
||||
@@ -52,4 +52,4 @@ private:
|
||||
uint64_t checksum = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@
|
||||
Name(const string& data) : Name() { input(data); } \
|
||||
using Hash::input; \
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct Hash {
|
||||
virtual auto reset() -> void = 0;
|
||||
@@ -44,4 +44,4 @@ struct Hash {
|
||||
}
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct SHA224 : Hash {
|
||||
using Hash::input;
|
||||
@@ -103,4 +103,4 @@ private:
|
||||
uint64_t length = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct SHA256 : Hash {
|
||||
using Hash::input;
|
||||
@@ -103,4 +103,4 @@ private:
|
||||
uint64_t length = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct SHA384 : Hash {
|
||||
using Hash::input;
|
||||
@@ -116,4 +116,4 @@ private:
|
||||
uint128_t length = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <nall/hash/hash.hpp>
|
||||
|
||||
namespace nall { namespace Hash {
|
||||
namespace nall::Hash {
|
||||
|
||||
struct SHA512 : Hash {
|
||||
using Hash::input;
|
||||
@@ -116,4 +116,4 @@ private:
|
||||
uint128_t length = 0;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user