Remove some global symbols

This commit is contained in:
Alex Beregszaszi 2017-08-09 12:44:53 +01:00
parent d015b5818e
commit 3e2f0b589d
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,9 @@ extern "C" {
typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, char** o_error);
}
namespace
{
ReadFile::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = nullptr)
{
ReadFile::Callback readCallback;
@ -260,6 +263,8 @@ string compileStandardInternal(string const& _input, CStyleReadFileCallback _rea
return compiler.compile(_input);
}
}
static string s_outputBuffer;
extern "C"

View File

@ -40,7 +40,7 @@ specified default locale if it is valid, and if not then it will modify the
environment the process is running in to use a sensible default. This also means
that users do not need to install language packs for their OS.
*/
void setDefaultOrCLocale()
static void setDefaultOrCLocale()
{
#if __unix__
if (!std::setlocale(LC_ALL, ""))