From 05c98961ba599af382b7d30a4b508c927ab4094c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 30 Nov 2010 23:48:17 -0800 Subject: [PATCH] Move reserved_ linkages up to Cytore::Block. --- Cytore.hpp | 7 ++++--- MobileCydia.mm | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cytore.hpp b/Cytore.hpp index db400459..9f3b4c8f 100644 --- a/Cytore.hpp +++ b/Cytore.hpp @@ -52,9 +52,6 @@ struct Header { uint32_t reserved_; }; -struct Block { -}; - template class Offset { private: @@ -85,6 +82,10 @@ class Offset { } }; +struct Block { + Cytore::Offset reserved_; +}; + template static _finline Type_ Round(Type_ value, Type_ size) { Type_ mask(size - 1); diff --git a/MobileCydia.mm b/MobileCydia.mm index 5a091682..9d5c9eb3 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1430,7 +1430,6 @@ typedef std::map< unsigned long, _H > SourceMap; struct PackageValue : Cytore::Block { - Cytore::Offset reserved_; Cytore::Offset next_; uint32_t index_ : 23; @@ -1450,7 +1449,6 @@ struct PackageValue : struct MetaValue : Cytore::Block { - Cytore::Offset reserved_; Cytore::Offset packages_[1 << 16]; }; -- 2.45.2