summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-09-03 16:59:09 -0600
committerKarl Williamson <public@khwilliamson.com>2012-09-13 21:14:03 -0600
commit685289b5657b776e8a3871de68a57785e6ccd797 (patch)
treeeffb3627422467ccc329131b12c3de913ff5b8a4 /embed.h
parentb1af8fefbdf1c044271e0b9d8898e2d808ab7879 (diff)
downloadperl-685289b5657b776e8a3871de68a57785e6ccd797.tar.gz
Use macro not swash for utf8 quotemeta
The rules for matching whether an above-Latin1 code point are now saved in a macro generated from a trie by regen/regcharclass.pl, and these are now used by pp.c to test these cases. This allows removal of a wrapper subroutine, and also there is no need for dynamic loading at run-time into a swash. This macro is about as big as I'm comfortable compiling in, but it saves the building of a hash that can grow over time, and removes a subroutine and interpreter variables. Indeed, performance benchmarks show that it is about the same speed as a hash, but it does not require having to load the rules in from disk the first time it is used.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/embed.h b/embed.h
index c4b320e010..3f738be816 100644
--- a/embed.h
+++ b/embed.h
@@ -789,9 +789,6 @@
#define warn_nocontext Perl_warn_nocontext
#define warner_nocontext Perl_warner_nocontext
#endif
-#if defined(PERL_IN_UTF8_C) || defined(PERL_IN_PP_C)
-#define _is_utf8_quotemeta(a) Perl__is_utf8_quotemeta(aTHX_ a)
-#endif
#if defined(PERL_MAD)
#define newFORM(a,b,c) Perl_newFORM(aTHX_ a,b,c)
#define newMYSUB(a,b,c,d,e) Perl_newMYSUB(aTHX_ a,b,c,d,e)