tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
parent
ac9c1cd6b9
commit
e80465dacf
372 changed files with 4486 additions and 4486 deletions
|
|
@ -16,7 +16,7 @@ proc main() =
|
|||
createActorPool(actorPool, 1)
|
||||
|
||||
var some_data: some_type
|
||||
|
||||
|
||||
var inchannel = spawn(actorPool, some_data, thread_proc)
|
||||
var recv_data = ^inchannel
|
||||
close(inchannel[])
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ proc produce() {.thread.} =
|
|||
close(input)
|
||||
m.k = mEof
|
||||
chan.send(m)
|
||||
|
||||
|
||||
open(chan)
|
||||
createThread[void](consumer, consume)
|
||||
createThread[void](producer, produce)
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ proc echoLeTree(n: PNode) =
|
|||
echo it.data
|
||||
it = it.le
|
||||
|
||||
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
|
||||
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
|
||||
doNothing()
|
||||
for i in interval.a..interval.b:
|
||||
for i in interval.a..interval.b:
|
||||
var r = buildTree(i)
|
||||
echoLeTree(r) # for local data
|
||||
echoLeTree(root) # and the same for foreign data :-)
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ proc echoLeTree(n: PNode) =
|
|||
echo it.data
|
||||
it = it.le
|
||||
|
||||
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
|
||||
proc threadFunc(interval: tuple[a, b: int]) {.thread.} =
|
||||
doNothing()
|
||||
for i in interval.a..interval.b:
|
||||
for i in interval.a..interval.b:
|
||||
var r = buildTree(i)
|
||||
echoLeTree(r) # for local data
|
||||
root = buildTree(2) # BAD!
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ discard """
|
|||
cmd: "nim $target --hints:on --threads:on $options $file"
|
||||
"""
|
||||
|
||||
var
|
||||
var
|
||||
global: string = "test string"
|
||||
t: TThread[void]
|
||||
|
||||
|
|
|
|||
|
|
@ -31,5 +31,5 @@ while true:
|
|||
|
||||
echo "Finished listening"
|
||||
|
||||
joinThread(thr)
|
||||
joinThread(thr)
|
||||
close(chan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue