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:
Tim Allen
2019-01-16 11:46:42 +11:00
parent 25145f59cc
commit 559a6585ef
94 changed files with 371 additions and 224 deletions

View File

@@ -3,7 +3,7 @@
//BML v1.0 parser
//revision 0.04
namespace nall { namespace BML {
namespace nall::BML {
//metadata is used to store nesting level
@@ -186,4 +186,4 @@ inline auto serialize(const Markup::Node& node, string_view spacing = {}, uint d
return result;
}
}}
}

View File

@@ -1,6 +1,6 @@
#pragma once
namespace nall { namespace Markup {
namespace nall::Markup {
auto ManagedNode::_evaluate(string query) const -> bool {
if(!query) return true;
@@ -134,4 +134,4 @@ auto ManagedNode::_create(const string& path) -> Node {
return _children.right();
}
}}
}

View File

@@ -1,6 +1,6 @@
#pragma once
namespace nall { namespace Markup {
namespace nall::Markup {
struct Node;
struct ManagedNode;
@@ -136,4 +136,4 @@ protected:
SharedNode shared;
};
}}
}

View File

@@ -3,7 +3,7 @@
//XML v1.0 subset parser
//revision 0.04
namespace nall { namespace XML {
namespace nall::XML {
//metadata:
// 0 = element
@@ -214,4 +214,4 @@ inline auto unserialize(const string& markup) -> Markup::SharedNode {
return node;
}
}}
}