| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Automatically reformat com32/lib/realloc.c using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
With loadfile() doing megabyte-sized trial-and-error allocations, we
want to be able to do really set the size on the final allocation;
thus constrain the amount of permitted slack to 4K max.
|
|
|
|
|
|
| |
When we realloc() a block larger, try to protect the free block
following it from being immediately allocated by something else by
placing it at the end of the freelist instead of the beginning.
|
|
|
|
|
|
| |
Change the realloc() implementation to allow in-place growth. This is
an important step in handling files without knowing their sizes a
priori.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hello list,
I've been playing with com32 programs lately and I've come across a
a problem with the realloc function in libcom32. The code that rounds
up the size looks to be missing a '~' operator, resulting in it
truncating every request to a size of 0-15 bytes.
The little patch below fixes it up to match the corresponding line in
malloc, which makes it work for me.
K.
|
|
|