From c3e26c9df36c8db6148a5e29b3d670cfaafe06bc Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 18 Aug 2015 17:42:28 +0200 Subject: [PATCH] cesyms, cetodo, avoid TLS variables --- cesyms/cesyms.d | 2 +- cetodo/cetodo.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cesyms/cesyms.d b/cesyms/cesyms.d index b6be2e42..5bdb477b 100644 --- a/cesyms/cesyms.d +++ b/cesyms/cesyms.d @@ -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; diff --git a/cetodo/cetodo.d b/cetodo/cetodo.d index db6ef2b3..c5863cc5 100644 --- a/cetodo/cetodo.d +++ b/cetodo/cetodo.d @@ -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)