X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/a01113dcd0f39d5da295ef82785beff9ed86fe38..refs/heads/master:/icuSources/tools/genrb/ustr.h diff --git a/icuSources/tools/genrb/ustr.h b/icuSources/tools/genrb/ustr.h index 91483d1f..8a69e9d4 100644 --- a/icuSources/tools/genrb/ustr.h +++ b/icuSources/tools/genrb/ustr.h @@ -22,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; \ @@ -35,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; \ @@ -48,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 {