Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:D-Programming-Language/druntime
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jul 19, 2011
2 parents fbffa21 + 85abbc9 commit b7b51e2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/core/exception.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import core.stdc.stdio;

private
{
alias void function( string file, size_t line, string msg = null ) errorHandlerType;
alias void function( string file, size_t line, string msg ) errorHandlerType;

// NOTE: One assert handler is used for all threads. Thread-local
// behavior should occur within the handler itself. This delegate
Expand Down Expand Up @@ -361,7 +361,7 @@ extern (C) void onAssertError( string file = __FILE__, size_t line = __LINE__ )
{
if( assertHandler is null )
throw new AssertError( file, line );
assertHandler( file, line );
assertHandler( file, line, null);
}


Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private

alias bool function() ModuleUnitTester;
alias bool function(Object) CollectHandler;
alias Throwable.TraceInfo function( void* ptr = null ) TraceHandler;
alias Throwable.TraceInfo function( void* ptr ) TraceHandler;

extern (C) void rt_setCollectHandler( CollectHandler h );
extern (C) CollectHandler rt_getCollectHandler();
Expand Down
3 changes: 2 additions & 1 deletion src/core/sys/windows/threadaux.d
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ private:
}

// execute function on the TLS for the given thread
static void impersonate_thread( uint id, void function() fn )
alias extern(C) void function() externCVoidFunc;
static void impersonate_thread( uint id, externCVoidFunc fn )
{
if( id == GetCurrentThreadId() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ class Throwable : Object
}


alias Throwable.TraceInfo function(void* ptr = null) TraceHandler;
alias Throwable.TraceInfo function(void* ptr) TraceHandler;
private __gshared TraceHandler traceHandler = null;


Expand Down
4 changes: 2 additions & 2 deletions src/rt/adi.d
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ extern (C) char[] _adSortChar(char[] a)
{
if (a.length > 1)
{
dstring da = toUTF32(a);
dchar[] da = cast(dchar[])toUTF32(a);
da.sort;
size_t i = 0;
foreach (dchar d; da)
Expand All @@ -337,7 +337,7 @@ extern (C) wchar[] _adSortWchar(wchar[] a)
{
if (a.length > 1)
{
dstring da = toUTF32(a);
dchar[] da = cast(dchar[])toUTF32(a);
da.sort;
size_t i = 0;
foreach (dchar d; da)
Expand Down

0 comments on commit b7b51e2

Please sign in to comment.