FDK/Tools/Programs/public/lib/source/cffwrite/cffwrite_t2cstr.c
/* Save op code in charstring. */
Save op code in charstring.
Save op code in charstring .
static void cstr_saveop(cstrCtx h, int op)
	{
	if (h->cstr.cnt + 1 >= h->cstr.size)
		{
		if (dnaGrow(&h->cstr, 1, h->cstr.cnt + 1))
			{
			h->g->err.code = cfwErrNoMemory;
			return;
			}
		}
	if (op & 0xff00)
		h->cstr.array[h->cstr.cnt++] = tx_escape;
	h->cstr.array[h->cstr.cnt++] = (unsigned char)op;
	}
static void cstr_saveop ( cstrCtx h , int op ) { if ( h -> cstr . cnt + 1 >= h -> cstr . size ) { if ( dnaGrow ( & h -> cstr , 1 , h -> cstr . cnt + 1 ) ) { h -> g -> err . code = cfwErrNoMemory ; return ; } } if ( op & 0xff00 ) h -> cstr . array [ h -> cstr . cnt ++ ] = tx_escape ; h -> cstr . array [ h -> cstr . cnt ++ ] = ( unsigned char ) op ; }
Save op code in charstring.
Save op code in charstring .
/* Grow buffer to accomodate maximum op size */