Permalink
Browse files

locale.c: Use fcns instead of macros

Here the macros being used expand into the functions being called,
without adding any value to using the macros, and making things slightly
less clear.
  • Loading branch information...
khwilliamson committed Jan 2, 2018
1 parent 98ad049 commit 3f1e4456bcbe2af8095e2f0fe182ece23181f8a1
Showing with 4 additions and 4 deletions.
  1. +4 −4 locale.c
View
@@ -609,10 +609,10 @@ S_new_ctype(pTHX_ const char *newctype)
unsigned int bad_count = 0; /* Count of bad characters */
for (i = 0; i < 256; i++) {
if (isUPPER_LC((U8) i))
PL_fold_locale[i] = (U8) toLOWER_LC((U8) i);
else if (isLOWER_LC((U8) i))
PL_fold_locale[i] = (U8) toUPPER_LC((U8) i);
if (isupper(i))
PL_fold_locale[i] = (U8) tolower(i);
else if (islower(i))
PL_fold_locale[i] = (U8) toupper(i);
else
PL_fold_locale[i] = (U8) i;

0 comments on commit 3f1e445

Please sign in to comment.