From 58a6a9307ec328557fb80333cf4631ead71e4ebd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 2 Nov 2017 18:42:00 +0100 Subject: [PATCH] Move namespace out of extern "C" block. --- src/surf/xml/surfxml_sax_cb.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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) { -- 2.20.1