diff options
author | Karl Williamson <khw@cpan.org> | 2021-03-18 14:35:31 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-06-12 09:50:10 -0600 |
commit | 2aa3d949d9d73dd14389e3d5e95017c1dfde13e6 (patch) | |
tree | 86e9ce806fabde1d59d1e64f050a5332af992594 /handy.h | |
parent | 91456fff21e82fb5e4202c84a0c4ae13dbccdee7 (diff) | |
download | perl-2aa3d949d9d73dd14389e3d5e95017c1dfde13e6.tar.gz |
handy.h: Rmv internal macro
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.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1889,11 +1889,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 @@ -1952,8 +1951,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 |