Merge pull request #3735 from oderwat/FixDeprecationWarnings

Fixed deprecation warnings while Nim compiles.
This commit is contained in:
Andreas Rumpf 2016-01-19 10:11:23 +01:00
commit 0dee918de9
7 changed files with 7 additions and 8 deletions

View file

@ -828,7 +828,7 @@ proc quit(msg: TMsgKind) =
proc log*(s: string) {.procvar.} =
var f: File
if open(f, "nimsuggest.log", fmAppend):
f.writeln(s)
f.writeLine(s)
close(f)
proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =

View file

@ -15,7 +15,7 @@ const debugEchoCode = false
import ast except getstr
import
strutils, astalgo, msgs, vmdef, vmgen, nimsets, types, passes, unsigned,
strutils, astalgo, msgs, vmdef, vmgen, nimsets, types, passes,
parser, vmdeps, idents, trees, renderer, options, transf, parseutils,
vmmarshal

View file

@ -28,7 +28,7 @@
# this copy depends on the involved types.
import
unsigned, strutils, ast, astalgo, types, msgs, renderer, vmdef,
strutils, ast, astalgo, types, msgs, renderer, vmdef,
trees, intsets, rodread, magicsys, options, lowerings
from os import splitFile