diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-03-09 16:20:00 -0300 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-05-20 08:59:11 -0600 |
commit | 850a35c98e34a81a2ebe2f37ecd31b373749e694 (patch) | |
tree | 7960515f6dcb827b9126b64edd9bad0a574c3e10 /toke.c | |
parent | 04e07f8b182303f6e9b4b3d126298bc9e4188a38 (diff) | |
download | perl-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |