summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-03-09 16:20:00 -0300
committerKarl Williamson <public@khwilliamson.com>2013-05-20 08:59:11 -0600
commit850a35c98e34a81a2ebe2f37ecd31b373749e694 (patch)
tree7960515f6dcb827b9126b64edd9bad0a574c3e10 /toke.c
parent04e07f8b182303f6e9b4b3d126298bc9e4188a38 (diff)
downloadperl-850a35c98e34a81a2ebe2f37ecd31b373749e694.tar.gz
toke.c: VALID_LEN_ONE_IDENT only needs a char, not a char*
Rather than passing s and having the macro do a bunch of *s, just pass and expect *s.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toke.c b/toke.c
index fc3f188d24..f49e2d6e2e 100644
--- a/toke.c
+++ b/toke.c
@@ -9320,12 +9320,12 @@ S_scan_ident(pTHX_ char *s, const char *send, char *dest, STRLEN destlen, I32 ck
s++;
}
-#define VALID_LEN_ONE_IDENT(d, u) (isPUNCT_A((U8)*(d)) \
- || isCNTRL_A((U8)*(d)) \
- || isDIGIT_A((U8)*(d)) \
- || (!(u) && !UTF8_IS_INVARIANT((U8)*(d))))
+#define VALID_LEN_ONE_IDENT(d, u) (isPUNCT_A((U8)(d)) \
+ || isCNTRL_A((U8)(d)) \
+ || isDIGIT_A((U8)(d)) \
+ || (!(u) && !UTF8_IS_INVARIANT((U8)(d))))
if (s < send
- && (isIDFIRST_lazy_if(s, is_utf8) || VALID_LEN_ONE_IDENT(s, is_utf8)))
+ && (isIDFIRST_lazy_if(s, is_utf8) || VALID_LEN_ONE_IDENT(*s, is_utf8)))
{
if (is_utf8) {
const STRLEN skip = UTF8SKIP(s);