diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-06-23 12:42:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-06-23 12:42:57 +0300 |
commit | ec2e54b2c075f30e9499adea22681499e3f6582d (patch) | |
tree | eead84bdf1f41b78f90f00c13e02dd59eae92133 /doc/gawktexi.in | |
parent | 9ccddb999bb2d79c261702f789deb9371090a4ec (diff) | |
parent | 44e29458a6355ad64e8d89676a441b224ce76cbc (diff) | |
download | egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.gz egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.bz2 egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 8ca76fd6..02cba2ea 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -32000,8 +32000,8 @@ to use its version of @code{free()} when the memory came from an unrelated version of @code{malloc()}, unexpected behavior would likely result. -Two convenience macros may be used for allocating storage -from @code{gawk_malloc()} and +Three convenience macros may be used for allocating storage +from @code{gawk_malloc()}, @code{gawk_calloc}, and @code{gawk_realloc()}. If the allocation fails, they cause @command{gawk} to exit with a fatal error message. They should be used as if they were procedure calls that do not return a value: @@ -32040,6 +32040,12 @@ strcpy(message, greet); make_malloced_string(message, strlen(message), & result); @end example +@item #define ezalloc(pointer, type, size, message) @dots{} +This is like @code{emalloc()}, but it calls @code{gawk_calloc()} +instead of @code{gawk_malloc()}. +The arguments are the same as for the @code{emalloc()} macro, but this +macro guarantees that the memory returned is initialized to zero. + @item #define erealloc(pointer, type, size, message) @dots{} This is like @code{emalloc()}, but it calls @code{gawk_realloc()} instead of @code{gawk_malloc()}. |