X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/2b7577f918513f8bc8a3abc7199e37bb40e44723..ee7c028ebdd89ffc05410551c6e4812187049279:/src/compiler/dmd/lifetime.d?ds=inline diff --git a/src/compiler/dmd/lifetime.d b/src/compiler/dmd/lifetime.d index e5ef60f..2b77809 100644 --- a/src/compiler/dmd/lifetime.d +++ b/src/compiler/dmd/lifetime.d @@ -29,10 +29,10 @@ module rt.lifetime; private { - import stdc.stdlib; - import stdc.string; - import stdc.stdarg; - debug(PRINTF) import stdc.stdio; + import core.stdc.stdlib; + import core.stdc.string; + import core.stdc.stdarg; + debug(PRINTF) import core.stdc.stdio; } @@ -66,7 +66,7 @@ private extern (C) size_t gc_sizeOf( void* p ); extern (C) BlkInfo gc_query( void* p ); - extern (C) void onFinalizeError( ClassInfo c, Exception e ); + extern (C) void onFinalizeError( ClassInfo c, Throwable e ); extern (C) void onOutOfMemoryError(); extern (C) void _d_monitordelete(Object h, bool det = true); @@ -529,7 +529,7 @@ extern (C) void rt_finalize(void* p, bool det = true) if ((cast(void**)p)[1]) // if monitor is not null _d_monitordelete(cast(Object)p, det); } - catch (Exception e) + catch (Throwable e) { onFinalizeError(**pc, e); }