Mercurial > projects > ddmd
diff dmd/StringExp.d @ 176:fa9a71a9f5a8
Moved all the mutable globals to Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 05:22:45 +0400 |
parents | 94b6033c07f3 |
children | 1475fd394c9e |
line wrap: on
line diff
--- a/dmd/StringExp.d Sun Oct 10 03:48:06 2010 +0400 +++ b/dmd/StringExp.d Sun Oct 10 05:22:45 2010 +0400 @@ -17,6 +17,7 @@ import dmd.Scope; import dmd.IRState; import dmd.StringExp; +import dmd.Global; import dmd.HdrGenState; import dmd.Utf; import dmd.Util; @@ -788,7 +789,7 @@ } for (size_t i = 0; i < STSIZE; i++) { - st = &stringTab[(stidx + i) % STSIZE]; + st = &global.stringTab[(global.stidx + i) % STSIZE]; //if (!st.m) continue; //printf(" st.m = %s\n", st.m.toChars()); //printf(" st.len = %d\n", st.len); @@ -805,8 +806,8 @@ } } - stidx = (stidx + 1) % STSIZE; - st = &stringTab[stidx]; + global.stidx = (global.stidx + 1) % STSIZE; + st = &global.stringTab[global.stidx]; dt = null; toDt(&dt);