diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 08:01:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 18:09:18 +0800 |
commit | 7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (patch) | |
tree | c44271af2ca3c9a4461a297ba608f1a75910f09b /lllc | |
parent | b364bd048ffaf233782a23dabd13622431a75aa3 (diff) | |
download | dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.gz dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.zst dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.zip |
Move all file specific globals to anonymous namespace
Diffstat (limited to 'lllc')
-rw-r--r-- | lllc/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp index adf181c7..06a0fc81 100644 --- a/lllc/main.cpp +++ b/lllc/main.cpp @@ -39,7 +39,7 @@ static string const VersionString = (string(SOL_VERSION_PRERELEASE).empty() ? "" : "-" + string(SOL_VERSION_PRERELEASE)) + (string(SOL_VERSION_BUILDINFO).empty() ? "" : "+" + string(SOL_VERSION_BUILDINFO)); -void help() +static void help() { cout << "Usage lllc [OPTIONS] <file>" << endl @@ -54,7 +54,7 @@ void help() exit(0); } -void version() +static void version() { cout << "LLLC, the Lovely Little Language Compiler " << endl; cout << "Version: " << VersionString << endl; @@ -74,7 +74,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, "")) |