diff options
author | Araq <rumpf_a@web.de> | 2019-07-11 00:28:20 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-11 00:28:20 +0200 |
commit | cb3c3c306c6507a09c15da26828a39fbbd4dbc66 (patch) | |
tree | 5543b3ddfb23e6a748db4e475a103fe9b1cf1f6d /nimsuggest/nimsuggest.nim | |
parent | 38bdf1cd7f4d5c6e22a70ee32438beccc7e36690 (diff) | |
download | Nim-cb3c3c306c6507a09c15da26828a39fbbd4dbc66.tar.gz |
minor style changes
Diffstat (limited to 'nimsuggest/nimsuggest.nim')
-rw-r--r-- | nimsuggest/nimsuggest.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 299f68352..1a60c3fb6 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -274,7 +274,7 @@ template setVerbosity(level: typed) = conf.notes = NotesVerbosity[gVerbosity] proc connectToNextFreePort(server: Socket, host: string): Port = - server.bindaddr(Port(0), host) + server.bindAddr(Port(0), host) let (_, port) = server.getLocalAddr result = port @@ -342,9 +342,9 @@ proc argsToStr(x: SexpNode): string = result.add ';' result.add dirty.escape result.add ':' - result.add line + result.addInt line result.add ':' - result.add col + result.addInt col proc replEpc(x: ThreadParams) {.thread.} = var server = newSocket() @@ -393,7 +393,7 @@ proc replEpc(x: ThreadParams) {.thread.} = of "return", "return-error": "no return expected" else: - "unexpected call: " & epcAPI + "unexpected call: " & epcApi quit errMessage proc execCmd(cmd: string; graph: ModuleGraph; cachedMsgs: CachedMsgs) = @@ -464,7 +464,7 @@ proc recompileFullProject(graph: ModuleGraph) = resetSystemArtifacts(graph) graph.vm = nil graph.resetAllModules() - GC_fullcollect() + GC_fullCollect() compileProject(graph) #echo GC_getStatistics() @@ -553,10 +553,10 @@ proc processCmdLine*(pass: TCmdLinePass, cmd: string; conf: ConfigRef) = parseopt.next(p) case p.kind of cmdEnd: break - of cmdLongoption, cmdShortOption: + of cmdLongOption, cmdShortOption: case p.key.normalize of "help", "h": - stdout.writeline(Usage) + stdout.writeLine(Usage) quit() of "autobind": gMode = mtcp @@ -614,7 +614,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = self.initDefinesProg(conf, "nimsuggest") if paramCount() == 0: - stdout.writeline(Usage) + stdout.writeLine(Usage) return self.processCmdLineAndProjectPath(conf) @@ -636,7 +636,7 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = discard self.loadConfigsAndRunMainCommand(cache, conf) when isMainModule: - handleCmdline(newIdentCache(), newConfigRef()) + handleCmdLine(newIdentCache(), newConfigRef()) else: export Suggest export IdeCmd |