From cb393fcf978a184c6a97772ab588b9d9a2a5c256 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 14 Mar 2007 09:13:25 +0000 Subject: [PATCH] Use XBT_PUBLIC_DATA instead of XBT_DECLARE_DATA git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3264 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/include/surf/surf.h | 14 +++++++------- src/xbt/ex.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 45499ebc5d..2eb03a2c95 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -163,7 +163,7 @@ typedef struct surf_timer_resource { /** \brief The timer resource * \ingroup SURF_resources */ -extern surf_timer_resource_t XBT_DECLARE_DATA surf_timer_resource; +XBT_PUBLIC_DATA(surf_timer_resource_t) surf_timer_resource; /** \brief Initializes the timer resource * \ingroup SURF_resources @@ -206,7 +206,7 @@ typedef struct surf_cpu_resource { /** \brief The CPU resource * \ingroup SURF_resources */ -extern surf_cpu_resource_t XBT_DECLARE_DATA surf_cpu_resource; +XBT_PUBLIC_DATA(surf_cpu_resource_t) surf_cpu_resource; /** \brief Initializes the CPU resource with the model Cas01 * \ingroup SURF_resources @@ -253,7 +253,7 @@ typedef struct surf_network_resource { * resource should be accessed because depending on the platform model, * the network resource can be NULL. */ -extern surf_network_resource_t XBT_DECLARE_DATA surf_network_resource; +XBT_PUBLIC_DATA(surf_network_resource_t) surf_network_resource; /** \brief Initializes the platform with the network model CM02 * \ingroup SURF_resources @@ -313,7 +313,7 @@ typedef struct surf_workstation_resource { * because depending on the platform model, the network resource and the CPU resource * may not exist. */ -extern surf_workstation_resource_t XBT_DECLARE_DATA surf_workstation_resource; +XBT_PUBLIC_DATA(surf_workstation_resource_t) surf_workstation_resource; /** \brief Initializes the platform with the workstation model CLM03 * \ingroup SURF_resources @@ -353,7 +353,7 @@ XBT_PUBLIC(void) surf_workstation_resource_init_KCCFLN05_proportionnal(const cha * * \see workstation_set */ -extern xbt_dict_t XBT_DECLARE_DATA network_link_set; +XBT_PUBLIC_DATA(xbt_dict_t) network_link_set; /** \brief The workstations * \ingroup SURF_resources @@ -362,12 +362,12 @@ extern xbt_dict_t XBT_DECLARE_DATA network_link_set; * * \see network_link_set */ -extern xbt_dict_t XBT_DECLARE_DATA workstation_set; +XBT_PUBLIC_DATA(xbt_dict_t) workstation_set; /** \brief List of initialized resources * \ingroup SURF_resources */ -extern xbt_dynar_t XBT_DECLARE_DATA resource_list; +XBT_PUBLIC_DATA(xbt_dynar_t) resource_list; /*******************************************/ /*** SURF Globals **************************/ diff --git a/src/xbt/ex.c b/src/xbt/ex.c index 9ec447febe..f6967cb4f9 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -267,8 +267,8 @@ void __xbt_ex_terminate_default(xbt_ex_t *e) { } /* the externally visible API */ -ex_ctx_cb_t XBT_DECLARE_DATA __xbt_ex_ctx = &__xbt_ex_ctx_default; -ex_term_cb_t XBT_DECLARE_DATA __xbt_ex_terminate = &__xbt_ex_terminate_default; +XBT_PUBLIC_DATA(ex_ctx_cb_t) __xbt_ex_ctx = &__xbt_ex_ctx_default; +XBT_PUBLIC_DATA(ex_term_cb_t) __xbt_ex_terminate = &__xbt_ex_terminate_default; void xbt_ex_free(xbt_ex_t e) { -- 2.20.1