Change consts to camel case for nep1
This commit is contained in:
parent
3b60a0e4b1
commit
8e8e5fbd09
1 changed files with 8 additions and 8 deletions
16
nimgen.nim
16
nimgen.nim
|
|
@ -1,10 +1,10 @@
|
||||||
import nre, os, ospaths, osproc, parsecfg, pegs, ropes, sequtils, streams, strutils, tables
|
import nre, os, ospaths, osproc, parsecfg, pegs, ropes, sequtils, streams, strutils, tables
|
||||||
|
|
||||||
const
|
const
|
||||||
C_COMPILER_ENV = "CC"
|
cCompilerEnv = "CC"
|
||||||
CPP_COMPILER_ENV = "CPP"
|
cppCompilerEnv = "CPP"
|
||||||
DEFAULT_C_COMPILER = "gcc"
|
defaultCCompiler = "gcc"
|
||||||
DEFAULT_CPP_COMPILER = "g++"
|
defaultCppCompiler = "g++"
|
||||||
|
|
||||||
var
|
var
|
||||||
gDoneRecursive: seq[string] = @[]
|
gDoneRecursive: seq[string] = @[]
|
||||||
|
|
@ -14,8 +14,8 @@ var
|
||||||
gConfig: Config
|
gConfig: Config
|
||||||
gFilter = ""
|
gFilter = ""
|
||||||
gQuotes = true
|
gQuotes = true
|
||||||
gCppCompiler = getEnv(CPP_COMPILER_ENV, DEFAULT_C_COMPILER)
|
gCppCompiler = getEnv(cppCompilerEnv, defaultCCompiler)
|
||||||
gCCompiler = getEnv(C_COMPILER_ENV, DEFAULT_CPP_COMPILER)
|
gCCompiler = getEnv(cCompilerEnv, defaultCppCompiler)
|
||||||
gOutput = ""
|
gOutput = ""
|
||||||
gIncludes: seq[string] = @[]
|
gIncludes: seq[string] = @[]
|
||||||
gExcludes: seq[string] = @[]
|
gExcludes: seq[string] = @[]
|
||||||
|
|
@ -727,13 +727,13 @@ proc runCfg(cfg: string) =
|
||||||
gCppCompiler = gConfig["n.global"]["cpp_compiler"]
|
gCppCompiler = gConfig["n.global"]["cpp_compiler"]
|
||||||
else:
|
else:
|
||||||
# Reset on a per project basis
|
# 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"):
|
if gConfig["n.global"].hasKey("c_compiler"):
|
||||||
gCCompiler = gConfig["n.global"]["c_compiler"]
|
gCCompiler = gConfig["n.global"]["c_compiler"]
|
||||||
else:
|
else:
|
||||||
# Reset on a per project basis
|
# Reset on a per project basis
|
||||||
gCCompiler = getEnv(C_COMPILER_ENV, DEFAULT_C_COMPILER)
|
gCCompiler = getEnv(cCompilerEnv, defaultCCompiler)
|
||||||
|
|
||||||
if gConfig["n.global"].hasKey("filter"):
|
if gConfig["n.global"].hasKey("filter"):
|
||||||
gFilter = gConfig["n.global"]["filter"]
|
gFilter = gConfig["n.global"]["filter"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue