@@ -895,27 +895,27 @@ implementation of the latter. */
895895 * directly anywhere else. 'translate_function' is either NATIVE_TO_LATIN1
896896 * (which works for code points up through 0xFF) or NATIVE_TO_UNI which works
897897 * for any code point */
898- #define __BASE_TWO_BYTE_HI (c , translate_function ) \
898+ #define BASE_TWO_BYTE_HI_ (c , translate_function ) \
899899 (assert(! UVCHR_IS_INVARIANT(c)), \
900900 I8_TO_NATIVE_UTF8((translate_function(c) >> UTF_ACCUMULATION_SHIFT) \
901901 | UTF_START_MARK(2)))
902- #define __BASE_TWO_BYTE_LO (c , translate_function ) \
902+ #define BASE_TWO_BYTE_LO_ (c , translate_function ) \
903903 (assert(! UVCHR_IS_INVARIANT(c)), \
904904 I8_TO_NATIVE_UTF8((translate_function(c) & UTF_CONTINUATION_MASK) \
905905 | UTF_CONTINUATION_MARK))
906906
907907/* The next two macros should not be used. They were designed to be usable as
908908 * the case label of a switch statement, but this doesn't work for EBCDIC. Use
909909 * regen/unicode_constants.pl instead */
910- #define UTF8_TWO_BYTE_HI_nocast (c ) __BASE_TWO_BYTE_HI (c, NATIVE_TO_UNI)
911- #define UTF8_TWO_BYTE_LO_nocast (c ) __BASE_TWO_BYTE_LO (c, NATIVE_TO_UNI)
910+ #define UTF8_TWO_BYTE_HI_nocast (c ) BASE_TWO_BYTE_HI_ (c, NATIVE_TO_UNI)
911+ #define UTF8_TWO_BYTE_LO_nocast (c ) BASE_TWO_BYTE_LO_ (c, NATIVE_TO_UNI)
912912
913913/* The next two macros are used when the source should be a single byte
914914 * character; checked for under DEBUGGING */
915915#define UTF8_EIGHT_BIT_HI (c ) (assert(FITS_IN_8_BITS(c)), \
916- ( __BASE_TWO_BYTE_HI (c, NATIVE_TO_LATIN1)))
916+ ( BASE_TWO_BYTE_HI_ (c, NATIVE_TO_LATIN1)))
917917#define UTF8_EIGHT_BIT_LO (c ) (assert(FITS_IN_8_BITS(c)), \
918- (__BASE_TWO_BYTE_LO (c, NATIVE_TO_LATIN1)))
918+ (BASE_TWO_BYTE_LO_ (c, NATIVE_TO_LATIN1)))
919919
920920/* These final two macros in the series are used when the source can be any
921921 * code point whose UTF-8 is known to occupy 2 bytes; they are less efficient
@@ -926,11 +926,11 @@ implementation of the latter. */
926926#define UTF8_TWO_BYTE_HI (c ) \
927927 (assert((sizeof(c) == 1) \
928928 || !(((WIDEST_UTYPE)(c)) & ~MAX_UTF8_TWO_BYTE)), \
929- (__BASE_TWO_BYTE_HI (c, NATIVE_TO_UNI)))
929+ (BASE_TWO_BYTE_HI_ (c, NATIVE_TO_UNI)))
930930#define UTF8_TWO_BYTE_LO (c ) \
931931 (assert((sizeof(c) == 1) \
932932 || !(((WIDEST_UTYPE)(c)) & ~MAX_UTF8_TWO_BYTE)), \
933- (__BASE_TWO_BYTE_LO (c, NATIVE_TO_UNI)))
933+ (BASE_TWO_BYTE_LO_ (c, NATIVE_TO_UNI)))
934934
935935/* This is illegal in any well-formed UTF-8 in both EBCDIC and ASCII
936936 * as it is only in overlongs. */
0 commit comments