]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/technical/api-allocation-growing.txt
add macro REALLOC_ARRAY
[thirdparty/git.git] / Documentation / technical / api-allocation-growing.txt
index 542946b1ba701069837b702cbd8fe8079cecf56d..5a59b548448f3744a24ff9a58181b105f9cb1934 100644 (file)
@@ -34,3 +34,6 @@ item[nr++] = value you like;
 ------------
 
 You are responsible for updating the `nr` variable.
+
+If you need to specify the number of elements to allocate explicitly
+then use the macro `REALLOC_ARRAY(item, alloc)` instead of `ALLOC_GROW`.