X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b0f7d03396e875f79a063b7a6eb8c5d78eac7c09:/src/surf/sg_platf.c..8d45d82d6394d07db6cdd4462c7172a53dc8185f:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.c b/src/surf/sg_platf.cpp similarity index 99% rename from src/surf/sg_platf.c rename to src/surf/sg_platf.cpp index 504e9e37a4..5425bc1366 100644 --- a/src/surf/sg_platf.c +++ b/src/surf/sg_platf.cpp @@ -11,7 +11,10 @@ #include "xbt/RngStream.h" #include "simgrid/platf_interface.h" +extern "C" { XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse); +} + xbt_dynar_t sg_platf_host_cb_list = NULL; // of sg_platf_host_cb_t xbt_dynar_t sg_platf_host_link_cb_list = NULL; // of sg_platf_host_link_cb_t xbt_dynar_t sg_platf_link_cb_list = NULL; // of sg_platf_link_cb_t @@ -46,7 +49,7 @@ xbt_dynar_t sg_platf_gpu_cb_list = NULL; /* ***************************************** */ -static int surf_parse_models_setup_already_called; +static int surf_parse_models_setup_already_called = 0; /* one RngStream for the platform, to respect some statistic rules */ static RngStream sg_platf_rng_stream = NULL; @@ -299,8 +302,6 @@ void sg_platf_end() { } } -static int surf_parse_models_setup_already_called = 0; - void sg_platf_new_AS_begin(sg_platf_AS_cbarg_t AS) { unsigned int iterator; sg_platf_AS_cb_t fun;