This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexp.h: Move regex flag bit positions.
authorKarl Williamson <khw@cpan.org>
Fri, 12 Sep 2014 04:45:06 +0000 (22:45 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 29 Sep 2014 17:07:38 +0000 (11:07 -0600)
commita3b51d37a1c354a57994f7ada55bd0a05849903d
treedfed8ee8392fa009d824c5421d74ae2cfbcf81f2
parentba474e876da44d462e1da4f95365622b59a8d402
regexp.h: Move regex flag bit positions.

This moves three bits to create a block of unused bits at the beginning.
The first bit had to be moved to make space for other uses that are
coming in future commits.  This breaks binary compatibility, so might as
well move the other two bits so that all the unused bits are
consolidated at the beginning.

This pool of unused bits is the boundary between the bits that are
common to op.h and regexp.h (and in op_reg_common.h) and those that are
separate.  It's best to have all the unused bits there, so when we need
to use one, it can be taken from either side, as needed, without us
being trapped into having an available bit, but of the wrong kind.
regexp.h
regnodes.h