From: Arnaud Giersch Date: Thu, 2 Nov 2017 17:42:00 +0000 (+0100) Subject: Move namespace out of extern "C" block. X-Git-Tag: v3.18~305^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/58a6a9307ec328557fb80333cf4631ead71e4ebd Move namespace out of extern "C" block. --- diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index 8c1e50bccf..13de767561 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -118,9 +118,12 @@ int surf_parse_get_int(std::string s) return -1; } } +} + +namespace { /* Turn something like "1-4,6,9-11" into the vector {1,2,3,4,6,9,10,11} */ -static std::vector* explodesRadical(std::string radicals) +std::vector* explodesRadical(std::string radicals) { std::vector* exploded = new std::vector(); @@ -151,7 +154,6 @@ static std::vector* explodesRadical(std::string radicals) return exploded; } -namespace { class unit_scale : public std::unordered_map { public: using std::unordered_map::unordered_map; @@ -189,11 +191,10 @@ unit_scale::unit_scale(std::initializer_listsecond; } +} + +extern "C" { double surf_parse_get_time(const char* string, const char* entity_kind, std::string name) {