engine/zone.c
/*	Run consistancy and sentinal trahing checks
*/
Run consistancy and sentinal trahing checks
Run consistancy and sentinal trahing checks
void Hunk_Check (void)
{
	hunk_t	*h;
	for (h = (hunk_t *)hunk_base ; (byte *)h != hunk_base + hunk_low_used ; )
	{
		if (h->sentinal != HUNK_SENTINAL)
			Sys_Error ("Hunk_Check: trahsed sentinal");
		if (h->size < 16 || h->size + (byte *)h - hunk_base > hunk_size)
			Sys_Error ("Hunk_Check: bad size");
		h = (hunk_t *)((byte *)h+h->size);
	}
}
void Hunk_Check ( void ) { hunk_t * h ; for ( h = ( hunk_t * ) hunk_base ; ( byte * ) h != hunk_base + hunk_low_used ; ) { if ( h -> sentinal != HUNK_SENTINAL ) Sys_Error ( " " ) ; if ( h -> size < 16 || h -> size + ( byte * ) h - hunk_base > hunk_size ) Sys_Error ( " " ) ; h = ( hunk_t * ) ( ( byte * ) h + h -> size ) ; } }
Run consistancy and sentinal trahing checks
Run consistancy and sentinal trahing checks