This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.sym: longj field is a boolean
authorKarl Williamson <khw@cpan.org>
Mon, 12 Nov 2018 04:48:53 +0000 (21:48 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 16:21:35 +0000 (09:21 -0700)
commit46167d76640b8ae760665fc0fd2f94ac4760438c
tree5293f3d96b38ccc90f4ebd7bcd4582243273bb77
parent282634ed6aed040ba8694186b410779d98331944
regcomp.sym: longj field is a boolean

The comments could lead one to thinking one could specify any of the
argument fields that nodes can have.  But in fact, the value is a
boolean, 0 meaning to use the normal offset field of all regnodes; and 1
meaning to use the ARG field that some regnodes have.  If a regnode had
more than just the one argument field, the one that corresponds to that
would be used.

This commit enforces that, and changes regcomp.sym to not use  '2',
which is misleading.

It clarifies the comments about this and what '.' means in the flags
field
pod/perldebguts.pod
regcomp.sym
regen/regcomp.pl
regnodes.h