Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use library init/fini functions for xbt initialization
[simgrid.git] / src / xbt / backtrace_windows.c
index 0b73f77..e658216 100644 (file)
@@ -1,10 +1,8 @@
-/* $Id$ */
-
 /* backtrace_windows - backtrace displaying on windows platform             */
 /* This file is included by ex.c on need (windows x86)                      */
 
-/*  Copyright (c) 2007 The SimGrid team                                     */
-/*  All rights reserved.                                                    */
+/* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -70,8 +68,8 @@ static HINSTANCE hlp_dbg_instance = NULL;
 static HANDLE process_handle = NULL;
 
 
-/* Module creation/destruction: nothing to do on linux */
-void xbt_backtrace_init(void)
+/* Module creation/destruction: initialize our tables */
+void xbt_backtrace_preinit(void)
 {
   process_handle = GetCurrentProcess();
 
@@ -132,7 +130,7 @@ void xbt_backtrace_init(void)
   }
 }
 
-void xbt_backtrace_exit(void)
+void xbt_backtrace_postexit(void)
 {
   if (!hlp_dbg_instance)
     return;