99module vdc.dmdserver.dmdinit ;
1010
1111import dmd.arraytypes;
12+ import dmd.astenums;
1213import dmd.builtin;
1314import dmd.cond;
1415import dmd.compiler;
@@ -45,7 +46,10 @@ alias EscapeInfer = RootObject[int];
4546enum string [2 ][] dmdStatics =
4647[
4748 [" _D3dmd5clone12buildXtoHashFCQBa7dstruct17StructDeclarationPSQCg6dscope5ScopeZ8tftohashCQDh5mtype12TypeFunction" , " TypeFunction" ],
48- [" _D3dmd7dstruct15search_toStringRCQBfQBe17StructDeclarationZ10tftostringCQCs5mtype12TypeFunction" , " TypeFunction" ],
49+ // < 2.110
50+ // ["_D3dmd7dstruct15search_toStringRCQBfQBe17StructDeclarationZ10tftostringCQCs5mtype12TypeFunction", "TypeFunction"],
51+ // 2.110
52+ [" _D3dmd7dstruct15search_toStringFCQBfQBe17StructDeclarationZ10tftostringCQCs5mtype12TypeFunction" , " TypeFunction" ],
4953 // 2.103
5054 [" _D3dmd7dmodule6Module11loadStdMathFZ8std_mathCQBsQBrQBm" , " Module" ],
5155 [" _D3dmd7dmodule6Module14loadCoreAtomicFZ11core_atomicCQBzQByQBt" , " Module" ],
@@ -62,9 +66,13 @@ enum string[2][] dmdStatics =
6266// ["_D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt7globals3LocPSQCk6dscope5ScopeZ11visitAArrayMFCQDrQCp10TypeAArrayZ5fhashCQEr4func15FuncDeclaration", "FuncDeclaration"],
6367// ["_D3dmd5lexer13TimeStampInfo8initdoneb", "bool"],
6468 // 2.103
65- [" _D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ3feqCQEq4func15FuncDeclaration" , " FuncDeclaration" ],
66- [" _D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ4fcmpCQEr4func15FuncDeclaration" , " FuncDeclaration" ],
67- [" _D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ5fhashCQEs4func15FuncDeclaration" , " FuncDeclaration" ],
69+ // ["_D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ3feqCQEq4func15FuncDeclaration", "FuncDeclaration"],
70+ // ["_D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ4fcmpCQEr4func15FuncDeclaration", "FuncDeclaration"],
71+ // ["_D3dmd7typesem12typeSemanticRCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ5fhashCQEs4func15FuncDeclaration", "FuncDeclaration"],
72+ // 2.110
73+ [" _D3dmd7typesem12typeSemanticFCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ3feqCQEq4func15FuncDeclaration" , " FuncDeclaration" ],
74+ [" _D3dmd7typesem12typeSemanticFCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ4fcmpCQEr4func15FuncDeclaration" , " FuncDeclaration" ],
75+ [" _D3dmd7typesem12typeSemanticFCQBc5mtype4TypeKxSQBt8location3LocPSQCl6dscope5ScopeZ11visitAArrayMFCQDsQCq10TypeAArrayZ5fhashCQEs4func15FuncDeclaration" , " FuncDeclaration" ],
6876
6977 [" _D3dmd7typesem6dotExpFCQv5mtype4TypePSQBk6dscope5ScopeCQCb10expression10ExpressionCQDdQBc8DotIdExpEQDtQCz10DotExpFlagZ11visitAArrayMFCQFcQEi10TypeAArrayZ8fd_aaLenCQGf4func15FuncDeclaration" , " FuncDeclaration" ],
7078 [" _D3dmd7typesem6dotExpFCQv5mtype4TypePSQBk6dscope5ScopeCQCb10expression10ExpressionCQDdQBc8DotIdExpEQDtQCz10DotExpFlagZ8noMemberMFQEdQDsQDdCQFh10identifier10IdentifieriZ4nesti" , " int" ],
@@ -288,7 +296,7 @@ void dmdSetupParams(const ref Options opts)
288296 global.params.ddoc.files = Strings();
289297 // Default to -m32 for 32 bit dmd, -m64 for 64 bit dmd
290298 target.isX86_64 = opts.x64;
291- target.omfobj = ! opts.msvcrt;
299+ // target.omfobj = !opts.msvcrt;
292300 target.cpu = CPU .baseline;
293301 target.isLP64 = opts.x64;
294302
@@ -337,7 +345,7 @@ void dmdSetupParams(const ref Options opts)
337345 foreach (v; opts.versionIds)
338346 version ids.push(toStringz(v));
339347
340- global.versionids = new Identifiers( );
348+ global.versionids.setDim( 0 );
341349 // Add in command line versions
342350 foreach (charz; * versionids)
343351 {
@@ -360,18 +368,18 @@ void dmdSetupParams(const ref Options opts)
360368 foreach (d; opts.debugIds)
361369 debugids.push(toStringz(d));
362370
363- global.debugids = new Identifiers( );
371+ global.debugids.setDim( 0 );
364372 foreach (charz; * debugids)
365373 {
366374 global.debugids.push(new Identifier (charz));
367375 DebugCondition.addGlobalIdent(charz[0 .. strlen(charz)]);
368376 }
369377
370- global.path = new Strings( );
378+ global.path.setDim( 0 );
371379 foreach (i; opts.importDirs)
372380 global.path.push(toStringz(i));
373381
374- global.filePath = new Strings( );
382+ global.filePath.setDim( 0 );
375383 foreach (i; opts.stringImportDirs)
376384 global.filePath.push(toStringz(i));
377385}
0 commit comments