Update to 20160106 OS X Preview for Developers release.

byuu says:

New update. Most of the work today went into eliminating hiro::Image
from all objects in all ports, replacing with nall::image. That took an
eternity.

Changelog:
- fixed crashing bug when loading games [thanks endrift!!]
- toggling "show status bar" option adjusts window geometry (not
  supposed to recenter the window, though)
- button sizes improved; icon-only button icons no longer being cut off
This commit is contained in:
Tim Allen
2016-01-07 19:14:33 +11:00
parent 4d193d7d94
commit 0b923489dd
308 changed files with 699 additions and 1326 deletions

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
/*****
adaptive allocator
@@ -119,5 +119,3 @@ auto string::_resize() -> void {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -88,5 +88,3 @@ auto string::_copy() -> char* {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
/*
small string optimization (SSO) allocator
@@ -91,5 +91,3 @@ auto string::operator=(string&& source) -> type& {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
/*
vector allocator
@@ -80,5 +80,3 @@ string::string() {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -15,5 +15,3 @@ auto string::real() const -> double {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -290,5 +290,3 @@ struct format : vector<string> {
};
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
//convert any (supported) type to a const char* without constructing a new nall::string
//this is used inside string{...} to build nall::string values
@@ -223,5 +223,3 @@ template<typename T> auto make_string(T value) -> stringify<T> {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -56,5 +56,3 @@ auto string::iendsWith(rstring source) const -> bool {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -51,5 +51,3 @@ auto string::transform(rstring from, rstring to) -> string& {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
//only allocators may access _data or modify _size and _capacity
//all other functions must use data(), size(), capacity()
@@ -54,5 +54,3 @@ auto string::length() const -> uint {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -28,5 +28,3 @@ auto string::datetime(time_t timestamp) -> string {
}
}
#endif

View File

@@ -1,7 +1,6 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
namespace Eval {
namespace nall { namespace Eval {
inline auto evaluateExpression(Node* node) -> string {
#define p(n) evaluateExpression(node->link[n])
@@ -144,7 +143,4 @@ inline auto real(const string& expression) -> maybe<long double> {
}
}
}
}
#endif
}}

View File

@@ -1,7 +1,6 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
namespace Eval {
namespace nall { namespace Eval {
inline auto isLiteral(const char*& s) -> bool {
char n = s[0];
@@ -97,7 +96,4 @@ inline auto literal(const char*& s) -> string {
throw "invalid literal";
}
}
}
#endif
}}

View File

@@ -1,7 +1,6 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
namespace Eval {
namespace nall { namespace Eval {
struct Node {
enum class Type : uint {
@@ -35,7 +34,4 @@ struct Node {
~Node() { for(auto& node : link) delete node; }
};
}
}
#endif
}}

View File

@@ -1,7 +1,6 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
namespace Eval {
namespace nall { namespace Eval {
inline auto whitespace(char n) -> bool {
return n == ' ' || n == '\t' || n == '\r' || n == '\n';
@@ -162,7 +161,4 @@ inline auto parse(const string& expression) -> Node* {
return result;
}
}
}
#endif
}}

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -24,5 +24,3 @@ auto string::findFrom(int offset, rstring source) const -> maybe<uint> { return
auto string::ifindFrom(int offset, rstring source) const -> maybe<uint> { return _find<1, 0>(offset, source); }
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -175,5 +175,3 @@ auto real(long double value) -> string {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -31,5 +31,3 @@ auto sha256(rstring self) -> string {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -71,5 +71,3 @@ auto lstring::strip() -> lstring& {
}
}
#endif

View File

@@ -1,10 +1,9 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
//BML v1.0 parser
//revision 0.04
namespace nall {
namespace BML {
namespace nall { namespace BML {
//metadata is used to store nesting level
@@ -187,7 +186,4 @@ inline auto serialize(const Markup::Node& node, uint depth = 0) -> string {
return result;
}
}
}
#endif
}}

View File

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

View File

@@ -1,7 +1,6 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
namespace Markup {
namespace nall { namespace Markup {
struct Node;
struct ManagedNode;
@@ -131,8 +130,7 @@ protected:
SharedNode shared;
};
}
}
}}
namespace nall {
@@ -141,5 +139,3 @@ inline range_t range(const Markup::Node& node) {
}
}
#endif

View File

@@ -1,10 +1,9 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
//XML v1.0 subset parser
//revision 0.04
namespace nall {
namespace XML {
namespace nall { namespace XML {
//metadata:
// 0 = element
@@ -215,7 +214,4 @@ inline auto unserialize(const string& markup) -> Markup::SharedNode {
return node;
}
}
}
#endif
}}

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -88,5 +88,3 @@ auto tokenize(lstring& list, const char* s, const char* p) -> bool {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -70,5 +70,3 @@ auto suffixname(rstring self) -> string {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -126,5 +126,3 @@ auto temppath() -> string {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -92,5 +92,3 @@ auto string::qreplace(rstring from, rstring to, long limit) -> string& { return
auto string::iqreplace(rstring from, rstring to, long limit) -> string& { return _replace<1, 1>(from, to, limit); }
};
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -39,5 +39,3 @@ auto string::qsplit(rstring on, long limit) const -> lstring { return lstring().
auto string::iqsplit(rstring on, long limit) const -> lstring { return lstring()._split<1, 1>(*this, on, limit); }
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
/* CSS Markup Language (CML) v1.0 parser
* revision 0.02
@@ -101,5 +101,3 @@ auto CML::parseDocument(const string& filedata, const string& pathname, uint dep
}
}}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
/* Document Markup Language (DML) v1.0 parser
* revision 0.03
@@ -265,5 +265,3 @@ auto DML::markup(const string& text) -> string {
}
}}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -100,5 +100,3 @@ auto string::rstrip() -> string& {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -156,5 +156,3 @@ auto real(char* result, long double value) -> uint {
}
}
#endif

View File

@@ -1,4 +1,4 @@
#ifdef NALL_STRING_INTERNAL_HPP
#pragma once
namespace nall {
@@ -86,5 +86,3 @@ protected:
};
}
#endif