diff options
author | 2014-09-26 14:39:45 -0700 | |
---|---|---|
committer | 2014-09-26 14:39:45 -0700 | |
commit | 1c2ea2cdc0e8c4e5af942c51b234c5af527944f6 (patch) | |
tree | 26554b52f6dcd97e2194c4b0c32106b6a2b72f92 /Documentation/technical | |
parent | Merge branch 'jk/close-stderr-of-credential-cache-deamon' (diff) | |
parent | use REALLOC_ARRAY for changing the allocation size of arrays (diff) | |
download | tgif-1c2ea2cdc0e8c4e5af942c51b234c5af527944f6.tar.xz |
Merge branch 'rs/realloc-array'
Code cleanup.
* rs/realloc-array:
use REALLOC_ARRAY for changing the allocation size of arrays
add macro REALLOC_ARRAY
Diffstat (limited to 'Documentation/technical')
-rw-r--r-- | Documentation/technical/api-allocation-growing.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/technical/api-allocation-growing.txt b/Documentation/technical/api-allocation-growing.txt index 542946b1ba..5a59b54844 100644 --- 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`. |