changeset 6:2eb5b736d522

Added TRANSIENT argument.
author Sjoerd Mullender <sjoerd@acm.org>
date Fri, 11 Dec 2015 10:33:27 +0100 (2015-12-11)
parents c3f23ea91e48
children 38931ec299f8
files reverse/README.rst
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/reverse/README.rst	Tue Dec 01 22:22:31 2015 +0100
+++ b/reverse/README.rst	Fri Dec 11 10:33:27 2015 +0100
@@ -235,10 +235,11 @@
 know that the size of the BAT will be the same as the input BAT.
 Hence we can use this code::
 
- bn = BATnew(TYPE_void, TYPE_str, BATcount(b));
+ bn = BATnew(TYPE_void, TYPE_str, BATcount(b), TRANSIENT);
 
 The arguments of ``BATnew`` are the types of the *head* and *tail*
-columns, and the initial size of the to-be-allocated BAT.  ``BATnew``
+columns, the initial size of the to-be-allocated BAT, and
+``TRANSIENT`` to indicate that this BAT is temporary.  ``BATnew``
 guarantees that there is space for at least the specified number of
 elements, or it returns ``NULL``.  Since we call ``BUNappend`` to add
 entries to the BAT, we're actually not concerned about the size of the