This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.h: Add better named synonyms
authorKarl Williamson <public@khwilliamson.com>
Fri, 9 Aug 2013 17:51:09 +0000 (11:51 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 24 Sep 2013 17:36:14 +0000 (11:36 -0600)
commit8efd3f97d6982ca46d8f5edca32a16d3b4c34eee
treec27711c863ed3ea1963a8d3f5796aa32a25f40ee
parentad0bc4e4203ace473d269da5dc13fa67b3b07cac
regcomp.h: Add better named synonyms

This continues the process started two commits ago of removing some of
the overloading of the term 'class'.

In this case, this commit adds some #defines referring to the portions
of the regnode associated with bracketed character classes, the ANYOF
node.  Specifically those portions that deal with the Posix character
classes, like \w and [:punct:] under /l (locale) matching are renamed
substituting POSIXL for CLASS.  POSIXL is already used for POSIX-related
things under /l.  I remember being terribly confused when I started
reading this code about this.  One had a class within a class.  This
should clarify things somewhat.

The old names are retained in case files outside the core #include and
use it (there are a few such in cpan).
regcomp.c
regcomp.h
regexec.c