Esempio n. 1
0
/*
 * The ebscClass class destructor (EBSC table)
 */
void Delete_ebscClass( ebscClass *t )
{
	if ( t != NULL ) {
		tsi_DeAllocMem( t->mem, t->table );
		tsi_DeAllocMem( t->mem, t );
	}
}
Esempio n. 2
0
	void Delete_cvtClass( cvtClass *t )
	{
		if ( t != NULL ) {
			tsi_DeAllocMem( t->mem, t->varFWords );
			tsi_DeAllocMem( t->mem, t );
		}
	}
Esempio n. 3
0
	void Delete_prepClass( prepClass *t )
	{
		if ( t != NULL ) {
			tsi_DeAllocMem( t->mem, t->instructions );
			tsi_DeAllocMem( t->mem, t );
		}
	}
Esempio n. 4
0
/*
 * The blocClass class destructor (EBLC/bloc table)
 */
void Delete_blocClass( blocClass *t )
{
	register int i;
	if ( t != NULL ) {
		for ( i = 0; i < (int)t->nTables; i++ ) {
			Delete_bitmapSizeTable( t->table[i] );
		}
		tsi_DeAllocMem( t->mem, t->table );
		tsi_DeAllocMem( t->mem, t->gInfo.baseAddr );
		tsi_DeAllocMem( t->mem, t );
	}
}
Esempio n. 5
0
void Delete_InputStream( InputStream *t, int *errCode )
{
	if ( t != NULL ) {
		if ( errCode == NULL || (*errCode = setjmp( t->mem->env)) == 0 ) {
			/* try */
			if ( t->constructorType == 1 ) {
				tsi_DeAllocMem( t->mem, t->privateBase );
			}
			tsi_DeAllocMem( t->mem, t );
		} else {
			/* catch */
			tsi_EmergencyShutDown( t->mem );
		}
	}
}
Esempio n. 6
0
/* When the contour allocation is no longer needed, it can be released.*/
void ReleaseContourData(tsiMemObject *mem, ContourData *cd)
{
	if(cd->initializedContour)
 		if ( cd->ContourDataArray) {
 				tsi_DeAllocMem( mem, (void *) cd->ContourDataArray );
 				cd->ContourDataArray =0;
 			}
}
Esempio n. 7
0
void FF_CM_Delete(FF_CM_Class *theCache, int *errCode)
{
	tsiMemObject *tempmem = theCache->mem;

	*errCode = 0;
#ifdef PALM
	MemHandleFree(memH);
#else
	tsi_DeAllocMem( theCache->mem, (void *)theCache);
#endif
	tsi_DeleteMemhandler( tempmem);
}
Esempio n. 8
0
/*
 * The Destructor.
 */
void Delete_OrionModelClass( OrionModelClass *t )
{
	if ( t != NULL ) {
		int i;

		for ( i = 0; i < t->num_e; i++ ) {
			Delete_SCODER( t->literal[i] );
		}

		for ( i = 0; i < t->num_eb1; i++ ) {
			Delete_SCODER( t->copy[i] );
		}
		tsi_DeAllocMem( t->mem, t->literal );
		tsi_DeAllocMem( t->mem, t->copy );
		Delete_SCODER( t->control );
		Delete_SCODER( t->ep );
		tsi_DeAllocMem( t->mem, t->dx );
		tsi_DeAllocMem( t->mem, t->dy );
		tsi_DeAllocMem( t->mem, t->onCurve );
		tsi_DeAllocMem( t->mem, t );
	}
}
Esempio n. 9
0
/*
 * The bitmapSizeTable class destructor
 */
static void Delete_bitmapSizeTable( bitmapSizeTableT2K *t )
{
	
	tsi_DeAllocMem( t->mem, t->table );
	tsi_DeAllocMem( t->mem, t );
}
Esempio n. 10
0
/*
 * Deletes a PathClass.
 */
static void Delete_PathClass( PathClass *t )
{
	tsi_DeAllocMem( t->mem, t->xyLeft );
	tsi_DeAllocMem( t->mem, t->xyRight );
	tsi_DeAllocMem( t->mem, t );
}