diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-21 04:48:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-21 04:48:02 +0400 |
commit | 2d8189cec0dab3d4c9db95c03ebb4eb2de6738c4 (patch) | |
tree | 71dcdc794d4446f7243d5c47ecd0290ed568566f /source/blender/blenlib/BLI_string_utf8.h | |
parent | 2e549e0241164baff7ba2d73aa05f4d865e20153 (diff) |
- minor edits to font drawing/utf8, was needlessly casting int/unsigned int.
- also ifdef'd out more smoke function when the modifiers disabled.
Diffstat (limited to 'source/blender/blenlib/BLI_string_utf8.h')
-rw-r--r-- | source/blender/blenlib/BLI_string_utf8.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_string_utf8.h b/source/blender/blenlib/BLI_string_utf8.h index b53d9d3203b..765ae93828e 100644 --- a/source/blender/blenlib/BLI_string_utf8.h +++ b/source/blender/blenlib/BLI_string_utf8.h @@ -53,7 +53,8 @@ size_t BLI_strlen_utf8(const char *strc); size_t BLI_strncpy_wchar_as_utf8(char *dst, const wchar_t *src, const size_t maxcpy); size_t BLI_strncpy_wchar_from_utf8(wchar_t *dst, const char *src, const size_t maxcpy); -#define BLI_STRING_MAX_UTF8 6 +#define BLI_UTF8_MAX 6 +#define BLI_UTF8_ERR ((unsigned int)-1) #ifdef __cplusplus } |