|
|
b8c914 |
From 7714b11d11da2bfd0dc11638e9dd6836b6a32e90 Mon Sep 17 00:00:00 2001
|
|
|
b8c914 |
From: Karl Williamson <khw@cpan.org>
|
|
|
b8c914 |
Date: Mon, 11 Jun 2018 13:26:24 -0600
|
|
|
b8c914 |
Subject: [PATCH] perl.h: Add parens around macro arguments
|
|
|
b8c914 |
MIME-Version: 1.0
|
|
|
b8c914 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b8c914 |
Content-Transfer-Encoding: 8bit
|
|
|
b8c914 |
|
|
|
b8c914 |
Arguments used within macros need to be parenthesized in case they are
|
|
|
b8c914 |
called with an expression. This commit changes
|
|
|
b8c914 |
_CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG() to do that.
|
|
|
b8c914 |
|
|
|
b8c914 |
Petr Písař: Ported to 5.26.2 from upstream ff58ca57f844 commit.
|
|
|
b8c914 |
|
|
|
b8c914 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
b8c914 |
---
|
|
|
b8c914 |
perl.h | 2 +-
|
|
|
b8c914 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b8c914 |
|
|
|
b8c914 |
diff --git a/perl.h b/perl.h
|
|
|
b8c914 |
index 1c613bc..d278c2a 100644
|
|
|
b8c914 |
--- a/perl.h
|
|
|
b8c914 |
+++ b/perl.h
|
|
|
b8c914 |
@@ -5980,7 +5980,7 @@ typedef struct am_table_short AMTS;
|
|
|
b8c914 |
# define _CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG(s, send) \
|
|
|
b8c914 |
STMT_START { /* Check if to warn before doing the conversion work */\
|
|
|
b8c914 |
if (! PL_in_utf8_CTYPE_locale && ckWARN(WARN_LOCALE)) { \
|
|
|
b8c914 |
- UV cp = utf8_to_uvchr_buf((U8 *) s, (U8 *) send, NULL); \
|
|
|
b8c914 |
+ UV cp = utf8_to_uvchr_buf((U8 *) (s), (U8 *) (send), NULL); \
|
|
|
b8c914 |
Perl_warner(aTHX_ packWARN(WARN_LOCALE), \
|
|
|
b8c914 |
"Wide character (U+%" UVXf ") in %s", \
|
|
|
b8c914 |
(cp == 0) \
|
|
|
b8c914 |
--
|
|
|
b8c914 |
2.14.4
|
|
|
b8c914 |
|