Skip to content

Commit

Permalink
handy.h: Rmv internal macro
Browse files Browse the repository at this point in the history
LC_CAST_ was my attempt at generality, but I didn't realize that the
POSIX standard specifies the type that this was meant to generalize, so
there isn't any need for it.
  • Loading branch information
khwilliamson committed May 6, 2021
1 parent 81c71f7 commit a19c500
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions handy.h
Expand Up @@ -1879,11 +1879,10 @@ END_EXTERN_C
/* For internal core Perl use only: a helper macro for defining macros like
* isALPHA_LC. 'c' is the code point (0-255) to check. The function name to
* actually do this test is passed in 'non_utf8_func', which is called on 'c',
* casting 'c' to the macro LC_CAST_, which should not be parenthesized. See
* generic_LC_base_ for more info */
* casting 'c' to U8 */
#define generic_LC_(c, utf8_locale_classnum, non_utf8_func) \
generic_LC_base_(c,utf8_locale_classnum, \
non_utf8_func( (LC_CAST_) (c)))
non_utf8_func( (U8) (c)))

/* These next three are also for internal core Perl use only: case-change
* helper macros. The reason for using the PL_latin arrays is in case the
Expand Down Expand Up @@ -1942,8 +1941,6 @@ END_EXTERN_C
# define isBLANK_LC(c) ((IN_UTF8_CTYPE_LOCALE) ? isBLANK_L1(c) : isBLANK(c))
#endif

#define LC_CAST_ U8

#if defined(WIN32) || defined(CTYPE256) || ( ! defined(isascii) \
&& ! defined(HAS_ISASCII))
/* Here, we have some semblance of locale sanity, or just don't have
Expand Down

0 comments on commit a19c500

Please sign in to comment.