aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-09 09:52:23 +0900
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2018-07-09 09:52:23 +0900
commit8e8e5fbd09de38207d13ac0e79b4716308b1d828 (patch)
tree8c722d4a6d83009937c907e285b0fcf954b0d173
parent3b60a0e4b10be17d00e39afbc163702555555d62 (diff)
downloadnimgen-8e8e5fbd09de38207d13ac0e79b4716308b1d828.tar.gz
nimgen-8e8e5fbd09de38207d13ac0e79b4716308b1d828.zip
Change consts to camel case for nep1
-rw-r--r--nimgen.nim16
1 files changed, 8 insertions, 8 deletions
diff --git a/nimgen.nim b/nimgen.nim
index 4f2c251..d618142 100644
--- a/nimgen.nim
+++ b/nimgen.nim
@@ -1,10 +1,10 @@
import nre, os, ospaths, osproc, parsecfg, pegs, ropes, sequtils, streams, strutils, tables
const
- C_COMPILER_ENV = "CC"
- CPP_COMPILER_ENV = "CPP"
- DEFAULT_C_COMPILER = "gcc"
- DEFAULT_CPP_COMPILER = "g++"
+ cCompilerEnv = "CC"
+ cppCompilerEnv = "CPP"
+ defaultCCompiler = "gcc"
+ defaultCppCompiler = "g++"
var
gDoneRecursive: seq[string] = @[]
@@ -14,8 +14,8 @@ var
gConfig: Config
gFilter = ""
gQuotes = true
- gCppCompiler = getEnv(CPP_COMPILER_ENV, DEFAULT_C_COMPILER)
- gCCompiler = getEnv(C_COMPILER_ENV, DEFAULT_CPP_COMPILER)
+ gCppCompiler = getEnv(cppCompilerEnv, defaultCCompiler)
+ gCCompiler = getEnv(cCompilerEnv, defaultCppCompiler)
gOutput = ""
gIncludes: seq[string] = @[]
gExcludes: seq[string] = @[]
@@ -727,13 +727,13 @@ proc runCfg(cfg: string) =
gCppCompiler = gConfig["n.global"]["cpp_compiler"]
else:
# Reset on a per project basis
- gCppCompiler = getEnv(CPP_COMPILER_ENV, DEFAULT_CPP_COMPILER)
+ gCppCompiler = getEnv(cppCompilerEnv, defaultCppCompiler)
if gConfig["n.global"].hasKey("c_compiler"):
gCCompiler = gConfig["n.global"]["c_compiler"]
else:
# Reset on a per project basis
- gCCompiler = getEnv(C_COMPILER_ENV, DEFAULT_C_COMPILER)
+ gCCompiler = getEnv(cCompilerEnv, defaultCCompiler)
if gConfig["n.global"].hasKey("filter"):
gFilter = gConfig["n.global"]["filter"]