1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A/* Allocation with freeing and reallocing of last allocated block only. 1N/A** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94. 1N/A /* there is no usable free space in region, try extending */ 1N/A {
/* see if it was one of ours */ 1N/A /* set 's' to be the current available space */ 1N/A {
if(s >= 0)
/* amount to extend */ 1N/A /* new block and size */ 1N/A /* find the segment containing this block */ 1N/A /* get a suitably aligned address */ 1N/A /* free the unused tail */ 1N/A/* Public method for free-1 allocation */