Skip to content

Commit 7e86ce7

Browse files
authored
Merge pull request #1668 from wilzbach/fix-17469
Fix 17469 - View source code for object.d is broken merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2 parents f9fe084 + d020457 commit 7e86ce7

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

assert_writeln_magic.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ void parseFile(string fileName, string destFile)
188188
warningf("%s is empty", inFile.name);
189189

190190
ubyte[] sourceCode = uninitializedArray!(ubyte[])(to!size_t(inFile.size));
191+
if (sourceCode.length == 0)
192+
return;
193+
191194
inFile.rawRead(sourceCode);
192195
LexerConfig config;
193196
auto cache = StringCache(StringCache.defaultBucketCount);

dpl-docs/dub.selections.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"ddox": "0.15.18",
55
"experimental_allocator": "2.70.0-b1",
66
"hyphenate": "1.1.1",
7-
"libasync": "0.7.9",
8-
"libdparse": "0.7.0-beta.2",
7+
"libasync": "0.8.3",
8+
"libdparse": "0.7.0",
99
"libev": "5.0.0+4.04",
1010
"libevent": "2.0.2+2.0.16",
11-
"memutils": "0.4.8",
12-
"vibe-d": "0.7.30"
11+
"memutils": "0.4.9",
12+
"vibe-d": "0.7.31"
1313
}
1414
}

dpl-docs/views/layout.dt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ html(lang='en-US')
163163
- string project = "dlang.org";
164164
- string path_prefix, line_suffix, filename;
165165
- if( modname )
166-
- if( modname.startsWith("core.") )
166+
- if( modname.startsWith("core.") || modname.startsWith("object"))
167167
- project = "druntime", path_prefix = "src/";
168168
- else if( modname.startsWith("dmd.") || modname.startsWith("ddmd.") )
169169
- project = "dmd", path_prefix = "src/";

0 commit comments

Comments
 (0)