Skip to content

Commit 2ca27b7

Browse files
committed
Use shared instead of __gshared
1 parent cfb71aa commit 2ca27b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dspec_tester.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct Config {
2424
string dmdBinPath = "dmd";
2525
bool printLineNumbers; // whether line numbers should be shown on errors
2626
}
27-
__gshared Config config;
27+
shared Config config;
2828

2929
// a range until the next ')', nested () are ignored
3030
auto untilClosingParentheses(R)(R rs)
@@ -98,8 +98,8 @@ int main(string[] args)
9898
config.dmdBinPath = environment.get("DMD", "dmd");
9999
auto helpInformation = getopt(
100100
args,
101-
"l|lines", "Show the line numbers on errors", &config.printLineNumbers,
102-
"compiler", "D compiler to use", &config.dmdBinPath,
101+
"l|lines", "Show the line numbers on errors", cast(bool*) &config.printLineNumbers,
102+
"compiler", "D compiler to use", cast(string*) &config.dmdBinPath,
103103
);
104104

105105
if (helpInformation.helpWanted)
@@ -159,7 +159,7 @@ auto compileAndCheck(R)(R buffer, CompileConfig config)
159159
import std.process;
160160
import std.uni : isWhite;
161161

162-
auto args = [.config.dmdBinPath];
162+
string[] args = [.config.dmdBinPath];
163163
args ~= config.args;
164164
with (CompileConfig.TestMode)
165165
final switch (config.mode)

0 commit comments

Comments
 (0)