summary refs log tree commit diff stats
path: root/tests/array/tarrindx.nim
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/array/tarrindx.nim
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/array/tarrindx.nim')
-rw-r--r--tests/array/tarrindx.nim26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/array/tarrindx.nim b/tests/array/tarrindx.nim
index 13919cc2c..a8d72b338 100644
--- a/tests/array/tarrindx.nim
+++ b/tests/array/tarrindx.nim
@@ -1,13 +1,13 @@
-# test another strange bug ... (I hate this compiler; it is much too buggy!)

-

-proc putEnv(key, val: string) =

-  # XXX: we have to leak memory here, as we cannot

-  # free it before the program ends (says Borland's

-  # documentation)

-  var

-    env: ptr array[0..500000, char]

-  env = cast[ptr array[0..500000, char]](alloc(len(key) + len(val) + 2))

-  for i in 0..len(key)-1: env[i] = key[i]

-  env[len(key)] = '='

-  for i in 0..len(val)-1:

-    env[len(key)+1+i] = val[i]

+# test another strange bug ... (I hate this compiler; it is much too buggy!)
+
+proc putEnv(key, val: string) =
+  # XXX: we have to leak memory here, as we cannot
+  # free it before the program ends (says Borland's
+  # documentation)
+  var
+    env: ptr array[0..500000, char]
+  env = cast[ptr array[0..500000, char]](alloc(len(key) + len(val) + 2))
+  for i in 0..len(key)-1: env[i] = key[i]
+  env[len(key)] = '='
+  for i in 0..len(val)-1:
+    env[len(key)+1+i] = val[i]