engine/zone.c
/*	Return space from the top of the hunk
*/
Return space from the top of the hunk
Return space from the top of the hunk
void *Hunk_TempAlloc (int size)
{
	void	*buf;
	size = (size+15)&~15;
	if (hunk_tempactive)
	{
		Hunk_FreeToHighMark (hunk_tempmark);
		hunk_tempactive = FALSE;
	}
	hunk_tempmark = Hunk_HighMark ();
	buf = Hunk_HighAllocName (size, "temp");
	hunk_tempactive = TRUE;
	return buf;
}
void * Hunk_TempAlloc ( int size ) { void * buf ; size = ( size + 15 ) & ~ 15 ; if ( hunk_tempactive ) { Hunk_FreeToHighMark ( hunk_tempmark ) ; hunk_tempactive = FALSE ; } hunk_tempmark = Hunk_HighMark ( ) ; buf = Hunk_HighAllocName ( size , " " ) ; hunk_tempactive = TRUE ; return buf ; }
Return space from the top of the hunk
Return space from the top of the hunk