Replace countup(x, y) with x .. y
This commit is contained in:
parent
f18b3af9d4
commit
cc28eef38e
35 changed files with 103 additions and 103 deletions
|
|
@ -664,7 +664,7 @@ proc loadDynamicLib(m: BModule, lib: PLib) =
|
|||
libCandidates(lib.path.strVal, s)
|
||||
rawMessage(m.config, hintDependency, lib.path.strVal)
|
||||
var loadlib: Rope = nil
|
||||
for i in countup(0, high(s)):
|
||||
for i in 0 .. high(s):
|
||||
inc(m.labels)
|
||||
if i > 0: add(loadlib, "||")
|
||||
let n = newStrNode(nkStrLit, s[i])
|
||||
|
|
@ -1710,7 +1710,7 @@ proc genModule(m: BModule, cfile: Cfile): Rope =
|
|||
add(result, "#define nimfr_(x, y)\n#define nimln_(x, y)\n")
|
||||
add(result, genSectionEnd(cfsFrameDefines, m.config))
|
||||
|
||||
for i in countup(cfsForwardTypes, cfsProcs):
|
||||
for i in cfsForwardTypes .. cfsProcs:
|
||||
if m.s[i].len > 0:
|
||||
moduleIsEmpty = false
|
||||
add(result, genSectionStart(i, m.config))
|
||||
|
|
@ -1811,7 +1811,7 @@ proc writeHeader(m: BModule) =
|
|||
generateHeaders(m)
|
||||
|
||||
generateThreadLocalStorage(m)
|
||||
for i in countup(cfsHeaders, cfsProcs):
|
||||
for i in cfsHeaders .. cfsProcs:
|
||||
add(result, genSectionStart(i, m.config))
|
||||
add(result, m.s[i])
|
||||
add(result, genSectionEnd(i, m.config))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue