[PATCH] manual: Document replacing malloc [BZ #20424]

Florian Weimer fweimer@redhat.com
Thu Apr 13 12:27:00 GMT 2017


On 04/13/2017 02:21 PM, Andreas Schwab wrote:
> On Apr 13 2017, fweimer@redhat.com (Florian Weimer) wrote:
> 
>> diff --git a/manual/memory.texi b/manual/memory.texi
>> index 38d3c3a..adf3f89 100644
>> --- a/manual/memory.texi
>> +++ b/manual/memory.texi
>> @@ -167,6 +167,7 @@ special to @theglibc{} and GNU Compiler.
>>   * Unconstrained Allocation::    The @code{malloc} facility allows fully general
>>   		 		 dynamic allocation.
>>   * Allocation Debugging::        Finding memory leaks and not freed memory.
>> +* Replacing malloc::            You can use your own @code{malloc}-style allocator.
> 
> This line is too long.

I'm not sure if it's possible to wrap lines there without altering the 
Info output.

I'll change it to:

* Replacing malloc::            Using your own @code{malloc}-style 
allocator.

(On a single line, in case Thunderbird wraps it.)  This should avoid the 
issue.

>> +It is possible to use your own custom @code{malloc} instead of the
>> +built-in allocator provided by @theglibc{}.  @xref{Replacing malloc}
> 
> Period after @xref.

Thanks, fixed.

Florian



More information about the Libc-alpha mailing list