Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
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
28 changes: 14 additions & 14 deletions src/gc/impl/proto/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ class ProtoGC : GC

void enable()
{
gc_init_nothrow();
gc_enable();
.gc_init_nothrow();
.gc_enable();
}

void disable()
{
gc_init_nothrow();
gc_disable();
.gc_init_nothrow();
.gc_disable();
}

void collect() nothrow
Expand Down Expand Up @@ -102,26 +102,26 @@ class ProtoGC : GC

void* malloc(size_t size, uint bits, const TypeInfo ti) nothrow
{
gc_init_nothrow();
return gc_malloc(size, bits, ti);
.gc_init_nothrow();
return .gc_malloc(size, bits, ti);
}

BlkInfo qalloc(size_t size, uint bits, const TypeInfo ti) nothrow
{
gc_init_nothrow();
return gc_qalloc(size, bits, ti);
.gc_init_nothrow();
return .gc_qalloc(size, bits, ti);
}

void* calloc(size_t size, uint bits, const TypeInfo ti) nothrow
{
gc_init_nothrow();
return gc_calloc(size, bits, ti);
.gc_init_nothrow();
return .gc_calloc(size, bits, ti);
}

void* realloc(void* p, size_t size, uint bits, const TypeInfo ti) nothrow
{
gc_init_nothrow();
return gc_realloc(p, size, bits, ti);
.gc_init_nothrow();
return .gc_realloc(p, size, bits, ti);
}

size_t extend(void* p, size_t minsize, size_t maxsize, const TypeInfo ti) nothrow
Expand All @@ -131,8 +131,8 @@ class ProtoGC : GC

size_t reserve(size_t size) nothrow
{
gc_init_nothrow();
return reserve(size);
.gc_init_nothrow();
return .gc_reserve(size);
}

void free(void* p) nothrow @nogc
Expand Down