smalloc: allow different external array types
authorTrevor Norris <trev.norris@gmail.com>
Fri, 19 Jul 2013 23:15:25 +0000 (16:15 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 7 Aug 2013 19:53:24 +0000 (12:53 -0700)
commitcec81593d7e42c83b9498be5835defb24d1743bd
treeabdaa65fd95d9ce38fa02906c675ab9ed874ac4b
parentcd00064566f1233aee27896e8aac91097b37b3c7
smalloc: allow different external array types

smalloc.alloc now accepts an optional third argument which allows
specifying the type of array that should be allocated. All available
types are now located on smalloc.Types.
doc/api/smalloc.markdown
lib/smalloc.js
src/smalloc.cc
src/smalloc.h
test/simple/test-smalloc.js