]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/arrays.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / arrays.hpp
index 8db65414e52e852b992708c0c609c2ed62ee83a5..6be877b63d412cb45f3878c487904286d22f88eb 100644 (file)
@@ -18,11 +18,12 @@ struct growable_array {
   cell count;
   data_root<array> elements;
 
-  /* Allocates memory */
+  // Allocates memory
   growable_array(factor_vm* parent, cell capacity = 10)
       : count(0),
         elements(parent->allot_array(capacity, false_object), parent) {}
 
+  void reallot_array(cell count);
   void add(cell elt);
   void append(array* elts);
   void trim();