summary refs log tree commit diff stats
path: root/tests/dll
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
committerAdam Strzelecki <ono@java.pl>2015-09-04 23:04:32 +0200
commite80465dacf50f260abec30ae57d37b298c93fd83 (patch)
tree393394f8353a4adb49f95e6f13da1fd41681b7b3 /tests/dll
parentac9c1cd6b980d4f00eeb52d1109d8e2c8cd21213 (diff)
downloadNim-e80465dacf50f260abec30ae57d37b298c93fd83.tar.gz
tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
Diffstat (limited to 'tests/dll')
-rw-r--r--tests/dll/client.nim6
-rw-r--r--tests/dll/server.nim10
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/dll/client.nim b/tests/dll/client.nim
index d535e8750..150af3a17 100644
--- a/tests/dll/client.nim
+++ b/tests/dll/client.nim
@@ -22,8 +22,8 @@ else:
 
 proc newLit(x: int): PNode {.importc: "newLit", dynlib: dllname.}
 proc newOp(k: TNodeKind, a, b: PNode): PNode {.
-  importc: "newOp", dynlib: dllname.}  
-proc buildTree(x: int): PNode {.importc: "buildTree", dynlib: dllname.} 
+  importc: "newOp", dynlib: dllname.}
+proc buildTree(x: int): PNode {.importc: "buildTree", dynlib: dllname.}
 
 proc eval(n: PNode): int =
   case n.k
@@ -36,6 +36,6 @@ proc eval(n: PNode): int =
 # Test the GC:
 for i in 0..100_000:
   discard eval(buildTree(2))
-  
+
 echo "Done"
 
diff --git a/tests/dll/server.nim b/tests/dll/server.nim
index df3223444..e6b80df88 100644
--- a/tests/dll/server.nim
+++ b/tests/dll/server.nim
@@ -10,11 +10,11 @@ type
     else: a, b: ref TNode
 
   PNode = ref TNode
-    
+
 proc newLit(x: int): PNode {.exportc: "newLit", dynlib.} =
   new(result)
   result.x = x
-  
+
 proc newOp(k: TNodeKind, a, b: PNode): PNode {.exportc: "newOp", dynlib.} =
   assert a != nil
   assert b != nil
@@ -22,13 +22,13 @@ proc newOp(k: TNodeKind, a, b: PNode): PNode {.exportc: "newOp", dynlib.} =
   result.k = k
   result.a = a
   result.b = b
-  
-proc buildTree(x: int): PNode {.exportc: "buildTree", dynlib.} = 
+
+proc buildTree(x: int): PNode {.exportc: "buildTree", dynlib.} =
   result = newOp(nkMul, newOp(nkAdd, newLit(x), newLit(x)), newLit(x))
 
 when false:
   # Test the GC:
   for i in 0..100_000:
     discard buildTree(2)
-    
+
   echo "Done"