Merge branch 'devel' into faster-nimsuggest

This commit is contained in:
Andreas Rumpf
2017-02-25 08:17:22 +01:00
9 changed files with 56 additions and 6 deletions

View File

@@ -46,6 +46,8 @@
##
## **Warning:** The global list of handlers is a thread var, this means that
## the handlers must be re-added in each thread.
## **Warning:** When logging on disk or console, only error and fatal messages
## are flushed out immediately. Use flushFile() where needed.
import strutils, times
when not defined(js):

View File

@@ -898,7 +898,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
proc toHex*[T](x: T): string =
## Shortcut for ``toHex(x, T.sizeOf * 2)``
toHex(x, T.sizeOf * 2)
toHex(BiggestInt(x), T.sizeOf * 2)
proc intToStr*(x: int, minchars: Positive = 1): string {.noSideEffect,
rtl, extern: "nsuIntToStr".} =

View File

@@ -24,7 +24,7 @@
## echo "run before each test"
##
## teardown:
## echo "run after each test":
## echo "run after each test"
##
## test "essential truths":
## # give up and stop if this fails

View File

@@ -2743,6 +2743,7 @@ when not defined(JS): #and not defined(nimscript):
# we use binary mode on Windows:
c_setmode(c_fileno(stdin), O_BINARY)
c_setmode(c_fileno(stdout), O_BINARY)
c_setmode(c_fileno(stderr), O_BINARY)
when defined(endb):
proc endbStep()