Changeset 87:2212285f714c
- Timestamp:
- 09/23/08 07:31:48
(4 months ago)
- Author:
- Diggory Hardy <diggory.hardy@gmail.com>
- branch:
- default
- Message:
Added a workaround for a dmd bug.
For some reason the bug showed up after upgrading dsss.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r86 |
r87 |
|
| 16 | 16 | 4 Not guaranteed to catch up-click ending callback! Appears not to be a problem... |
|---|
| 17 | 17 | 4 OutOfMemoryException is not currently checked for â it should be at least in critical places (use high-level catching of all errors?). |
|---|
| | 18 | 3 Use of dtors - don't rely on them? Or what happens when init throws during creation - relying on undefined behaviour. |
|---|
| 18 | 19 | 3 Fonts from Options. Get yMax for font not all glyphs on line? |
|---|
| 19 | 20 | 3 glBindTexture not working with non-0 index (??) |
|---|
| r85 |
r87 |
|
| 33 | 33 | import Util = tango.text.Util; |
|---|
| 34 | 34 | import ConvInt = tango.text.convert.Integer; |
|---|
| 35 | | import tango.util.container.HashSet; |
|---|
| | 35 | //import tango.util.container.HashSet; |
|---|
| | 36 | import mde.workaround2371; |
|---|
| 36 | 37 | import tango.util.log.Log : Log, Logger; |
|---|
| 37 | 38 | |
|---|
| … | … | |
| 263 | 264 | * If secSet is provided, reading is restricted to sections given in secSet, otherwise all |
|---|
| 264 | 265 | * sections are read. Sections given in secSet but not found in the file are not reported as an |
|---|
| 265 | | * error. Suggested: supply a HashSet!(uint) as the View!(ID). An ArrayBag!(ID) as used is not a |
|---|
| 266 | | * good choice, except that in this case it's empty. |
|---|
| | 266 | * error. Suggested: supply a HashSet!(ID) as the container. If an ID[] is passed this is |
|---|
| | 267 | * converted to a HashSet!(ID) to speed up lookups. |
|---|
| 267 | 268 | * |
|---|
| 268 | 269 | * Merging: |
|---|
| … | … | |
| 300 | 301 | /** ditto */ |
|---|
| 301 | 302 | public void read (ID[] secSet) { |
|---|
| 302 | | HashSet!(ID) hs = new HashSet!(ID); |
|---|
| | 303 | myStringHS hs = new myStringHS; // FIXME: workaround2371 |
|---|
| 303 | 304 | foreach (id; secSet) hs.add(id); |
|---|
| 304 | 305 | read (hs); |
|---|
| r86 |
r87 |
|
| 25 | 25 | |
|---|
| 26 | 26 | import tango.util.log.Log : Log, Logger; |
|---|
| 27 | | import tango.util.container.HashSet; |
|---|
| | 27 | //import tango.util.container.HashSet; |
|---|
| | 28 | import mde.workaround2371; |
|---|
| 28 | 29 | |
|---|
| 29 | 30 | /** Class to hold the configuration for the input system. Thus loading and switching between |
|---|
| … | … | |
| 116 | 117 | |
|---|
| 117 | 118 | static Config[char[]] configs; /// All configs loaded by load(). |
|---|
| 118 | | private static HashSet!(char[]) loadedFiles; // all filenames load tried to read |
|---|
| | 119 | // FIXME: workaround2371 |
|---|
| | 120 | private static myStringHS loadedFiles; // all filenames load tried to read |
|---|
| 119 | 121 | private static Logger logger; |
|---|
| 120 | 122 | |
|---|
| … | … | |
| 122 | 124 | static this () { |
|---|
| 123 | 125 | logger = Log.getLogger ("mde.input.Config"); |
|---|
| 124 | | loadedFiles = new HashSet!(char[]); |
|---|
| | 126 | loadedFiles = new myStringHS; |
|---|
| 125 | 127 | } |
|---|
| 126 | 128 | |
|---|