Algorithm-Permute
view release on metacpan or search on metacpan
# define cxinc() my_cxinc(aTHX)
static I32
my_cxinc(pTHX)
{
cxstack_max = cxstack_max * 3 / 2;
Renew(cxstack, cxstack_max + 1, struct context); /* XXX should fix CXINC macro */
return cxstack_ix + 1;
}
#endif
/* (Robin) Assigning to AvARRAY(array) expands to an assignment which has a typecast on the left-hand side.
* So it was technically illegal, but GCC is decent enough to accept it
* anyway. Unfortunately other compilers are not usually so forgiving...
*/
#if PERL_VERSION >= 9
# define AvARRAY_set(av, val) ((av)->sv_u.svu_array) = val
#else
# define AvARRAY_set(av, val) ((XPVAV*) SvANY(av))->xav_array = (char*) val
#endif
typedef unsigned int UINT;
( run in 1.655 second using v1.01-cache-2.11-cpan-5b529ec07f3 )