This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PL_sawampersand: use 3 bit flags rather than bool
authorDavid Mitchell <davem@iabyn.com>
Fri, 22 Jun 2012 11:36:03 +0000 (12:36 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Sep 2012 14:42:06 +0000 (15:42 +0100)
commitd3b97530399d61590a1500b52bdba553d657bda5
tree0ad370f9d3c601b62e19d31ef7c20290098ce23d
parent8fd1a95029bf0ff87a3064dec7d6645f40359f2c
PL_sawampersand: use 3 bit flags rather than bool

Set a separate flag for each of $`, $& and $'.
It still works fine in boolean context.

This will allow us to have more refined control over what parts
of a match string to copy (we currently copy the whole string).
gv.c
intrpvar.h
perl.c
perl.h