]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/genrb/ustr.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / genrb / ustr.h
index 05a446ea0e58ad9e51fd3b64e56ee103d8fa3a17..8a69e9d4d5cb98351becaec36164625d85436fa8 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
 *
@@ -20,7 +22,7 @@
 
 #include "unicode/utypes.h"
 
-#define U_APPEND_CHAR32(c,target,len) {                         \
+#define U_APPEND_CHAR32(c,target,len) UPRV_BLOCK_MACRO_BEGIN {  \
     if (c <= 0xffff)                                            \
     {                                                           \
         *(target)++ = (UChar) c;                                \
@@ -33,9 +35,9 @@
         len=2;                                                  \
         target +=2;                                             \
     }                                                           \
-}
+} UPRV_BLOCK_MACRO_END
 
-#define U_APPEND_CHAR32_ONLY(c,target) {                             \
+#define U_APPEND_CHAR32_ONLY(c,target) UPRV_BLOCK_MACRO_BEGIN { \
     if (c <= 0xffff)                                            \
     {                                                           \
         *(target)++ = (UChar) c;                                \
@@ -46,7 +48,7 @@
         target[1] = U16_TRAIL(c);                               \
         target +=2;                                             \
     }                                                           \
-}
+} UPRV_BLOCK_MACRO_END
 
 /* A C representation of a string "object" (to avoid realloc all the time) */
 struct UString {