diff druntime/import/core/runtime.di @ 760:6f33b427bfd1

Seems like hg ignores .di files, so I missed a bunch of stuff. complete druntime should be there now :)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 12 Nov 2008 00:19:18 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/druntime/import/core/runtime.di	Wed Nov 12 00:19:18 2008 +0100
@@ -0,0 +1,85 @@
+// D import file generated from 'core/runtime.d'
+module core.runtime;
+private
+{
+    extern (C) 
+{
+    bool rt_isHalting();
+}
+    alias bool function() ModuleUnitTester;
+    alias bool function(Object) CollectHandler;
+    alias Exception.TraceInfo function(void* ptr = null) TraceHandler;
+    extern (C) 
+{
+    void rt_setCollectHandler(CollectHandler h);
+}
+    extern (C) 
+{
+    void rt_setTraceHandler(TraceHandler h);
+}
+    alias void delegate(Exception) ExceptionHandler;
+    extern (C) 
+{
+    bool rt_init(ExceptionHandler dg = null);
+}
+    extern (C) 
+{
+    bool rt_term(ExceptionHandler dg = null);
+}
+}
+struct Runtime
+{
+    static
+{
+    bool initialize(void delegate(Exception) dg = null)
+{
+return rt_init(dg);
+}
+}
+    static
+{
+    bool terminate(void delegate(Exception) dg = null)
+{
+return rt_term(dg);
+}
+}
+    static
+{
+    bool isHalting()
+{
+return rt_isHalting();
+}
+}
+    static
+{
+    void traceHandler(TraceHandler h)
+{
+rt_setTraceHandler(h);
+}
+}
+    static
+{
+    void collectHandler(CollectHandler h)
+{
+rt_setCollectHandler(h);
+}
+}
+    static
+{
+    void moduleUnitTester(ModuleUnitTester h)
+{
+sm_moduleUnitTester = h;
+}
+}
+    private
+{
+    static
+{
+    ModuleUnitTester sm_moduleUnitTester = null;
+}
+}
+}
+extern (C) 
+{
+    bool runModuleUnitTests();
+}