Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ws/grep-quiet-no-pager' into maint
[gitweb.git]
/
Documentation
/
technical
/
api-allocation-growing.txt
diff --git
a/Documentation/technical/api-allocation-growing.txt
b/Documentation/technical/api-allocation-growing.txt
index 542946b1ba701069837b702cbd8fe8079cecf56d..5a59b548448f3744a24ff9a58181b105f9cb1934 100644
(file)
--- a/
Documentation/technical/api-allocation-growing.txt
+++ b/
Documentation/technical/api-allocation-growing.txt
@@
-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`.