cesyms, cetodo, avoid TLS variables

This commit is contained in:
Basile Burg 2015-08-18 17:42:28 +02:00
parent 977374d00f
commit c3e26c9df3
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ class SymbolListBuilder : ASTVisitor
Symbol * parent;
// for some reason (?) the .name of a (static Symbol* []) item was lost
static Symbol[] illFormed;
__gshared static Symbol[] illFormed;
size_t count;

View File

@ -56,7 +56,7 @@ private struct TodoItem
* They must match the published member of the widget-side class TTodoItem.
*/
private static enum TodoField {filename, line, text, category, assignee, priority, status}
private static string[TodoField] fFieldNames;
private __gshared static string[TodoField] fFieldNames;
private string[TodoField] fFields;
static this()
@ -99,7 +99,7 @@ private struct TodoItem
* Params:
* LfmString = the string containing the LFM script.
*/
@safe public void serialize(ref Appender!string lfmApp)
public void serialize(ref Appender!string lfmApp)
{
lfmApp.put(" \r item\r");
foreach(member; EnumMembers!TodoField)