Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mak/COPY
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ COPY=\
$(IMPDIR)\core\internal\attributes.d \
$(IMPDIR)\core\internal\convert.d \
$(IMPDIR)\core\internal\dassert.d \
$(IMPDIR)\core\internal\destruction.d \
$(IMPDIR)\core\internal\entrypoint.d \
$(IMPDIR)\core\internal\hash.d \
$(IMPDIR)\core\internal\moving.d \
$(IMPDIR)\core\internal\parseoptions.d \
$(IMPDIR)\core\internal\postblit.d \
$(IMPDIR)\core\internal\spinlock.d \
$(IMPDIR)\core\internal\string.d \
$(IMPDIR)\core\internal\switch_.d \
Expand Down
2 changes: 2 additions & 0 deletions mak/DOCS
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ DOCS=\
$(DOCDIR)\core_sys_darwin_netinet_in_.html \
\
$(DOCDIR)\core_internal_dassert.html \
$(DOCDIR)\core_internal_destruction.html \
$(DOCDIR)\core_internal_moving.html \
$(DOCDIR)\core_internal_postblit.html \
$(DOCDIR)\core_internal_switch_.html \
\
$(DOCDIR)\core_internal_array_appending.html \
Expand Down
2 changes: 2 additions & 0 deletions mak/SRCS
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ SRCS=\
src\core\internal\atomic.d \
src\core\internal\convert.d \
src\core\internal\dassert.d \
src\core\internal\destruction.d \
src\core\internal\entrypoint.d \
src\core\internal\hash.d \
src\core\internal\moving.d \
src\core\internal\parseoptions.d \
src\core\internal\postblit.d \
src\core\internal\spinlock.d \
src\core\internal\string.d \
src\core\internal\switch_.d \
Expand Down
6 changes: 6 additions & 0 deletions mak/WINDOWS
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ $(IMPDIR)\core\internal\convert.d : src\core\internal\convert.d
$(IMPDIR)\core\internal\dassert.d : src\core\internal\dassert.d
copy $** $@

$(IMPDIR)\core\internal\destruction.d : src\core\internal\destruction.d
copy $** $@

$(IMPDIR)\core\internal\entrypoint.d : src\core\internal\entrypoint.d
copy $** $@

Expand All @@ -144,6 +147,9 @@ $(IMPDIR)\core\internal\moving.d : src\core\internal\moving.d
$(IMPDIR)\core\internal\parseoptions.d : src\core\internal\parseoptions.d
copy $** $@

$(IMPDIR)\core\internal\postblit.d : src\core\internal\postblit.d
copy $** $@

$(IMPDIR)\core\internal\spinlock.d : src\core\internal\spinlock.d
copy $** $@

Expand Down
6 changes: 6 additions & 0 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,15 @@ $(DOCDIR)/core_sys_darwin_netinet_%.html : src/core/sys/darwin/netinet/%.d $(DMD
$(DOCDIR)/core_internal_dassert.html : src/core/internal/dassert.d $(DMD)
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_internal_destruction.html : src/core/internal/destruction.d $(DMD)
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_internal_moving.html : src/core/internal/moving.d $(DMD)
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_internal_postblit.html : src/core/internal/postblit.d $(DMD)
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

$(DOCDIR)/core_internal_switch_.html : src/core/internal/switch_.d $(DMD)
$(DMD) $(DDOCFLAGS) -Df$@ project.ddoc $(DOCFMT) $<

Expand Down
6 changes: 4 additions & 2 deletions src/core/internal/array/construction.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module core.internal.array.construction;
Tarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted
{
pragma(inline, false);
import core.internal.postblit : postblitRecurse;
import core.internal.traits : Unqual;
import core.stdc.string : memcpy;
debug(PRINTF) import core.stdc.stdio;
Expand Down Expand Up @@ -53,7 +54,7 @@ Tarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted
auto elem = cast(Unqual!T*)&to[i];
// Copy construction is defined as bit copy followed by postblit.
memcpy(elem, &from[i], element_size);
_postblitRecurse(*elem);
postblitRecurse(*elem);
}
}
catch (Exception o)
Expand Down Expand Up @@ -158,6 +159,7 @@ Tarr _d_arrayctor(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trusted
void _d_arraysetctor(Tarr : T[], T)(scope Tarr p, scope ref T value) @trusted
{
pragma(inline, false);
import core.internal.postblit : postblitRecurse;
import core.stdc.string : memcpy;
import core.internal.traits : Unqual;
size_t walker;
Expand All @@ -170,7 +172,7 @@ void _d_arraysetctor(Tarr : T[], T)(scope Tarr p, scope ref T value) @trusted
auto elem = cast(Unqual!T*)&p[walker];
// Copy construction is defined as bit copy followed by postblit.
memcpy(elem, &value, element_size);
_postblitRecurse(*elem);
postblitRecurse(*elem);
walker++;
}
}
Expand Down
Loading