Mercurial > projects > mde
comparison mde/file/mergetag/Reader.d @ 111:1655693702fc
Resolved ticket #4, allowing widgets to reload strings and recalculate sizes mid-run.
Removed prefinalize and finalize and added setup as the new second initialization phase, which can be re-run.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 17:41:42 +0000 |
parents | 2212285f714c |
children | b16a534f5302 |
comparison
equal
deleted
inserted
replaced
110:6acd96f8685f | 111:1655693702fc |
---|---|
354 /* Reads a section, starting from index pos, finishing at the next section marker (returning | 354 /* Reads a section, starting from index pos, finishing at the next section marker (returning |
355 the position of the start of the marker). pos should start after the section marker. | 355 the position of the start of the marker). pos should start after the section marker. |
356 | 356 |
357 After analysing tags, the function passes the type, ID and data to addTag. | 357 After analysing tags, the function passes the type, ID and data to addTag. |
358 | 358 |
359 NOTE: from performance tests on indexing char[]'s and dereferencing char*'s, the char*'s are | 359 Note: from performance tests on indexing char[]'s and dereferencing char*'s, the char*'s are |
360 slightly faster, but a tiny difference isn't worth the extra effort/risk of using char*'s. | 360 slightly faster, but a tiny difference isn't worth the extra effort/risk of using char*'s. |
361 */ | 361 */ |
362 private size_t parseSection (size_t pos, IDataSection dsec) { | 362 private size_t parseSection (size_t pos, IDataSection dsec) { |
363 debug scope (failure) | 363 debug scope (failure) |
364 logger.trace ("MTTReader.parseSection: failure"); | 364 logger.trace ("MTTReader.parseSection: failure"); |