Fixed deprecation warnings while Nim compiles.
I just removed unsigned and changed a writeLn() call to writeLine() to avoid the remaining deprecation warnings.
This commit is contained in:
parent
13c98222df
commit
0634486689
7 changed files with 7 additions and 8 deletions
|
|
@ -828,7 +828,7 @@ proc quit(msg: TMsgKind) =
|
||||||
proc log*(s: string) {.procvar.} =
|
proc log*(s: string) {.procvar.} =
|
||||||
var f: File
|
var f: File
|
||||||
if open(f, "nimsuggest.log", fmAppend):
|
if open(f, "nimsuggest.log", fmAppend):
|
||||||
f.writeln(s)
|
f.writeLine(s)
|
||||||
close(f)
|
close(f)
|
||||||
|
|
||||||
proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =
|
proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const debugEchoCode = false
|
||||||
import ast except getstr
|
import ast except getstr
|
||||||
|
|
||||||
import
|
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,
|
parser, vmdeps, idents, trees, renderer, options, transf, parseutils,
|
||||||
vmmarshal
|
vmmarshal
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
# this copy depends on the involved types.
|
# this copy depends on the involved types.
|
||||||
|
|
||||||
import
|
import
|
||||||
unsigned, strutils, ast, astalgo, types, msgs, renderer, vmdef,
|
strutils, ast, astalgo, types, msgs, renderer, vmdef,
|
||||||
trees, intsets, rodread, magicsys, options, lowerings
|
trees, intsets, rodread, magicsys, options, lowerings
|
||||||
|
|
||||||
from os import splitFile
|
from os import splitFile
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ when defined(Windows):
|
||||||
stdout.write "\n"
|
stdout.write "\n"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import linenoise, termios, unsigned
|
import linenoise, termios
|
||||||
|
|
||||||
proc readLineFromStdin*(prompt: string): TaintedString {.
|
proc readLineFromStdin*(prompt: string): TaintedString {.
|
||||||
tags: [ReadIOEffect, WriteIOEffect].} =
|
tags: [ReadIOEffect, WriteIOEffect].} =
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
# TODO: Clean up the exports a bit and everything else in general.
|
# TODO: Clean up the exports a bit and everything else in general.
|
||||||
|
|
||||||
import unsigned, os
|
import os
|
||||||
|
|
||||||
when hostOS == "solaris":
|
when hostOS == "solaris":
|
||||||
{.passl: "-lsocket -lnsl".}
|
{.passl: "-lsocket -lnsl".}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
## This module implements a high-level cross-platform sockets interface.
|
## This module implements a high-level cross-platform sockets interface.
|
||||||
|
|
||||||
{.deadCodeElim: on.}
|
{.deadCodeElim: on.}
|
||||||
import nativesockets, os, strutils, unsigned, parseutils, times
|
import nativesockets, os, strutils, parseutils, times
|
||||||
export Port, `$`, `==`
|
export Port, `$`, `==`
|
||||||
|
|
||||||
const useWinVersion = defined(Windows) or defined(nimdoc)
|
const useWinVersion = defined(Windows) or defined(nimdoc)
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
import
|
import strutils
|
||||||
strutils, unsigned
|
|
||||||
|
|
||||||
const Sha1DigestSize = 20
|
const Sha1DigestSize = 20
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue