This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't use EBCDIC macro for a C language escape
authorKarl Williamson <public@khwilliamson.com>
Fri, 8 Feb 2013 04:35:57 +0000 (21:35 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:55:49 +0000 (09:55 -0600)
commitc12874164f0487ef49dc48d5e4263b86b4b87f5d
tree75c7cbdcc7628402ba081b055b7d196358168f45
parent8e7c6e7db4e68025440138ddf851a3b4a61d8b5a
Don't use EBCDIC macro for a C language escape

C recognizes '\a' (for BEL); just use that instead of a look-up.

regen/unicode_constants.pl could be used to generate the character for
the ESC (set in nearby code), but I didn't do that because of
potential bootstrapping problems when porting to an EBCDIC platform
without a working perl.  (The other characters generated in that .pl are
less likely to cause problems when compiling perl.)
regcomp.c
toke.c