FDK/Tools/Programs/public/lib/source/cffwrite/cffwrite_t2cstr.c
/* Save operator and args to charstring. Return 1 on error else 0. */
Save operator and args to charstring. Return 1 on error else 0.
Save operator and args to charstring . Return 1 on error else 0 .
static void saveop(cstrCtx h, int op)
	{
	if (h->stack.cnt != 0)
		{
		int i;
		for (i = 0; i < h->stack.cnt; i++)
			cstr_savenum(h, h->stack.array[i]);
		h->stack.cnt = 0;
		}
	switch (op)
		{
	case tx_hlineto:
	case tx_vlineto:
	case tx_hvcurveto:
	case tx_vhcurveto:
		cstr_saveop(h, h->seqop);
		break;
	default:
		cstr_saveop(h, op);
		break;
		}
	h->pendop = tx_noop;	
	}
static void saveop ( cstrCtx h , int op ) { if ( h -> stack . cnt != 0 ) { int i ; for ( i = 0 ; i < h -> stack . cnt ; i ++ ) cstr_savenum ( h , h -> stack . array [ i ] ) ; h -> stack . cnt = 0 ; } switch ( op ) { case tx_hlineto : case tx_vlineto : case tx_hvcurveto : case tx_vhcurveto : cstr_saveop ( h , h -> seqop ) ; break ; default : cstr_saveop ( h , op ) ; break ; } h -> pendop = tx_noop ; }
Save operator and args to charstring.
Save operator and args to charstring .
/* Save args */ /* Save op */ /* Clear pending op */