make sv_2bool_flags() non-recursive on overload
authorDaniel Dragan <bulk88@hotmail.com>
Mon, 21 Oct 2013 14:43:06 +0000 (15:43 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 21 Oct 2013 14:43:06 +0000 (15:43 +0100)
commit9d176cd8dda1d6b2f98386843a92abe96e8a328e
treec1d12e92fd29017f8690fbf5774e03cdffe90654
parent59000498ecb28d4767eac94dc70de651f1b3c03e
make sv_2bool_flags() non-recursive on overload

When Perl_sv_2bool_flags() has an overloaded arg, it calls SvTRUE()
on the SV returned from the overload method. This indirectly calls
sv_2bool_flags() again.

Change it so that sv_2bool_flags() just iterates the new overload value
each time.

2 callsites were converted to gotos. A SvTRUE_common was expanded so goto
can be used.  This function's machine code size on VC2003 32 bits dropped
by 0x24 bytes after this patch.
embed.fnc
proto.h
sv.c