summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-03-07 00:09:23 +0100
committerEXetoC <exetoc@gmail.com>2014-03-07 00:09:23 +0100
commit3ae21ea48e5f61ccf757bc3588c3124e2b2899b3 (patch)
tree9f995df7d87ac76ee3ae712ab36b38f408a2758b
parentd1bc6cf0981eddf283515c2d77bccca76abff99f (diff)
downloadNim-3ae21ea48e5f61ccf757bc3588c3124e2b2899b3.tar.gz
Better names.
-rw-r--r--lib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 171c7b6b8..de918c78b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1195,7 +1195,7 @@ when not defined(nimrodVM):
       ## be freed with ``dealloc``.
       ## The allocated memory belongs to its allocating thread!
       ## Use `reallocShared` to reallocate from a shared heap.
-    proc reallocType*[T](p: ptr T, newSize: int): ptr T {.inline.} =
+    proc resize*[T](p: ptr T, newSize: int): ptr T {.inline.} =
       ## grows or shrinks a given memory block. If p is **nil** then a new
       ## memory block is returned. In either way the block has at least
       ## ``T.sizeof * newSize`` bytes. If ``newSize == 0`` and p is not
@@ -1244,7 +1244,7 @@ when not defined(nimrodVM):
       ## least ``newSize`` bytes. If ``newSize == 0`` and p is not **nil**
       ## ``reallocShared`` calls ``deallocShared(p)``. In other cases the
       ## block has to be freed with ``deallocShared``.
-    proc reallocSharedType*[T](p: ptr T, newSize: int): ptr T {.inline.} =
+    proc resizeShared*[T](p: ptr T, newSize: int): ptr T {.inline.} =
       ## grows or shrinks a given memory block on the heap. If p is **nil**
       ## then a new memory block is returned. In either way the block has at
       ## least ``T.sizeof * newSize`` bytes. If ``newSize == 0`` and p is