Imported from ../bash-2.05.tar.gz.
This commit is contained in:
parent
bb70624e96
commit
28ef6c316f
251 changed files with 22319 additions and 12413 deletions
|
|
@ -651,7 +651,7 @@ imalloc (size)
|
|||
final free block; if so we don't need to get as much. */
|
||||
if (_heaplimit != 0 && block + lastblocks == _heaplimit &&
|
||||
/* We can't do this if we will have to make the heap info
|
||||
table bigger to accomodate the new space. */
|
||||
table bigger to accomodate the new space. */
|
||||
block + wantblocks <= heapsize &&
|
||||
get_contiguous_space ((wantblocks - lastblocks) * BLOCKSIZE,
|
||||
ADDRESS (block + lastblocks)))
|
||||
|
|
@ -1165,7 +1165,7 @@ irealloc (ptr, size)
|
|||
the thing we just freed. Unfortunately it might
|
||||
have been coalesced with its neighbors. */
|
||||
if (_heapindex == block)
|
||||
(void) imalloc (blocks * BLOCKSIZE);
|
||||
(void) imalloc (blocks * BLOCKSIZE);
|
||||
else
|
||||
{
|
||||
genptr_t previous;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue