diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-09-28 15:09:36 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-10-01 09:58:10 -0600 |
commit | e3036cf4e5caf9039228e7372ba062c72f36f94a (patch) | |
tree | 0d245efbaf6db83a05938446f8dbba4d590ac208 /utf8.h | |
parent | 20df05f4ef2efadbaa1ffaf5267b7ad0180a7804 (diff) | |
download | perl-e3036cf4e5caf9039228e7372ba062c72f36f94a.tar.gz |
utf8.h: Revise formal parameter name for clarity
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -201,18 +201,18 @@ Perl's extended UTF-8 means we can have start bytes up to FF. #define UTF8_EIGHT_BIT_LO(c) UTF8_TWO_BYTE_LO((U8)(c)) /* - * 'c' is whether or not p is encoded in UTF8. The names 'foo_lazy_if' stem + * 'UTF' is whether or not p is encoded in UTF8. The names 'foo_lazy_if' stem * from an earlier version of these macros in which they didn't call the * foo_utf8() macros (i.e. were 'lazy') unless they decided that *p is the * beginning of a utf8 character. Now that foo_utf8() determines that itself, * no need to do it again here */ -#define isIDFIRST_lazy_if(p,c) ((IN_BYTES || !c ) \ - ? isIDFIRST(*(p)) \ - : isIDFIRST_utf8((const U8*)p)) -#define isALNUM_lazy_if(p,c) ((IN_BYTES || (!c )) \ - ? isALNUM(*(p)) \ - : isALNUM_utf8((const U8*)p)) +#define isIDFIRST_lazy_if(p,UTF) ((IN_BYTES || !UTF ) \ + ? isIDFIRST(*(p)) \ + : isIDFIRST_utf8((const U8*)p)) +#define isALNUM_lazy_if(p,UTF) ((IN_BYTES || (!UTF )) \ + ? isALNUM(*(p)) \ + : isALNUM_utf8((const U8*)p)) #define isIDFIRST_lazy(p) isIDFIRST_lazy_if(p,1) #define isALNUM_lazy(p) isALNUM_lazy_if(p,1) |