This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c35352
)
pp_pack.c: Use inRANGE macro
author
Karl Williamson
<khw@cpan.org>
Thu, 3 Oct 2019 03:10:36 +0000
(21:10 -0600)
committer
Karl Williamson
<khw@cpan.org>
Thu, 26 Dec 2019 21:02:25 +0000
(14:02 -0700)
which is more efficient
pp_pack.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_pack.c
b/pp_pack.c
index
6479398
..
8ac5316
100644
(file)
--- a/
pp_pack.c
+++ b/
pp_pack.c
@@
-212,8
+212,9
@@
S_mul128(pTHX_ SV *sv, U8 m)
/* Explosives and implosives. */
-#define ISUUCHAR(ch) (NATIVE_TO_LATIN1(ch) >= NATIVE_TO_LATIN1(' ') \
- && NATIVE_TO_LATIN1(ch) < NATIVE_TO_LATIN1('a'))
+#define ISUUCHAR(ch) inRANGE(NATIVE_TO_LATIN1(ch), \
+ NATIVE_TO_LATIN1(' '), \
+ NATIVE_TO_LATIN1('a') - 1)
/* type modifiers */
#define TYPE_IS_SHRIEKING 0x100