summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-08-28 17:16:27 -0600
committerKarl Williamson <khw@cpan.org>2017-11-08 20:21:44 -0700
commit11b2cef65dac01e8723c9a6f6e640665cb752a2c (patch)
treec68a34b8244c3f68918b9d0cb112c0ef3d042821 /perl.h
parent80752aac697a5e8f04103d8ee4733d099239403a (diff)
downloadperl-11b2cef65dac01e8723c9a6f6e640665cb752a2c.tar.gz
perl.h: Use STMT_START { ... } STMT_END
This should be used in macros that have statements.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index dd46340357..1e4f8bc4d1 100644
--- a/perl.h
+++ b/perl.h
@@ -5785,8 +5785,10 @@ expression, but with an empty argument list, like this:
#define DECLARATION_FOR_STORE_LC_NUMERIC_SET_TO_NEEDED \
DECLARATION_FOR_LC_NUMERIC_MANIPULATION
#define DECLARE_STORE_LC_NUMERIC_SET_TO_NEEDED() \
- DECLARATION_FOR_STORE_LC_NUMERIC_SET_TO_NEEDED; \
- STORE_LC_NUMERIC_SET_TO_NEEDED();
+ STMT_START { \
+ DECLARATION_FOR_LC_NUMERIC_MANIPULATION; \
+ STORE_LC_NUMERIC_SET_TO_NEEDED(); \
+ STMT_END
#define LOCK_NUMERIC_STANDARD() LOCK_LC_NUMERIC_STANDARD()
#define RESTORE_NUMERIC_LOCAL() RESTORE_LC_NUMERIC_UNDERLYING()
#define RESTORE_NUMERIC_STANDARD() RESTORE_LC_NUMERIC_STANDARD()