static Cytore::File<MetaValue> MetaFile_;
// }}}
// Cytore Helper Functions {{{
-static PackageValue *PackageFind(const char *name, size_t length, Cytore::Offset<PackageValue> *cache = NULL) {
+static PackageValue *PackageFind(const char *name, size_t length) {
SplitHash nhash = { hashlittle(name, length) };
PackageValue *metadata;
}
}
- if (cache != NULL)
- *cache = *offset;
-
return metadata;
}
NSMutableArray *tags_;
NSString *role_;
- Cytore::Offset<PackageValue> metadata_;
+ PackageValue *metadata_;
bool ignored_;
}
_end
_profile(Package$initWithVersion$Metadata)
- PackageValue *metadata(PackageFind(id_.data(), id_.size(), &metadata_));
+ PackageValue *metadata(PackageFind(id_.data(), id_.size()));
+ metadata_ = metadata;
const char *latest(version_.VerStr());
size_t length(strlen(latest));
}
- (PackageValue *) metadata {
- return &MetaFile_.Get(metadata_);
+ return metadata_;
}
- (time_t) seen {