/* * Adds a point on the left side. */ static void AddLeftPoint( register PathClass *t, short x, short y, short onOff ) { register long count = t->leftCount; register short *xyLeft; if ( (t->leftCount = count + 3) > t->leftMaxCount ) { t->leftMaxCount = count + (count>>1) + 16; t->xyLeft = (short *)tsi_ReAllocMem( t->mem, t->xyLeft, sizeof(short) * t->leftMaxCount ); }
void WriteInt32( OutputStream *stream, tt_int32 value ) { register tt_uint32 pos = stream->pos; register unsigned char *ptr; register tt_uint32 lword = (tt_uint32)value; pos += 4; if ( pos > stream->maxLength ) { stream->maxLength = pos + (pos>>1); stream->base = (tt_uint8 *)tsi_ReAllocMem( stream->mem, stream->base, stream->maxLength ); assert( stream->base != NULL ); }
void *tsi_ReAllocArray(register tsiMemObject *t, void *pIn, size_t size, size_t n) { tsi_Assert(t, SAFE_TO_ALLOC(size, n), T2K_ERR_MEM_MALLOC_FAILED); return tsi_ReAllocMem(t, pIn, size*n); }