summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-30 23:48:17 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-01 01:46:27 -0800
commit05c98961ba599af382b7d30a4b508c927ab4094c (patch)
tree670c0f4da7341220fc80813f6a57057f4b3e55df
parentffbb3bd57668b3733a13f00d43760d8b9abfd887 (diff)
Move reserved_ linkages up to Cytore::Block.
-rw-r--r--Cytore.hpp7
-rw-r--r--MobileCydia.mm2
2 files changed, 4 insertions, 5 deletions
diff --git a/Cytore.hpp b/Cytore.hpp
index db40045..9f3b4c8 100644
--- a/Cytore.hpp
+++ b/Cytore.hpp
@@ -52,9 +52,6 @@ struct Header {
uint32_t reserved_;
};
-struct Block {
-};
-
template <typename Target_>
class Offset {
private:
@@ -85,6 +82,10 @@ class Offset {
}
};
+struct Block {
+ Cytore::Offset<void> reserved_;
+};
+
template <typename Type_>
static _finline Type_ Round(Type_ value, Type_ size) {
Type_ mask(size - 1);
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 5a09168..9d5c9eb 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1430,7 +1430,6 @@ typedef std::map< unsigned long, _H<Source> > SourceMap;
struct PackageValue :
Cytore::Block
{
- Cytore::Offset<void> reserved_;
Cytore::Offset<PackageValue> next_;
uint32_t index_ : 23;
@@ -1450,7 +1449,6 @@ struct PackageValue :
struct MetaValue :
Cytore::Block
{
- Cytore::Offset<void> reserved_;
Cytore::Offset<PackageValue> packages_[1 << 16];
};