diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-02-24 01:28:50 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-02-24 01:28:50 +0100 |
commit | 46f33515d7ec32215122547bce535e4c91894da3 (patch) | |
tree | 888b5cc0c39934b93483816a06048da8bc4f5cea /tools | |
parent | ac3b312cc6a2a010811f35c28fe985c3d2d989b3 (diff) | |
parent | 2d546ca0ac80486b8f31e389ef19e4d65093a1fa (diff) | |
download | Nim-46f33515d7ec32215122547bce535e4c91894da3.tar.gz |
Merge branch 'devel' into faster-nimsuggest
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nimsuggest/nimsuggest.nim | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tools/nimsuggest/nimsuggest.nim b/tools/nimsuggest/nimsuggest.nim index f4d72b67e..57d343ae4 100644 --- a/tools/nimsuggest/nimsuggest.nim +++ b/tools/nimsuggest/nimsuggest.nim @@ -15,7 +15,7 @@ import strutils, os, parseopt, parseutils, sequtils, net, rdstdin, sexp # So we import that one instead. import compiler / [options, commands, modules, sem, passes, passaux, msgs, nimconf, - extccomp, condsyms, lists, + extccomp, condsyms, sigmatch, ast, scriptconfig, idents, modulegraphs, compilerlog, vm] @@ -427,10 +427,8 @@ proc recompileFullProject(graph: ModuleGraph; cache: IdentCache) = proc mainThread(graph: ModuleGraph; cache: IdentCache) = if gLogging: - var it = searchPaths.head - while it != nil: - logStr(PStrEntry(it).data) - it = it.next + for it in searchPaths: + logStr(it) proc wrHook(line: string) {.closure.} = if gMode == mepc: @@ -503,10 +501,8 @@ proc serveEpc(server: Socket; graph: ModuleGraph; cache: IdentCache) {.deprecate # Wait for connection accept(server, client) if gLogging: - var it = searchPaths.head - while it != nil: - logStr(PStrEntry(it).data) - it = it.next + for it in searchPaths: + logStr(it) msgs.writelnHook = proc (line: string) = logStr(line) while true: @@ -559,7 +555,7 @@ proc mainCommand(graph: ModuleGraph; cache: IdentCache) = incl gGlobalOptions, optCaasEnabled isServing = true wantMainModule() - appendStr(searchPaths, options.libpath) + add(searchPaths, options.libpath) #if gProjectFull.len != 0: # current path is always looked first for modules # prependStr(searchPaths, gProjectPath) |