Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Some 'fixes' to make things work with DMD 2.062.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 26, 2013
1 parent 1c01570 commit ab22882
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/mci/core/analysis/statistics.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import mci.core.visitor,
/**
* Gathers various statistics about a module.
*/
private final class StatisticsVisitor : ModuleVisitor
public final class StatisticsVisitor : ModuleVisitor
{
private size_t _types;
private size_t _members;
Expand Down
4 changes: 2 additions & 2 deletions src/mci/core/container.d
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ public class List(T) : Indexable!T, Collection!T
private T[] _array;
private size_t _size;

public this()
public this() pure nothrow
{
}

Expand Down Expand Up @@ -1193,7 +1193,7 @@ public class Dictionary(K, V, bool order = true) : Map!(K, V)
static if (order)
private List!(Tuple!(K, V)) _list;

public this()
public this() pure nothrow
{
static if (order)
_list = new typeof(_list)();
Expand Down
2 changes: 1 addition & 1 deletion src/mci/core/log.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import std.algorithm,

private __gshared Mutex mutex;

nothrow shared static this()
shared static this()
{
mutex = new typeof(mutex)();
}
Expand Down
4 changes: 2 additions & 2 deletions src/mci/core/sync.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import core.sync.condition,
*/
public final class Mutex : core.sync.mutex.Mutex
{
public this() nothrow
public this()
{
super();
}
Expand All @@ -27,7 +27,7 @@ public final class Condition : core.sync.condition.Condition
* Params:
* mutex = The mutex to use for synchronization.
*/
public this(Mutex mutex) nothrow
public this(Mutex mutex)
in
{
assert(mutex);
Expand Down
2 changes: 1 addition & 1 deletion src/mci/vm/execution.d
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public final class RuntimeValue
assert(_data);
}

public this(GarbageCollector gc, Type type) nothrow
public this(GarbageCollector gc, Type type)
in
{
assert(gc);
Expand Down
2 changes: 1 addition & 1 deletion src/mci/vm/intrinsics/context.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class VirtualMachineState
assert(_objects);
}

private this()
private this() pure nothrow
{
_objects = new typeof(_objects)();
}
Expand Down
4 changes: 2 additions & 2 deletions src/mci/vm/memory/boehm.d
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ static if (isPOSIX)
GC_free(data);
}

public override void addRange(RuntimeObject** ptr, size_t words)
public override void addRange(RuntimeObject** ptr, size_t words) nothrow
{
GC_add_roots(ptr, ptr + size_t.sizeof * words + 1);
}

public override void removeRange(RuntimeObject** ptr, size_t words)
public override void removeRange(RuntimeObject** ptr, size_t words) nothrow
{
GC_remove_roots(ptr, ptr + size_t.sizeof * words + 1);
}
Expand Down

0 comments on commit ab22882

Please sign in to comment.