From 04ebe7be51a458dfce01fefd0041e2ed618508a7 Mon Sep 17 00:00:00 2001 From: Zion Date: Mon, 27 Mar 2017 23:55:51 -0700 Subject: [PATCH 1/4] Make fonts load from https rather than http --- config/nimdoc.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 832b4ffd01..d2cfc95401 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -133,8 +133,8 @@ doc.file = """ - - + + $title From 3fc75b2ca411a49c9b61a8b023eb167fa452e353 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Wed, 29 Mar 2017 09:32:16 +0300 Subject: [PATCH 2/4] Fix tioselectors.nim test timeouts to be executed in appveyor more stable. (#5622) --- tests/async/tioselectors.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/async/tioselectors.nim b/tests/async/tioselectors.nim index 048111d030..5e5a18a1b3 100644 --- a/tests/async/tioselectors.nim +++ b/tests/async/tioselectors.nim @@ -508,8 +508,8 @@ else: freeAddrInfo(aiList) # for some reason Windows select doesn't return both # descriptors from first call, so we need to make 2 calls - discard selector.select(100) - var rcm = selector.select(100) + discard selector.select(1000) + var rcm = selector.select(1000) assert(len(rcm) == 2) var sockAddress = SockAddr() @@ -526,7 +526,7 @@ else: selector.updateHandle(client_socket, {Event.Read}) - var rc2 = selector.select(100) + var rc2 = selector.select(1000) assert(len(rc2) == 1) var read_count = recv(server2_socket, addr buffer[0], 128, 0) @@ -595,7 +595,7 @@ else: proc event_wait_thread(event: SelectEvent) {.thread.} = var selector = newSelector[int]() selector.registerEvent(event, 1) - var rc = selector.select(500) + var rc = selector.select(1500) if len(rc) == 1: inc(counter) selector.unregister(event) From 977758fe062a51f6d6dc2be227688ddfa768c680 Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Wed, 29 Mar 2017 09:34:07 +0300 Subject: [PATCH 3/4] Fix posix.nim `dirent` structure to be more compatible with OSes. (#5623) --- lib/posix/posix.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index a18db21500..b29f43eb4c 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -109,12 +109,17 @@ type Dirent* {.importc: "struct dirent", header: "", final, pure.} = object ## dirent_t struct d_ino*: Ino ## File serial number. - when defined(linux) or defined(macosx) or defined(bsd): + when defined(dragonfly): + # DragonflyBSD doesn't have `d_reclen` field. + d_type*: uint8 + elif defined(linux) or defined(macosx) or defined(freebsd) or + defined(netbsd) or defined(openbsd): d_reclen*: cshort ## Length of this record. (not POSIX) d_type*: int8 ## Type of file; not supported by all filesystem types. ## (not POSIX) - when defined(linux) or defined(bsd): + when defined(linux) or defined(openbsd): d_off*: Off ## Not an offset. Value that ``telldir()`` would return. + d_name*: array[0..255, char] ## Name of entry. Tflock* {.importc: "struct flock", final, pure, From 27a291c09e5b8861fa195e782c9b46d9bd44b77b Mon Sep 17 00:00:00 2001 From: Tomas Vojtisek Date: Wed, 29 Mar 2017 08:36:10 +0200 Subject: [PATCH 4/4] Update threadpool.nim (#5624) --- lib/pure/concurrency/threadpool.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim index 8cdb83e196..f438a85e76 100644 --- a/lib/pure/concurrency/threadpool.nim +++ b/lib/pure/concurrency/threadpool.nim @@ -418,7 +418,7 @@ proc spawn*(call: expr): expr {.magic: "Spawn".} proc pinnedSpawn*(id: ThreadId; call: expr): expr {.magic: "Spawn".} ## always spawns a new task on the worker thread with ``id``, so that ## the 'call' is **always** executed on - ## the this thread. 'call' has to be proc call 'p(...)' where 'p' + ## the thread. 'call' has to be proc call 'p(...)' where 'p' ## is gcsafe and has a return type that is either 'void' or compatible ## with ``FlowVar[T]``.