Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-28 00:13:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-28 00:13:59 +0400
commit032d83ecc411428a768e0b405fe73066dc6640ea (patch)
treef04c110b845544ca2ffab7a66c584423d769519b /source/blender/blenlib/intern/string_utf8.c
parentb65c9711fef4efbb868156a490a295457a0ad69e (diff)
style cleanup: defines with braces
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r--source/blender/blenlib/intern/string_utf8.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c
index 77bebfaf2e8..e9bccd4244b 100644
--- a/source/blender/blenlib/intern/string_utf8.c
+++ b/source/blender/blenlib/intern/string_utf8.c
@@ -178,14 +178,14 @@ static const size_t utf8_skip_data[256] = {
} \
} \
*dst= '\0'; \
- }
+ } (void)0
char *BLI_strncpy_utf8(char *dst, const char *src, size_t maxncpy)
{
char *dst_r= dst;
/* note: currently we don't attempt to deal with invalid utf8 chars */
- BLI_STR_UTF8_CPY(dst, src, maxncpy)
+ BLI_STR_UTF8_CPY(dst, src, maxncpy);
return dst_r;
}
@@ -197,7 +197,7 @@ char *BLI_strncat_utf8(char *dst, const char *src, size_t maxncpy)
maxncpy--;
}
- BLI_STR_UTF8_CPY(dst, src, maxncpy)
+ BLI_STR_UTF8_CPY(dst, src, maxncpy);
return dst;
}
@@ -315,7 +315,7 @@ size_t BLI_strncpy_wchar_from_utf8(wchar_t *dst_w, const char *src_c, const size
} \
else { \
Len = -1; \
- }
+ } (void)0
/* same as glib define but added an 'Err' arg */
#define UTF8_GET(Result, Chars, Count, Mask, Len, Err) \
@@ -327,7 +327,7 @@ size_t BLI_strncpy_wchar_from_utf8(wchar_t *dst_w, const char *src_c, const size
} \
(Result) <<= 6; \
(Result) |= ((Chars)[(Count)] & 0x3f); \
- }
+ } (void)0
/* uses glib functions but not from glib */