Mercurial > projects > mde
diff mde/setup/paths.d @ 85:56c0ddd90193
Intermediate commit (not stable). Changes to init system.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 11:33:51 +0100 |
parents | d8fccaa45d5f |
children | 4d5d53e4f881 |
line wrap: on
line diff
--- a/mde/setup/paths.d Sun Aug 31 15:59:17 2008 +0100 +++ b/mde/setup/paths.d Thu Sep 11 11:33:51 2008 +0100 @@ -331,29 +331,29 @@ for (uint i = 0; i < readersLen; ++i) readers[i].dataSecCreator = dsC; } - /** Get identifiers for all sections. - * - * Note: the identifiers from all sections in all files are just strung together, starting with - * the highest-priority file. */ - ID[] getSectionNames () { - ID[] names; - for (int i = readersLen-1; i >= 0; --i) names ~= readers[i].getSectionNames; - return names; - } - void read () { /// Commence reading - for (uint i = 0; i < readersLen; ++i) readers[i].read(); - } - void read (ID[] secSet) { /// ditto - for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); - } - void read (View!(ID) secSet) { /// ditto - for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); - } + /** Get identifiers for all sections. + * + * Note: the identifiers from all sections in all files are just strung together, starting with + * the highest-priority file. */ + ID[] getSectionNames () { + ID[] names; + for (int i = readersLen-1; i >= 0; --i) names ~= readers[i].getSectionNames; + return names; + } + void read () { /// Commence reading + for (uint i = 0; i < readersLen; ++i) readers[i].read(); + } + void read (ID[] secSet) { /// ditto + for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); + } + void read (IContainer !(ID) secSet) { /// ditto + for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); + } private: IReader[MAX_PATHS] readers; ubyte readersLen = 0; - + PRIORITY rdOrder; } }